Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions Creating Audio “Bars” using soundkeys for y scale

  • Creating Audio “Bars” using soundkeys for y scale

    Posted by Trevor Phillippi on April 22, 2009 at 2:25 pm

    Hi everyone, I am trying to create the audio bars that you see synched to audio in players like iTunes and Windows Media, i’m sure everyone knows the sort i’m speaking of. Anyway they have a fixed width, on the x scale, but i need them to scale vertically on the y, but when i’ve tried targeting the output of Soundkeys, it scales the whole layer(bar). I want to create several different bars by targeting different sections of soundkets output. the desired animation actually looks very similar to what soundkeys renders on the layer with the effect. If i try to use the keyframe assistant>convert audio to keyframes, the same issue occurs. If anyone can help or can give me a better idea of how to produce these bars it would help. Thanks in advance!

    Trevor

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

    April 22, 2009 at 4:09 pm

    Here’s how you could do it with keyframe assistant>convert audio to keyframes:

    aud = thisComp.layer(“Audio Amplitude”).effect(“Both Channels”)(“Slider”);
    maxAudio = 22;
    y = (aud/maxAudio)*100;
    [value[0],y]

    You’ll need to adjust maxAudio. It should be easy to adapt this to Sound Keys.

    Dan

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