Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions reduce range on keyframed audio parenting

  • reduce range on keyframed audio parenting

    Posted by Kyle Romaneck on March 12, 2010 at 4:28 pm

    Hey guys! So I’ve got this music video, and I’ve exported the bass line of my audio to keyframes. Then I made an adjustment layer and put exposure on it. Then I parented the gamma level of the exposure to the “Both Channels” slider of my exported bass line. Then I divided that expression by 20, so it wouldn’t be totally blown out. My expression on the gamma level looks like this:

    thisComp.layer(“Bass”).effect(“Both Channels”)(“Slider”)/20

    My question is, is there some math I can put in there to just reduce the range between the numbers, so that the resulting gamma levels don’t get AS bright or AS dark? I can use multiplication or division, or increase or reduce the dB level of the Bass line before export, but that only makes the gamma numbers get too high, resulting in blown-out image, or too low, resulting in utter darkness.

    Sorry if this is hard to understand, I’m having trouble wording this question properly. Any help would be much appreciated!

    Kyle Romaneck replied 16 years, 4 months ago 2 Members · 2 Replies
  • 2 Replies
  • Dan Ebberts

    March 12, 2010 at 5:59 pm

    It sounds like you need something like thisL

    bass = thisComp.layer(“Bass”).effect(“Both Channels”)(“Slider”);
    minBass = 10;
    maxBass = 30;
    minGamma = .9;
    maxGamma = 1.5;

    linear(bass,minBass,maxBass,minGamma,maxGamma);

    Just adjust minBass and maxBass to match the range of your slider, and set minGamma and maxGamma to your desired output range.

    Dan

  • Kyle Romaneck

    March 12, 2010 at 6:50 pm

    Worked like a charm, thanks!

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