linux: shared memory interface - link with librt
[supercollider.git] / HelpSource / Classes / Lag3.schelp
blobba5c40369dd30f52bc6b32c3fbfb35bf3e5ffc83
1 class:: Lag3
2 summary:: Exponential lag
3 related:: Classes/Lag, Classes/Lag2, Classes/Ramp, Classes/Lag3UD
4 categories::  UGens>Filters>Linear
7 Description::
9 Lag3 is equivalent to code:: Lag.kr(Lag.kr(Lag.kr(in, time), time), time) ::, thus
10 resulting in a smoother transition. This saves on CPU as you only have to
11 calculate the decay factor once instead of three times. See
12 link::Classes/Lag::  for more details.
15 classmethods::
17 method::ar, kr
19 argument::in
21 The input signal.
24 argument::lagTime
26 60 dB lag time in seconds.
29 argument::mul
31 Output will be multiplied by this value.
34 argument::add
36 This value will be added to the output.
39 Examples::
41 code::
43 // used to lag pitch
45         SinOsc.ar(              // sine wave
46                 Lag3.kr(                        // lag the modulator
47                         LFPulse.kr(4, 0, 0.5, 50, 400), // frequency modulator
48                         Line.kr(0, 1, 15)                               // modulate lag time
49                 ),
50                 0,      // phase
51                 0.3     // sine amplitude
52         )
53 }.play