Merge pull request #506 from andrewcsmith/patch-2
[supercollider.git] / HelpSource / Classes / OnePole.schelp
blob2cf0fcc79ec787d13fa9f739768357a1d42db523
1 class:: OnePole
2 summary:: One pole filter.
3 related:: Classes/OneZero
4 categories::  UGens>Filters>Linear
7 Description::
9 A one pole filter. Implements the formula:
11 code::
13 out(i) = ((1 - abs(coef)) * in(i)) + (coef * out(i-1)).
18 classmethods::
20 method::ar, kr
22 argument::in
24 The input signal.
27 argument::coef
29 Feedback coefficient. Should be between -1 and +1
32 argument::mul
34 Output will be multiplied by this value.
37 argument::add
39 This value will be added to the output.
42 Examples::
44 code::
46 { OnePole.ar(WhiteNoise.ar(0.5), 0.95) }.play
48 { OnePole.ar(WhiteNoise.ar(0.5), -0.95) }.play
50 { OnePole.ar(WhiteNoise.ar(0.5), Line.kr(-0.99, 0.99, 10)) }.play