linux: shared memory interface - link with librt
[supercollider.git] / HelpSource / Classes / BPeakEQ.schelp
blob88343c155962da53f9646f8c03c291d7088296ba
1 class:: BPeakEQ
2 summary:: Parametric equalizer
3 categories:: UGens>Filters>BEQSuite
4 related:: Classes/SOS, Classes/BLowPass, Classes/BLowPass4, Classes/BHiPass, Classes/BHiPass4, Classes/BPeakEQ, Classes/BLowShelf, Classes/BHiShelf, Classes/BBandPass, Classes/BBandStop, Classes/BAllPass
6 description::
7 The B equalization suite is based on the Second Order Section (link::Classes/SOS::) biquad UGen.
9 note::
10 Biquad coefficient calculations imply certain amount of CPU overhead. These plugin UGens contain optimizations such that the coefficients get updated only when there has been a change to one of the filter's parameters. This can cause spikes in CPU performance and should be considered when using several of these units.
13 classmethods::
15 method:: ar
16 argument:: in
17 input signal to be processed.
18 argument:: freq
19 center frequency.
20 argument:: rq
21 the reciprocal of Q. bandwidth / cutoffFreq.
22 argument:: db
23 boost/cut the center frequency (in dBs).
25 examples::
26 code::
27 s.boot;
29 z = { // toy with boost/cut
30 BPeakEQ.ar(
31         SoundIn.ar([0,1]),
32         MouseX.kr(20, 20000, \exponential),
33         0.8, // rq
34         MouseY.kr(12.0, -12.0, \linear),
35         0.5); // mul
36 }.play)
37 z.release;
40 z = { // toy with rq
41 BPeakEQ.ar(
42         SoundIn.ar([0,1]),
43         MouseX.kr(20, 20000, \exponential),
44         MouseY.kr(10, 0.4, \linear), // rq
45         6, // boost/cut - +6dB
46         0.5); // mul
47 }.play)
48 z.release;