Author: Dan Ebberts
Triggers a change in the values of a layer’s basic properties or effects in reaction to changes in the amplitude level of an audio layer; while also allowing you to limit the range of the change using the linear() expression. (See also: Linear)
Hover over the code and click the copy button.
minAudio = 0; maxAudio = 15; //or whatever the max audio level value is maxStretch = 2.0; audioLev = thisComp.layer("Audio Amplitude").effect("Both Channels")("Slider"); stretch = linear(audioLev, minAudio, maxAudio, 1.0, maxStretch); value * stretch
Using this expression requires the intermediate step of converting audio into keyframes. The method for doing so is addressed in the Dan Ebberts blog post linked to under “Tutorials” below.