#N canvas 283 177 890 441 12;
#X obj 108 367 filter-graph2 tab1 tab2;
#N canvas 0 50 450 300 (subpatch) 0;
#X array tab1 100 float 0;
#X coords 0 2 99 0 200 140 1 0 0;
#X restore 572 28 graph;
#N canvas 0 50 450 300 (subpatch) 0;
#X array tab2 100 float 2;
#X coords 0 6.283 99 0 200 140 1 0 0;
#X restore 577 229 graph;
#X text 559 85 1;
#X text 571 371 0;
#X text 553 294 pi;
#X text 546 224 2pi;
#X obj 81 252 bng 15 250 50 0 empty empty empty 0 -6 0 8 -262144 -1
-1;
#X floatatom 81 310 5 0 0 0 - - -;
#X text 559 21 2;
#X text 54 20 MEASURING FILTER FREQUENCY AND PHASE RESPONSE;
#X text 581 404 updated for Pd version 0.39;
#X text 629 174 frequency;
#X text 569 170 0;
#X text 752 173 44100;
#N canvas 876 177 298 247 startup 0;
#X obj 47 24 loadbang;
#X obj 47 48 bng 15 250 50 0 empty empty empty 0 -6 0 8 -262144 -1
-1;
#X obj 47 67 f \$0;
#X text 61 174 This subpatch loads initial;
#X text 64 194 values in number boxes.;
#X msg 47 91 \; \$1-freq 3000 \; \$1-q 3;
#X connect 0 0 1 0;
#X connect 1 0 2 0;
#X connect 2 0 5 0;
#X restore 329 358 pd startup;
#X floatatom 275 276 5 0 10000 0 - #0-freq -;
#X floatatom 284 299 3 0 999 0 - #0-q -;
#X text 36 59 You can use the "filter-graph1" and "filter-graph2" abstractions
as shown to test filters. Connect them as shown with a filter between
them. Try varying the parameters and/or substituting other filters.
, f 64;
#X text 513 156 gain=0;
#X text 512 356 phase=0;
#X obj 81 275 filter-graph1 100 44100;
#X obj 266 329 bp~;
#X text 37 311 index;
#X text 36 127 "filter-graph1" takes as arguments the number of points
to graph and the frequency range. "filter-graph2" takes as arguments
the name of a table to hold the (frequency dependent) gain \, and another
\, if specified \, for the phase., f 64;
#X text 36 193 You can edit this patch to replace "bp" with any other
filter you're curious about., f 64;
#X text 314 298 <= "Q";
#X text 317 275 <= center frequency;
#X text 100 251 <= compute;
#X connect 7 0 21 0;
#X connect 8 0 0 0;
#X connect 16 0 22 1;
#X connect 17 0 22 2;
#X connect 21 0 8 0;
#X connect 21 1 0 1;
#X connect 21 1 22 0;
#X connect 21 2 0 2;
#X connect 22 0 0 3;
