1class:: LagUD 2summary:: Exponential lag 3categories:: UGens>Filters 4related:: Classes/Lag, Classes/Lag2, Classes/Lag3, Classes/Lag2UD, Classes/Lag3UD 5 6description:: 7This is essentially the same as link::Classes/Lag:: except that you can supply a different 60 dB time for when the signal goes up, from when the signal goes down. This is useful for smoothing out control signals, where "fade in" should be different from "fade out". 8 9classmethods:: 10method:: ar, kr 11 12argument:: in 13input signal. 14argument:: lagTimeU 1560 dB lag time in seconds for the upgoing signal. 16argument:: lagTimeD 1760 dB lag time in seconds for the downgoing signal. 18argument:: mul 19argument:: add 20 21examples:: 22code:: 23// used to lag pitch 24( 25SynthDef(\lagud_help, { |out, freq=300, lagup=1, lagdown=5| 26 Out.ar(out, 27 SinOsc.ar( // sine wave 28 LagUD.kr( // lag the frequency 29 freq, 30 lagup, 31 lagdown 32 ), 33 0, // phase 34 0.2 // sine amplitude 35 ) 36 ); 37}).add; 38) 39 40x = Synth(\lagud_help); // create the synth 41x.set(\freq, 500); // set the frequency to a higher value (takes 1 second) 42x.set(\freq, 100); // set the frequency to a lower value (takes 5 seconds) 43x.free; 44:: 45