Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Creating Sound “bars” using soundkeys for layer’s Y scale

  • Creating Sound “bars” using soundkeys for layer’s Y scale

    Posted by Trevor Phillippi on April 22, 2009 at 2:28 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

    Kevin Camp replied 17 years, 4 months ago 2 Members · 3 Replies
  • 3 Replies
  • Kevin Camp

    April 22, 2009 at 2:46 pm

    you probably just need to separate the x and y scale components…

    this expression would scale just the y component if it was linked to a layer named ‘audio amplitude’ that is created when you choose to convert audio to keyframes:

    y = thisComp.layer(“Audio Amplitude”).effect(“Both Channels”)(“Slider”);
    [value[0] ,y]

    Kevin Camp
    Senior Designer
    KCPQ, KMYQ & KRCW

  • Trevor Phillippi

    April 22, 2009 at 7:34 pm

    Thank you very much Kevin, but how could i make it so the changes did not so drastically affect the y scale? So the fluctuation was not so extreme? Thanks again!

    Trevor

  • Kevin Camp

    April 22, 2009 at 9:45 pm

    you could add a multiplier to the y value… for example, if you needed the y to fluctuate at half the amount, your last line could look like this:

    [value[0], y * .5)

    is something like that what you are looking for?

    Kevin Camp
    Senior Designer
    KCPQ, KMYQ & KRCW

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