Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions Volume Animate a speaker

  • Volume Animate a speaker

    Posted by Leo Oliver on December 30, 2007 at 12:36 am

    Can someone help me out?, Im trying to make a speaker effect like th one you can find at newgrounds, I want to animate the audio to increase and decrease the speaker size, but i want to add an expression saying that the minimum size is X and the maximum size is X.

    Leo Oliver replied 18 years, 8 months ago 2 Members · 2 Replies
  • 2 Replies
  • Mike Clasby

    December 30, 2007 at 3:48 am

    Try this on Scale of the Speaker layer:

    Audio = thisComp.layer(“Audio Amplitude”).effect(“Both Channels”)(“Slider”);
    minAudio = 0;
    maxAudio = 25;
    minScale= 85;
    maxScale = 100;
    s = linear(Audio,minAudio,maxAudio,minScale,maxScale);
    [s,s]

    Set maxAudio to whatever the highest reading is on Both Channels of the Audio Amplitude layer. Twirl down the Slider to see the graph. The scale of the speaker will fluctuate with the audio from a scale of 85% to a scale of 100%, change the 85 and 100 as needed.

    Is dat close?

    I dunno if I’m looking in the right spot, the speakers on the Robot, but some of them scale in only one dimension, so try this for the last line to get x only scaling, like on the robot’s knees:

    [s,minScale]

  • Leo Oliver

    December 30, 2007 at 3:01 pm

    thx, it really works perfectly!
    i was following Andre Kramer tutorial it worked too

    thanks for fast comment,i relly need to learn expressions

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