Limit the scale of a pick whipped object I want to make a speaker graphic 'wobble' to different frequencies..
Here's what I've done so far
I made a speaker graphic in a comp
And I parented the scale to a null in the main comp

And I isolated the kick drum with a combo of a band pass filter and a bass-treble.
Then I converted that audio into keyframes and pick whipped that null with that speaker's scale parented to it.

So here's where I'm stuck at:
I want to limit the speaker's scale within some values. Like the speaker should not exceed 75.8% and 76% of scale.
So what I tried so far is something like this ↓
temp = thisComp.layer(&quot;Audio Amplitude&quot;).effect(&quot;Both Channels&quot;)(&quot;Slider&quot;);
[temp, temp]  +[Math.min(73.8-2), Math.min(73.8-2)] [Math.max(23), Math.max(23)]
You need to do a linear map as an Expression.
So the example below would take any value between 0-100 and map it between -100 to 100.
input = effect(&quot;Slider Control&quot;)(&quot;Slider&quot;);
inputLow = 0;
inputHigh = 100;
outputLow = -100;
outputHigh = 100;

linear(input,inputLow,inputHigh,outputLow,outputHigh)