Quote:
Originally Posted by SaulT
I wrote something like this a little while ago. Tweaked with suggestions from ashcat and Tale. Set the smoothing value very high to get a more exaggerated effect. This follows an exponential curve.
Code:
desc:volume adjustment smooth gain utility function (SaulT wBabaGvaluemods + Tale)
slider1:0<-150,60,0.1>Adjustment (dB) (-150 = -inf)
slider3:200<1,2000,1>Smoothing (ms)
@slider
adj1=slider1 > -150 ? 10 ^ (slider1/20) : 0;
coeff = exp(-5/(slider3/1000*srate));
@sample
adj1_s = adj1_s*coeff + adj1*(1-coeff);
spl0 *= adj1_s;
spl1 *= adj1_s;
|
Do you know if there's a way to have the smoothing disabled during render ?
I noticed if you have the smoothing on it effects the start of a render.
Is there a play_state or sliderchange command or something to automatically turn it off or on ?