Added LinLag UGen by Ronald Kuivila.
[supercollider.git] / HelpSource / Classes / LinLag.schelp
blobc725657cb0f1351b637d9bd485ba6a8bea8dfa3d
1 class:: LinLag
2 summary:: Linear lag
3 related:: Classes/Lag, Classes/Ramp, Classes/Slew
4 categories::  UGens>Filters>Linear
7 Description::
8 Similar to link::Classes/Lag:: but linear instead of exponential.
9 A change on the input will take the specified time to reach the new value.
10 Can be useful for smoothing out control signals.
12 classmethods::
14 method::ar, kr
16 argument::in
18 The input signal.
21 argument::lagTime
23 Lag time in seconds.
25 argument::start
26 Initial value. If not specified, same as the input signal.
28 argument::mul
30 Output will be multiplied by this value.
33 argument::add
35 This value will be added to the output.
38 Examples::
40 code::
42 // used to lag pitch
44     SinOsc.ar(                              // sine wave
45         LinLag.kr(                          // lag the modulator
46             LFPulse.kr(4, 0, 0.5, 50, 400), // frequency modulator
47             Line.kr(0, 1, 15)               // modulate lag time
48         ),
49         0,                                  // sine phase
50         0.3                                 // sine amplitude
51     )
52 }.play