#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 249 bng 17 250 50 0 empty empty empty 0 -6 0 8 #dfdfdf #000000 #000000;
#X floatatom 81 310 5 0 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 27 loadbang;
#X obj 47 51 bng 19 250 50 0 empty empty empty 0 -6 0 8 #dfdfdf #000000 #000000;
#X obj 47 80 f \$0;
#X text 61 187 This subpatch loads initial;
#X text 64 207 values in number boxes.;
#X msg 47 104 \; \$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 305 358 pd startup;
#X floatatom 275 276 5 0 10000 0 - \$0-freq - 0;
#X floatatom 284 299 4 0 999 0 - \$0-q - 0;
#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 319 298 <= "Q";
#X text 317 275 <= center frequency;
#X text 103 248 <= compute;
#X obj 404 312 ../5.reference/set-dsp-tgl;
#X text 435 315 DSP on/off;
#X msg 404 349 \; pd dsp \$1;
#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;
#X connect 29 0 31 0;
