Copy link to clipboard
Copied
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?
Something like thismaybe:
intro = comp("MASTER").layer("Control").effect("Intro")("Slider");
preview = comp("MASTER").layer("Control").effect("Preview")("Slider");
if (time < intro)
linear(time,intro-2,intro,[-192,-192],[0,0])
else
linear(time,preview-2,preview,[0,0],[-192,-192])
Dan
Copy link to clipboard
Copied
Something like thismaybe:
intro = comp("MASTER").layer("Control").effect("Intro")("Slider");
preview = comp("MASTER").layer("Control").effect("Preview")("Slider");
if (time < intro)
linear(time,intro-2,intro,[-192,-192],[0,0])
else
linear(time,preview-2,preview,[0,0],[-192,-192])
Dan
Copy link to clipboard
Copied
Sensational; thank you, Dan!
Copy link to clipboard
Copied
How to automatically fade out audio