Explicitly include a boost "windows" folder even on linux
[supercollider.git] / HelpSource / Classes / Integrator.schelp
blobec886b3b4ea89dbc370c3aff4e9498424ef0ef1e
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 code::
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