#N canvas 579 34 536 697 12;
#X declare -stdpath ./;
#X obj 47 130 osc~ 100;
#X msg 65 157 clear;
#N canvas 471 254 550 387 test 0;
#X obj 127 283 env~ 16384;
#X floatatom 127 307 5 0 0 0 - - - 0;
#X floatatom 414 112 4 -1000 1000 0 - - - 0;
#X obj 294 112 cos~;
#X floatatom 229 57 5 0 0 0 - - - 0;
#X obj 269 119 tgl 15 0 empty empty empty 0 -6 0 8 #fcfcfc #000000
#000000 0 1;
#X obj 229 117 *~;
#X obj 229 80 phasor~;
#X floatatom 338 53 5 0 0 0 - - - 0;
#X obj 338 76 / 1000;
#X obj 338 113 -~ 0.25;
#X obj 338 135 cos~;
#X obj 414 137 / 1000;
#X obj 293 178 *~;
#X obj 338 178 *~;
#X obj 325 282 env~ 16384;
#X floatatom 325 306 5 0 0 0 - - - 0;
#X obj 230 207 czero~, f 14;
#X floatatom 165 106 4 -1000 1000 0 - - - 0;
#X obj 56 108 cos~;
#X obj 55 69 phasor~;
#X floatatom 55 44 5 0 0 0 - - - 0;
#X obj 99 109 -~ 0.25;
#X obj 99 133 cos~;
#X obj 165 135 / 1000;
#X obj 55 161 *~;
#X obj 99 161 *~;
#X text 151 14 Stuff to test it:;
#X obj 229 278 output~;
#X obj 26 223 declare -stdpath ./;
#X connect 0 0 1 0;
#X connect 2 0 12 0;
#X connect 3 0 13 0;
#X connect 4 0 7 0;
#X connect 5 0 6 1;
#X connect 6 0 17 0;
#X connect 7 0 6 0;
#X connect 8 0 9 0;
#X connect 9 0 3 0;
#X connect 9 0 10 0;
#X connect 10 0 11 0;
#X connect 11 0 14 0;
#X connect 12 0 14 1;
#X connect 12 0 13 1;
#X connect 13 0 17 2;
#X connect 14 0 17 3;
#X connect 15 0 16 0;
#X connect 17 0 0 0;
#X connect 17 0 28 0;
#X connect 17 0 28 1;
#X connect 17 1 15 0;
#X connect 18 0 24 0;
#X connect 19 0 25 0;
#X connect 20 0 22 0;
#X connect 20 0 19 0;
#X connect 21 0 20 0;
#X connect 22 0 23 0;
#X connect 23 0 26 0;
#X connect 24 0 26 1;
#X connect 24 0 25 1;
#X connect 25 0 17 0;
#X connect 26 0 17 1;
#X restore 401 571 pd test;
#X obj 96 212 sig~;
#X obj 128 236 sig~;
#X obj 160 260 sig~;
#X text 207 302 coefficient (real and imaginary part);
#X msg 75 183 set 0.6 0.8;
#X obj 57 12 czero~;
#X text 117 12 complex one-zero (non-recursive) filter \, raw;
#X text 22 46 Czero~ filters a complex audio signal (first two inlets)
via a one-zero filter \, whose coefficients are controlled by creation
arguments or by another complex audio signal (remaining two inlets).
, f 62;
#X text 30 325 The action of czero~ is:;
#X text 89 346 y[n] = x[n] - a[n] * x[n-1];
#X text 36 374 where y[n] is the output \, x[n] the input \, and a[n]
the filter coefficient (all complex numbers). The filter is always
stable., f 63;
#X text 37 422 The transfer function is H(Z) = 1 - aZ^-1.;
#X obj 65 284 czero~ 0.9 0.4;
#X text 113 130 <= signal to filter (real part);
#X text 110 157 <= clear internal state to zero;
#X text 162 183 <= set internal state (real&imaginary parts);
#X text 135 211 <= signal to filter (imaginary part);
#X text 170 235 <= filter coefficient (real part);
#X text 179 286 <= creation arguments initialize filter;
#X text 200 260 <= filter coefficient (imaginary part);
#X obj 96 622 lop~;
#X text 17 623 see also:;
#X obj 179 555 rzero~;
#X obj 119 578 cpole~;
#X obj 119 555 rpole~;
#X obj 239 555 rzero_rev~;
#X obj 179 578 czero~;
#X obj 239 578 czero_rev~;
#X text 318 555 real;
#X text 317 577 complex;
#X text 116 536 1-pole;
#X text 176 536 1-zero;
#X text 243 520 1-zero \, reversed, f 8;
#X text 25 560 summary of raw filters:, f 12;
#X obj 137 622 hip~;
#X obj 178 622 bp~;
#X obj 213 622 vcf~;
#X text 294 622 - user-friendly filters;
#X obj 254 622 bob~;
#X obj 381 495 bng 15 250 50 0 empty empty empty 17 7 0 10 #dcdcdc
#000000 #000000;
#X text 24 448 Pd also provides a suite of user-friendly filters. This
and other raw filters are provided for situations which the user-friendly
ones can't handle. See Chapter 8 of http://msp.ucsd.edu/techniques.htm
for an introduction to the necessary theory (click) =>, f 69;
#N canvas 798 148 456 264 Read-More 0;
#X obj 11 59 inlet;
#X obj 11 190 pdcontrol;
#X msg 11 139 browse http://msp.ucsd.edu/techniques/latest/book-html/node127.html
;
#X connect 0 0 2 0;
#X connect 2 0 1 0;
#X restore 381 528 pd Read-More;
#X obj 19 653 biquad~;
#X text 194 653 - not so friendly;
#X obj 80 652 fexpr~;
#X obj 135 652 slop~, f 7;
#X text 335 656 updated for Pd version 0.38;
#X connect 0 0 15 0;
#X connect 1 0 15 0;
#X connect 3 0 15 1;
#X connect 4 0 15 2;
#X connect 5 0 15 3;
#X connect 7 0 15 0;
#X connect 42 0 44 0;
