How do I sync an animation timeline to the playhead of a music timeline?
I would like to build a progress bar mechanic that can be used with an arbitrary piece of music. For this, I need to scale the bar according to the playhead position of the musical piece (which is passed as a value between 0 and 1); The only way to scale a bar procedurally is by using keyframes and a timeline (as there is no other way to lerp/mix keyframes), but the timeline playhead is one of the few values that can only be read, not altered.
So is there another method by which I can achieve it, perhaps even without an animation timeline? Otherwise it would be nice to be able to blend keyframes with an operator that takes a blend value between 0 and 1, or, perhaps even better, use a value between 0 and 1 to control how strongly each keyframe weighs, and then the sum of all keyframe weights contribute to the final value. -- that would be the equivalent of a combinable lerp.
-
update: I just discovered that it is possible to blend keyframes by connecting values between 0..1 to a keyframes power input. that makes it possible to implement what i wanted, if only indirectly.
-
update II: Hah! It is even possible to program the playhead of a timeline, but it's a little unusual. Instead of trying to connect to the "Playhead Position" property in the tweak menu, you have to open the timeline view and connect to the playhead directly, at the button connected to the bottom that has a "< >" symbol on it. This way, several timelines can be synced!
-
As far as I know, timelines are timelines. There is no timeline specific to music.
You can place keyframes on a timeline. If you place keyframes on the same row, they'll have a blend show up in the middle. Tweak the previous keyframe's settings to fiddle with that blend.
Войдите в службу, чтобы оставить комментарий.