#N canvas 553 38 697 632 12;
#X declare -stdpath ./;
#X floatatom 193 252 5 0 150 0 - \$0-pitch - 0;
#X obj 193 320 phasor~;
#X obj 352 388 +~;
#X floatatom 370 363 5 0 100 0 - \$0-offset - 0;
#X floatatom 352 252 5 0 0 0 - \$0-speed - 0;
#X floatatom 370 310 5 0 100 0 - \$0-depth - 0;
#X floatatom 365 443 5 0 1000 0 - \$0-q - 0;
#X text 418 282 LFO for sweep;
#X text 388 387 add base to sweep;
#X text 397 417 convert to Hz.;
#X obj 340 532 output~;
#X obj 193 286 mtof;
#X obj 352 281 phasor~;
#X obj 352 335 *~;
#X obj 352 417 mtof~;
#N canvas 706 247 304 346 init 0;
#X obj 85 23 loadbang;
#X obj 85 47 bng 19 250 50 0 empty empty empty 0 -6 0 8 #dfdfdf #000000 #000000;
#X obj 85 76 f \$0;
#X obj 86 277 declare -stdpath ./;
#X text 66 209 This subpatch initializes the patch and loads values in number boxes., f 27;
#X msg 85 100 \; \$1-pitch 36 \; \$1-speed -2 \; \$1-depth 27 \; \$1-offset 56 \; \$1-q 3;
#X connect 0 0 1 0;
#X connect 1 0 2 0;
#X connect 2 0 5 0;
#X restore 520 523 pd init;
#X text 408 441 <-- Q (selectivity);
#X text 413 363 <-- base center frequency;
#X text 412 311 <-- sweep depth;
#X text 394 251 <-- sweep speed;
#X obj 45 22 cnv 5 5 25 empty empty Sweeping\ Filters 15 13 0 16 #dfdfdf #202020 0;
#X obj 193 382 -~ 1;
#X obj 193 352 *~ 2;
#X text 81 324 [phasor~] is turned to a sawtooth like oscillator, f 14;
#X obj 193 532 output~;
#X obj 340 488 bob~;
#X obj 193 491 vcf~;
#X text 120 251 pitch -->;
#X text 68 69 If you want actively changing center frequencies \, use [vcf~] or [bob~] instead of [bp~]. The [vcf~] module takes an audio signal to set center frequency (Q is still set by messages though) \, which makes it computationally somewhat more expensive than [bp~] and has two outputs \, the left behaves as bandpass like [bp~] and the right output is a nit more like a resonant lowpass filter., f 80;
#X text 68 147 For a true resonant lowpass filter \, check [bob~] \, which is even more expensive and emulates the sound of the moog filter. It takes a signal to change the resonant frequency as well as the 'Q' factor. Check the help file of both. Note the different effects of negative and positive sweep speeds., f 80;
#X connect 0 0 11 0;
#X connect 1 0 22 0;
#X connect 2 0 14 0;
#X connect 3 0 2 1;
#X connect 4 0 12 0;
#X connect 5 0 13 1;
#X connect 6 0 25 2;
#X connect 6 0 26 2;
#X connect 11 0 1 0;
#X connect 12 0 13 0;
#X connect 13 0 2 0;
#X connect 14 0 25 1;
#X connect 14 0 26 1;
#X connect 21 0 25 0;
#X connect 21 0 26 0;
#X connect 22 0 21 0;
#X connect 25 0 10 0;
#X connect 26 0 24 0;
