A couple of other things you might find useful. To clip the values to a certain range you can also use:
Code: Select all
var temp = thisComp.layer("Amplitude audio").effect("Les deux couches")("Curseur");
temp = clamp(temp, 0.2, 0.8);
[temp,temp];
But I usually use this linear expression alongside 'Convert Audio to Keyframes'. It provides a simple way of converting one range of values to another:
Code: Select all
var temp = thisComp.layer("Amplitude audio").effect("Les deux couches")("Curseur");
temp = linear(temp, 0, 10, 50, 100);
[temp,temp];
So that example would convert the audio values between 0 and 10 into scale values of 50 to 100.