linux: shared memory interface - link with librt
[supercollider.git] / HelpSource / Classes / OneZero.schelp
blobb5669dc09101b679523a1b82e2ec51bf2ba8d0b1
1 class:: OneZero
2 summary:: One zero filter.
3 related:: Classes/OnePole
4 categories::  UGens>Filters>Linear
7 Description::
9 A one zero filter. Implements the formula:
11 formula::
13 out(i) = ((1 - abs(coef)) * in(i)) + (coef * in(i-1)).
18 classmethods::
20 method::ar, kr
22 argument::in
24 The input signal.
27 argument::coef
29 Feed forward coefficient.
32 +0.5 makes a two point averaging filter
33 (see also
34 link::Classes/LPZ1:: ).
37 -0.5 makes a differentiator
38 (see also
39 link::Classes/HPZ1:: ).
42 +1 makes a single sample delay
43 (see also
44 link::Classes/Delay1:: ).
47 -1 makes an inverted single sample delay.
50 argument::mul
52 Output will be multiplied by this value.
55 argument::add
57 This value will be added to the output.
60 Examples::
62 code::
64 { OneZero.ar(WhiteNoise.ar(0.5), 0.5) }.play
66 { OneZero.ar(WhiteNoise.ar(0.5), -0.5) }.play
68 { OneZero.ar(WhiteNoise.ar(0.5), Line.kr(-0.5, 0.5, 10)) }.play