2 summary:: Second order filter section (biquad).
4 categories:: UGens>Filters>Linear
9 A standard second order filter section. Filter coefficients are given
10 directly rather than calculated for you. Formula is equivalent to:
14 out(i) = (a0 * in(i)) + (a1 * in(i-1)) + (a2 * in(i-2)) + (b1 * out(i-1)) + (b2 * out(i-2))
50 // example: same as TwoPole
53 var rho, theta, b1, b2;
54 theta = MouseX.kr(0.2pi, pi);
55 rho = MouseY.kr(0.6, 0.99);
56 b1 = 2.0 * rho * cos(theta);
58 SOS.ar(LFSaw.ar(200, 0, 0.1), 1.0, 0.0, 0.0, b1, b2)
65 var rho, theta, b1, b2;
66 theta = MouseX.kr(0.2pi, pi);
67 rho = MouseY.kr(0.6, 0.99);
68 b1 = 2.0 * rho * cos(theta);
70 SOS.ar(WhiteNoise.ar(0.1 ! 2), 1.0, 0.0, 0.0, b1, b2)
74 // example with SOS.kr kr as modulator
77 var rho, theta, b1, b2, vib;
78 theta = MouseX.kr(0.2pi, pi);
79 rho = MouseY.kr(0.6, 0.99);
80 b1 = 2.0 * rho * cos(theta);
83 vib = SOS.kr(LFSaw.kr(3.16), 1.0, 0.0, 0.0, b1, b2);
84 SinOsc.ar( vib * 200 + 600) * 0.2