#N canvas 501 37 629 664 12;
#X obj 152 437 env~;
#X floatatom 152 468 8 0 0 0 - - - 0;
#X floatatom 53 306 5 0 0 0 - - - 0;
#X obj 53 437 env~;
#X floatatom 53 468 8 0 0 0 - - - 0;
#X text 78 498 Compare the value of the straight signal on the left with the value of the filtered signal on the right.;
#X obj 152 407 biquad~ 1.41407 -0.9998 1 -1.41421 1;
#X msg 152 303 1.41407 -0.9998 1 -1.41421 1;
#X msg 186 369 clear;
#X obj 53 352 osc~ 5512.5;
#X msg 471 274 \; pd dsp \$1;
#X text 39 227 The filter's coefficients syntax (set via arguments or list input) is: fb1 fb2 ff1 ff2 ff3, f 51;
#X text 259 330 set internal state (previous input samples), f 24;
#X msg 171 338 set 0.5 0.4;
#X text 234 369 or clear memory (same as 'set 0 0').;
#X text 149 281 list sets filter's parameters;
#X obj 21 14 biquad~;
#X obj 5 45 cnv 1 602 1 empty empty empty 8 12 0 13 #000000 #000000 0;
#N canvas 732 181 586 254 reference 0;
#X obj 18 48 cnv 5 550 5 empty empty INLET: 8 18 0 13 #202020 #000000 0;
#X obj 18 148 cnv 2 550 2 empty empty OUTLET: 8 12 0 13 #202020 #000000 0;
#X obj 18 185 cnv 2 550 2 empty empty ARGUMENTS: 8 12 0 13 #202020 #000000 0;
#X obj 17 229 cnv 5 550 5 empty empty empty 8 18 0 13 #202020 #000000 0;
#X obj 39 16 biquad~;
#X text 121 60 signal - input signal to be filtered., f 59;
#X text 128 117 clear - clear filter's memory buffer., f 58;
#X text 123 158 signal - the filtered signal output.;
#X text 112 198 1) list - initializes the 5 coefficients (fb1 fb2 ff1 ff2 ff3)., f 63;
#X text 37 98 set <float \, float> - set the last two input samples., f 71;
#X text 135 79 list - list of filter coefficients (fb1 fb2 ff1 ff2 ff3).;
#X text 101 15 - biquad 2nd order (2-pole/2-zero) filter;
#X restore 417 13 pd reference;
#X text 515 13 <= click;
#X text 54 561 see also:;
#X obj 185 610 rzero~;
#X obj 128 633 cpole~;
#X obj 128 610 rpole~;
#X obj 242 610 rzero_rev~;
#X obj 185 633 czero~;
#X obj 242 633 czero_rev~;
#X obj 128 560 lop~;
#X obj 169 560 hip~;
#X obj 211 560 bp~;
#X obj 246 560 vcf~;
#X obj 286 560 bob~;
#X obj 128 585 fexpr~;
#X obj 183 585 slop~, f 7;
#X text 14 57 [biquad~] calculates the following difference equation:;
#X obj 6 545 cnv 1 602 1 empty empty empty 8 12 0 13 #000000 #000000 0;
#X text 227 432 this [biquad~] is a notch filter for fn = Pi/4 (= SR/8 = 5512.5Hz @44.1k), f 36;
#X text 327 560 <-- user-friendly filters;
#X text 242 585 <-- not friendly;
#X text 14 621 raw filters -->;
#X text 407 631 updated for Pd version 0.3;
#X text 45 86 y[n] = fb1 * y[n-1] + fb2 * y[n-2] + ff1 * x[n] + ff2 * x[n-1] + ff3 * x[n-2], f 77;
#X obj 471 236 set-dsp-tgl;
#X text 502 240 DSP on/off;
#X text 9 116 Where y[n] is the output sample \, y[n-1] is the last output sample and y[n-2] is the output previous to the last one. These samples are fedback \, hence these are marked as 'fb' (standing for 'feedback') coefficients., f 85;
#X text 9 165 x[n] is the input sample \, x[n-1] is the last input sample and x[n-2] is the input previous to the last one. Hence these are marked as 'ff' (standing for 'feedforward') coefficients., f 85;
#X text 81 13 - biquad 2nd order (2-pole/2-zero) filter;
#X connect 0 0 1 0;
#X connect 2 0 9 0;
#X connect 3 0 4 0;
#X connect 6 0 0 0;
#X connect 7 0 6 0;
#X connect 8 0 6 0;
#X connect 9 0 3 0;
#X connect 9 0 6 0;
#X connect 13 0 6 0;
#X connect 42 0 10 0;
