#N canvas 702 61 559 690 12;
#X declare -stdpath ./;
#X obj 104 126 osc~ 100;
#X msg 122 153 clear;
#N canvas 534 144 522 578 test 0;
#X obj 189 431 env~ 16384;
#X floatatom 189 455 5 0 0 0 - - - 0;
#X floatatom 359 168 4 -1000 1000 0 - - - 0;
#X obj 254 186 cos~;
#X floatatom 255 50 5 0 0 0 - - - 0;
#X obj 255 73 phasor~;
#X floatatom 302 17 5 0 0 0 - - - 0;
#X obj 301 42 / 1000;
#X obj 295 169 -~ 0.25;
#X obj 295 191 cos~;
#X obj 359 197 / 1000;
#X obj 254 224 *~;
#X obj 295 225 *~;
#X obj 273 429 env~ 16384;
#X floatatom 273 453 5 0 0 0 - - - 0;
#X obj 136 191 phasor~;
#X floatatom 136 162 5 0 0 0 - - - 0;
#X text 61 83 Stuff to test it:;
#X obj 136 272 cpole~;
#X obj 295 269 *~ -1;
#X obj 64 488 env~ 16384;
#X floatatom 64 512 5 0 0 0 - - - 0;
#X obj 143 488 env~ 16384;
#X floatatom 143 512 5 0 0 0 - - - 0;
#X obj 143 304 cpole~;
#X obj 160 341 czero_rev~;
#X obj 205 370 czero_rev~;
#X msg 48 212 clear;
#X obj 255 103 cos~;
#X obj 254 134 *~ 0.02;
#X obj 304 100 sig~ 1.1;
#X obj 388 424 output~;
#X obj 58 38 declare -stdpath ./;
#X connect 0 0 1 0;
#X connect 2 0 10 0;
#X connect 3 0 11 0;
#X connect 4 0 5 0;
#X connect 5 0 28 0;
#X connect 6 0 7 0;
#X connect 7 0 5 1;
#X connect 8 0 9 0;
#X connect 9 0 12 0;
#X connect 10 0 12 1;
#X connect 10 0 11 1;
#X connect 11 0 18 2;
#X connect 11 0 24 2;
#X connect 11 0 25 2;
#X connect 11 0 26 2;
#X connect 12 0 18 3;
#X connect 12 0 19 0;
#X connect 12 0 25 3;
#X connect 13 0 14 0;
#X connect 15 0 18 0;
#X connect 15 0 20 0;
#X connect 15 0 31 1;
#X connect 16 0 15 0;
#X connect 18 0 24 0;
#X connect 18 1 24 1;
#X connect 19 0 24 3;
#X connect 19 0 26 3;
#X connect 20 0 21 0;
#X connect 22 0 23 0;
#X connect 24 0 22 0;
#X connect 24 0 25 0;
#X connect 24 1 25 1;
#X connect 25 0 26 0;
#X connect 25 1 26 1;
#X connect 26 0 0 0;
#X connect 26 0 31 0;
#X connect 26 1 13 0;
#X connect 27 0 18 0;
#X connect 27 0 24 0;
#X connect 28 0 29 0;
#X connect 29 0 3 0;
#X connect 29 0 8 0;
#X connect 30 0 29 0;
#X restore 422 571 pd test;
#X obj 153 208 sig~;
#X obj 185 232 sig~;
#X obj 217 255 sig~;
#X text 262 294 coefficient (real and imaginary part);
#X msg 133 179 set 0.6 0.8;
#X text 66 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 64;
#X obj 122 280 czero~ 0.9 0.4;
#X obj 33 14 czero_rev~;
#X text 36 44 Czero_rev~ 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). The impulse response is that of "rzero" reversed in time.
, f 64;
#X text 103 347 y[n] = - a[n] * x[n] + x[n-1];
#X text 66 414 The transfer function is H(Z) = -a + Z^-1.;
#X text 123 13 - complex one-zero (non-recursive) "reverse" filter
\, raw;
#X text 198 207 <= signal to filter (imaginary part);
#X text 230 232 <= filter coefficient (real part);
#X text 260 255 <= filter coefficient (imaginary part);
#X text 240 280 <= creation arguments initialize filter;
#X text 168 127 <= signal to filter (real part);
#X text 166 152 <= clear internal state to zero;
#X text 219 180 <= set internal state (real&imaginary parts);
#X text 50 324 The action of czero_rev~ is:;
#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;
#X obj 19 653 biquad~;
#X text 194 653 - not so friendly;
#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 80 652 fexpr~;
#X obj 135 652 slop~, f 7;
#X text 351 652 updated for Pd version 0.38;
#X connect 0 0 9 0;
#X connect 1 0 9 0;
#X connect 3 0 9 1;
#X connect 4 0 9 2;
#X connect 5 0 9 3;
#X connect 7 0 9 0;
#X connect 42 0 46 0;
