Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions anti-logarithmic output on slider value readouts

  • anti-logarithmic output on slider value readouts

    Posted by Lars Director on January 22, 2007 at 5:27 pm

    I’ve been tinkering with this, but I guess I should have been in class instead of playing video games 😉

    I’m trying to build anti-logarithmic scale into the basic scale functions that are (in my case) based on the audio-amplitude slider values on another layer.
    in other words, the readout of low values should result in a relative high scale coefficient, and whilst the values become higher, the scale coefficient must decrease.

    Any bright math loving criminals out there?

    Cheers, Lars

    Lars Director replied 19 years, 3 months ago 2 Members · 2 Replies
  • 2 Replies
  • Mylenium

    January 23, 2007 at 12:21 pm

    Use the keyframe methods:


    audio_ref=thisComp.layer(“Audio”).effect(“Amplitude”)(“Both Channels”);
    audio_max=100;
    audio_min=0;
    scale_max=100;
    scale_min=0;

    out_scale=Math.log(linear(audio_ref,audio_max,audio_min,scale_min,scale_max));

    Mylenium

    [Pour Myl

  • Lars Director

    January 24, 2007 at 1:16 pm

    Looks simple enough to do the job just right 😉

    Thanks, I’m gonna give it a shot!

    Cheers, Lars

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