Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions Linking audio amplitude to PNG sequence?

  • Linking audio amplitude to PNG sequence?

    Posted by Marc Brown on June 13, 2008 at 9:26 am

    This feels like a FAQ, and yet I can’t really pinpoint what I’m after in any of the plethora of discussions on linking audio amplitude.

    Basically, I’ve got this sequence of 28 PNG files which happen to represent a person’s face. Frame 0 has the mouth fully closed. Frame 28 has it fully open. And what I’m after is an expression which will result in AE displaying a frame number which corresponds to the amplitude of a given WAV file. Ie, #0 for no audio, and #28 for max amplitude, with all the gradients in between properly represented (so #14 or #15 for amplitude at 50%, for example).

    Really the only thing I don’t yet know is how to tell AE to display a specific frame of a given video. With that knowledge in hand, I expect I could do whatever math and calibration would be needed to produce a good result.

    Hopefully the info would be useful to other folks, too.

    Dan Ebberts replied 17 years, 11 months ago 2 Members · 1 Reply
  • 1 Reply
  • Dan Ebberts

    June 13, 2008 at 4:50 pm

    You need turn on time-remapping for your PNG sequence and use a time remapping expression something like this:

    minAudio = 0;
    maxAudio = 15;
    maxFrame = 28;

    audioLev = thisComp.layer(“Audio Amplitude”).effect(“Both Channels”)(“Slider”);

    f = Math.round(linear(audioLev,minAudio,maxAudio,0,maxFrame));

    f*thisComp.frameDuration

    Dan

We use anonymous cookies to give you the best experience we can.
Our Privacy policy | GDPR Policy