Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects sync vibrating speaker

  • sync vibrating speaker

    Posted by Stef Prein on October 21, 2007 at 5:37 pm

    I followed the tutorial on how to make a volume meter. Now I want to use the same keyframes to let a speaker vibrate to the same frequences. So far, so good. But… the speaker shrinks and grows from zero to enormous! How can I modify the expression so that the vibration is very little, like a real speaker?

    Thanks in advance!

    Stef Prein replied 18 years, 7 months ago 3 Members · 3 Replies
  • 3 Replies
  • Aharon Rabinowitz

    October 21, 2007 at 8:02 pm

    you’ll want to use the linear expression to take the large range of values from the audio keyframes layer, to convert it to a much smaller range.

    watch this video for more info:

    https://cowcast.creativecow.net/after_effects/episodes/CC_Exp_Tips_1_Linear_POD.mp4

    —————————————-
    Aharon Rabinowitz
    arabinowitz(AT)yahoo(DOT)com
    http://www.allbetsareoff.com

    —————————————-
    Click the link below to subscribe to the Creative Cow After Effects Podcast, and get free AE video tutorials:

    https://phobos.apple.com/WebObjects/MZStore.woa/wa/viewPodcast?id=111087911

  • Mike Clasby

    October 22, 2007 at 12:33 am

    Are you talking about this tut?

    https://library.creativecow.net/articles/al_khatib_talid/volume_meter.php

    I love the tut, but his expression is a little hard to see what’s going on and adjust easily.

    Something like this is easier to get a handle on. Put this expression 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.

  • Stef Prein

    October 22, 2007 at 5:33 pm

    Thanks men! It works!

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