Fade In/Out - Audio Expression
I have the expression below and wanted that the transition of audio between -192 and 0, and 0 to -192 be smooth during 2 seconds.
intro = comp("MASTER").layer("Control").effect("Intro")("Slider"); // example: results in 20
preview = comp("MASTER").layer("Control").effect("Preview")("Slider"); // example: results in 10
if(time < intro || time > preview) [-192,-192] else [0,0]; // the duration is 10 secs at 0 dB between 20 and 30 secs
How can I make a fade in, and also a fade out?
