Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions Convert Audio to Keyframes

  • Convert Audio to Keyframes

    Posted by Ryan Gregory on June 21, 2011 at 4:47 pm

    Hi Everyone. I have converted my audio to keyframes to create a graphic equalizer (I followed a tutorial on YouTube). It looks great, and is almost exactly as I want, but the motion on the equalizer is backwards (the levels get lower when the voice talks, and rests higher when there is no sound). I noticed that when the null with the sliders is created with the audio keys, the values go from 0 into the minus values. Those slider values are controlling a linear wipe to grow/shrink the level of the equalizer.

    Is there an easy way to reverse those slider levels to be positive instead of negative? Or a better way to create an EQ?

    (btw, I tried the generate audio spectrum/waveform tools, they are not what I’m looking for.

    thanks!
    Ryan (AE CS5)

    Ryan Gregory replied 14 years, 11 months ago 2 Members · 2 Replies
  • 2 Replies
  • Dan Ebberts

    June 21, 2011 at 5:01 pm

    I’ve never seen Convert Audio to Keyframes generate negative numbers. It’s hard to tell exactly what to do without seeing your expression, but when you bring the slider value in, you can just flip the sign like this:

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

    Dan

  • Ryan Gregory

    June 21, 2011 at 5:14 pm

    Perfect!!! that was it, thanks!!!

    Ryan

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