#N canvas 411 33 561 704 10;
#X declare -stdpath ./;
#X obj 2 670 cnv 15 552 21 empty empty empty 20 12 0 14 #e0e0e0 #202020 0;
#X obj 3 388 cnv 3 550 3 empty empty inlets 8 12 0 13 #dcdcdc #000000 0;
#X obj 3 536 cnv 3 550 3 empty empty outlets 8 12 0 13 #dcdcdc #000000 0;
#X obj 3 565 cnv 3 550 3 empty empty arguments 8 12 0 13 #dcdcdc #000000 0;
#X obj 113 395 cnv 17 3 41 empty empty 0 5 9 0 16 #dcdcdc #9c9c9c 0;
#X obj 113 439 cnv 17 3 17 empty empty 1 5 9 0 16 #dcdcdc #9c9c9c 0;
#X text 176 393 signal;
#X obj 113 458 cnv 17 3 17 empty empty 2 5 9 0 16 #dcdcdc #9c9c9c 0;
#X obj 113 496 cnv 17 3 17 empty empty 4 5 9 0 16 #dcdcdc #9c9c9c 0;
#X obj 113 543 cnv 17 3 17 empty empty 0 5 9 0 16 #dcdcdc #9c9c9c 0;
#X obj 113 477 cnv 17 3 17 empty empty 3 5 9 0 16 #dcdcdc #9c9c9c 0;
#X obj 113 477 cnv 17 3 17 empty empty 3 5 9 0 16 #dcdcdc #9c9c9c 0;
#X text 176 543 signal;
#X obj 113 515 cnv 17 3 17 empty empty 5 5 9 0 16 #dcdcdc #9c9c9c 0;
#X text 226 478 - input amplitude coefficient (a);
#X text 226 516 - feedback amplitude coefficient (c);
#X text 140 440 float/signal;
#X text 140 459 float/signal;
#X text 140 478 float/signal;
#X text 140 497 float/signal;
#X text 140 516 float/signal;
#X text 164 570 1) float;
#X text 164 587 2) float;
#X text 164 603 3) float;
#X text 164 619 4) float;
#X text 164 634 5) float;
#X text 228 570 - maximum delay time in ms (default 10 ms);
#X obj 121 132 noise~;
#X obj 168 163 *~;
#X obj 183 132 cyclone/train~ 1000 0.1;
#X text 228 649 - c: feedback gain coefficient (default 0);
#X text 164 649 6) float;
#X text 228 634 - b: feedforward gain coefficient (default 0);
#X text 228 619 - a: input gain coefficient (default 0);
#X text 228 587 - ff_D: ff delay time in ms (default 0);
#X text 228 603 - fb_D: fb delay time in ms (default 0);
#X text 226 393 - signal to pass through teeth filter;
#X text 188 409 list;
#X text 226 424 - clears buffer;
#X text 182 424 clear;
#X text 226 409 - updates all 6 arguments;
#X text 226 497 - feed forward delay amplitude coefficient (b);
#X text 226 439 - feed forward delay time in milliseconds (ff_D);
#X text 225 459 - feedback delay time in milliseconds (fb_D);
#X floatatom 209 172 5 0 100 0 - sdfsdf - 0;
#X floatatom 292 172 5 0 100 0 - sdfsdfs - 0;
#X floatatom 333 172 5 0 0 0 - sdfsdf - 0;
#X floatatom 375 172 5 0 0 0 - sdfsdf - 0;
#X text 301 157 a;
#X text 341 156 b;
#X text 381 156 c;
#X floatatom 250 172 5 0 100 0 - sdfsdf - 0;
#X text 208 156 ff D;
#X text 250 156 fb D;
#N canvas 392 79 592 495 filter_equation 0;
#X obj 27 47 cnv 15 290 140 empty empty empty 20 12 0 14 #e0e0e0 #404040 0;
#X text 80 65 |;
#X text 80 77 |;
#X text 80 89 |;
#X text 61 100 |;
#X text 103 100 |;
#X text 103 120 |;
#X text 61 120 |;
#X text 64 91 _______;
#X text 64 120 _______;
#X text 80 92 v;
#X text 142 92 |;
#X text 142 103 |;
#X text 142 73 |;
#X text 142 82 |;
#X text 142 68 ^;
#X text 226 66 |;
#X text 226 78 |;
#X text 226 90 |;
#X text 207 101 |;
#X text 249 101 |;
#X text 249 121 |;
#X text 207 121 |;
#X text 210 92 _______;
#X text 210 121 _______;
#X text 226 93 v;
#X text 172 94 |;
#X text 172 104 |;
#X text 172 72 |;
#X text 172 82 |;
#X text 172 67 ^;
#X text 249 58 >;
#X text 61 110 |z^-d1 |;
#X text 207 111 |z^-d2 |;
#X text 41 157 y[n] = a * x[n] + b * x[n-d1] + c * y[n-d2];
#X text 109 109 -(*b)-;
#X text 173 110 -(*c)-;
#X text 40 59 x[n] -----(*a)--(+)--(+)----------- y[n];
#X text 348 111 a = input gain coefficient;
#X text 348 126 b = feedforward gain coefficient;
#X text 348 141 c = feedback gain coefficient;
#X text 342 82 d1 = feed forward delay time;
#X text 342 96 d2 = feedback delay time;
#X floatatom 216 344 5 0 100 0 - - - 0;
#X obj 167 315 noise~;
#X obj 167 372 cyclone/teeth~ 100 70.5 93 0.25 0.33 0.925;
#X floatatom 316 343 5 0 100 0 - - - 0;
#X floatatom 366 343 5 0 0 0 - - - 0;
#X floatatom 416 344 5 0 0 0 - - - 0;
#X obj 319 266 hsl 128 15 -1 1 0 0 empty empty empty -2 -8 0 10 #dcdcdc #000000 #000000 0 1;
#X obj 369 291 hsl 128 15 -1 1 0 0 empty empty empty -2 -8 0 10 #dcdcdc #000000 #000000 0 1;
#X obj 419 317 hsl 128 15 -1 1 0 0 empty empty empty -2 -8 0 10 #dcdcdc #000000 #000000 0 1;
#X text 444 316 feedback (c);
#X text 392 291 feedforward (b);
#X text 350 265 input (a);
#X floatatom 266 344 5 0 100 0 - - - 0;
#X text 220 324 d1;
#X text 270 324 d2;
#X msg 87 284 50 20.5 43 0.55 0.43 0.95;
#X text 85 261 list updates all arguments;
#X text 60 215 If the delay time lies between two samples \, a simple linear interpolation is performed.;
#X obj 167 410 output~;
#X text 71 22 Filter diagram;
#X connect 43 0 45 1;
#X connect 44 0 45 0;
#X connect 45 0 61 0;
#X connect 46 0 45 3;
#X connect 47 0 45 4;
#X connect 48 0 45 5;
#X connect 49 0 46 0;
#X connect 50 0 47 0;
#X connect 51 0 48 0;
#X connect 55 0 45 2;
#X connect 58 0 45 0;
#X restore 430 234 pd filter_equation;
#X text 226 543 - output from teeth filter;
#X obj 168 194 cyclone/teeth~ 80 80 50 0.5 0.5 0.8;
#X text 75 87 [teeth~] is a comb filter with independent time control of feedforward and feedback delays.;
#N canvas 899 166 452 377 example 0;
#X obj 136 59 tgl 15 0 empty empty empty 17 7 0 10 #dcdcdc #000000 #000000 0 1;
#X obj 136 83 metro 1500;
#X obj 136 135 mtof;
#X obj 136 35 loadbang;
#X floatatom 136 160 0 0 0 0 - - - 0;
#X text 251 186 <= independent feedforward;
#X text 281 204 delay time;
#X obj 136 185 osc~;
#X obj 136 110 expr random(50 \, 80);
#X obj 203 186 +~ 15;
#X obj 203 160 osc~ 5;
#X obj 164 234 cyclone/teeth~ 20 15 20 0.5 1 0.95;
#X obj 164 274 output~;
#X connect 0 0 1 0;
#X connect 1 0 8 0;
#X connect 2 0 4 0;
#X connect 3 0 0 0;
#X connect 4 0 7 0;
#X connect 7 0 11 0;
#X connect 8 0 2 0;
#X connect 9 0 11 1;
#X connect 10 0 9 0;
#X connect 11 0 12 0;
#X restore 477 211 pd example;
#X obj 168 223 output~;
#X obj 4 3 ./header teeth~;
#X text 22 56 Teeth comb filter;
#X obj 24 244 declare -stdpath ./;
#X text 40 321 see also:;
#X text 111 314 As an alternative \, PlugData users and those with ELSE can can easily built this type of system with [else/ffdelay~] and [else/fbdelay~]., f 49;
#X obj 424 351 open-else;
#X text 428 283 click;
#X msg 424 302 ffdelay~;
#X msg 436 325 fbdelay~;
#X connect 27 0 28 0;
#X connect 28 0 56 0;
#X connect 29 0 28 1;
#X connect 44 0 56 1;
#X connect 45 0 56 3;
#X connect 46 0 56 4;
#X connect 47 0 56 5;
#X connect 51 0 56 2;
#X connect 56 0 59 0;
#X connect 67 0 65 0;
#X connect 68 0 65 0;
