linux: shared memory interface - link with librt
[supercollider.git] / HelpSource / Classes / HPZ2.schelp
blob7d251670f655fa21baebdd5ac973fc3feae88b7f
1 class:: HPZ2
2 summary:: Two zero fixed midcut.
3 related:: Classes/BPZ2, Classes/BRZ2, Classes/LPZ2, Classes/HPZ1
4 categories::  UGens>Filters>Linear
7 Description::
9 A special case fixed filter. Implements the formula:
11 formula::
12 out(i) = 0.25 * (in(i) - (2 * in(i - 1)) + in(i - 2)).
16 classmethods::
18 method::ar, kr
20 argument::in
22 The input signal.
25 argument::mul
27 Output will be multiplied by this value.
30 argument::add
32 This value will be added to the output.
35 Examples::
37 code::
38 // Compare:
40 { WhiteNoise.ar(0.25) }.play;
42 { HPZ2.ar(WhiteNoise.ar(0.25)) }.play;
44 // HPZ2 is useful to detect changes in a signal:
45 // see also HPZ1
48         var changingSignal = LFNoise0.ar(1000);
49         var hpz1 = HPZ2.ar(changingSignal);
50         [hpz1, hpz1 > 0]
51 }.plot