Page 1 of 1

Animated Mask by music

Posted: January 2nd, 2012, 2:27 pm
by Siggi
Hallo,

I would like to make a mask animated by music. The height of the mask should change according to the sound. I Have already converted Audio into keyframes. What I need now, is the Expression for the maskpath to apply the audiokeyframes to the mask.

Thanks in advance for your help and please apologize my bad english (come from Germany)

Best regards
Siggi

Re: Animated Mask by music

Posted: January 3rd, 2012, 8:14 am
by Dan Ebberts
One thing you could do is to keyframe the mask path (at its minimum size) at time zero, move down the timeline as many frames as the maximum amplitude of your audio and set the mask path there to its maximum height. Then add an expression like this to the Mask Path:

s = thisComp.layer("Audio Amplitude").effect("Both Channels")("Slider");
valueAtTime(framesToTime(s));

The mask should now get its size from the frame number matching the audio amplitude.

Dan