linux: shared memory interface - link with librt
[supercollider.git] / HelpSource / Classes / Integrator.schelp
blobf19d20e3f77de2d536d8adf81420b00e4085f3a1
1 class:: Integrator
2 summary:: A leaky integrator.
3 categories::  UGens>Filters>Linear, UGens>Maths
6 Description::
8 Integrates an input signal with a leak. The formula implemented is:
10 formula::
11 out(0) = in(0) + (coef * out(-1))
15 classmethods::
17 method::ar, kr
19 argument::in
21 The input signal.
24 argument::coef
26 Leak coefficient.
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 { Integrator.ar(LFPulse.ar(300, 0.2, 0.1), MouseX.kr(0.001, 0.999, 1)) }.play
45 // used as an envelope
46 { Integrator.ar(LFPulse.ar(3, 0.2, 0.0004), 0.999, FSinOsc.ar(700), 0) }.play
49 // scope, using the internal server:
51 { Integrator.ar(LFPulse.ar(1500 / 4, 0.2, 0.1), MouseX.kr(0.01, 0.999, 1)) }.scope