aboutsummaryrefslogtreecommitdiff
path: root/doc/tutorials/playnow/filter.sweep.pd
diff options
context:
space:
mode:
Diffstat (limited to 'doc/tutorials/playnow/filter.sweep.pd')
-rw-r--r--doc/tutorials/playnow/filter.sweep.pd212
1 files changed, 212 insertions, 0 deletions
diff --git a/doc/tutorials/playnow/filter.sweep.pd b/doc/tutorials/playnow/filter.sweep.pd
new file mode 100644
index 00000000..28bb76ce
--- /dev/null
+++ b/doc/tutorials/playnow/filter.sweep.pd
@@ -0,0 +1,212 @@
+#N canvas 171 51 741 541 12;
+#X text 35 6 SWEEPING FILTERS;
+#X text 13 28 If you want actively changing center frequencies \, use
+"vcf~" instead of "bp~". The vcf~ module takes an audio signal to set
+center frequency. (Q is still set by messages though.) Vcf is somewhat
+more expensive than bp~.;
+#X text 13 95 Note the effect of negative and positive sweep speed.
+;
+#X obj 374 152 grid grid6 200 0 199 200 0 199 1 1 1 10 10 0 0;
+#X obj 374 357 / 2;
+#X obj 688 30 vsl 22 200 0 100 0 0 master-lvl empty volume -9 -8 1
+8 -225271 -1 -1 0 1;
+#N canvas 0 22 822 508 guts 0;
+#X floatatom 144 438 0 0 0 0 - - -;
+#N canvas 159 26 497 268 output 0;
+#X obj 338 160 t b;
+#X obj 338 110 f;
+#X obj 338 60 inlet;
+#X text 344 29 mute;
+#X obj 338 185 f;
+#X msg 425 178 0;
+#X msg 338 85 bang;
+#X obj 338 135 moses 1;
+#X obj 425 153 t b f;
+#X obj 397 117 moses 1;
+#X obj 83 148 dbtorms;
+#X obj 397 92 r master-lvl;
+#X obj 83 42 r master-lvl;
+#X obj 338 210 s master-lvl;
+#X obj 22 181 inlet~;
+#X obj 199 41 inlet;
+#X text 199 18 level;
+#X obj 199 100 s master-lvl;
+#X msg 96 65 set \$1;
+#X obj 96 89 outlet;
+#X msg 214 64 \; pd dsp 1;
+#X obj 83 194 line~;
+#X obj 22 212 *~;
+#X obj 22 241 dac~;
+#X obj 83 171 pack 0 50;
+#X text 20 158 audio;
+#X text 93 110 show level;
+#X connect 0 0 4 0;
+#X connect 1 0 7 0;
+#X connect 2 0 6 0;
+#X connect 4 0 13 0;
+#X connect 5 0 13 0;
+#X connect 6 0 1 0;
+#X connect 7 0 0 0;
+#X connect 7 1 8 0;
+#X connect 8 0 5 0;
+#X connect 9 1 4 1;
+#X connect 10 0 24 0;
+#X connect 11 0 1 1;
+#X connect 11 0 9 0;
+#X connect 12 0 10 0;
+#X connect 12 0 18 0;
+#X connect 14 0 22 0;
+#X connect 15 0 17 0;
+#X connect 15 0 20 0;
+#X connect 18 0 19 0;
+#X connect 21 0 22 1;
+#X connect 22 0 23 0;
+#X connect 22 0 23 1;
+#X connect 24 0 21 0;
+#X restore 115 466 pd output;
+#X msg 173 438 MUTE;
+#X text 212 437 <-- output amplitude;
+#X obj 115 111 line~;
+#X floatatom 115 63 0 0 0 0 - - -;
+#X obj 115 87 pack 0 100;
+#X obj 115 159 phasor~;
+#X obj 115 135 tabread4~ mtof;
+#X obj 248 283 +~;
+#X obj 264 260 line~;
+#X obj 264 236 pack 0 100;
+#X floatatom 264 212 0 0 0 0 - - -;
+#X floatatom 248 63 0 0 0 0 - - -;
+#X floatatom 271 137 0 0 0 0 - - -;
+#X obj 115 39 r pitch;
+#X obj 271 113 r depth;
+#X obj 248 39 r speed;
+#X obj 264 188 r offset;
+#X obj 195 364 r q;
+#X floatatom 195 388 0 0 0 0 - - -;
+#X obj 115 383 vcf~;
+#X obj 115 407 hip~ 5;
+#X obj 248 162 *~ 0;
+#X obj 248 87 phasor~ 0;
+#X obj 248 307 tabread4~ mtof;
+#X text 234 389 <-- Q (selectivity);
+#X text 125 176 sawtooth;
+#X text 124 190 oscillator;
+#X text 302 66 <-- sweep speed;
+#X text 339 88 LFO for sweep;
+#X text 325 140 <-- sweep depth;
+#X text 311 214 <-- base center frequency;
+#X text 292 282 add base to sweep;
+#X text 376 306 convert to Hz.;
+#X text 152 64 <-- pitch;
+#X obj 565 31 loadbang;
+#N canvas 0 22 600 392 conversion-tables 0;
+#N canvas 0 22 450 300 graph1 0;
+#X array dbtorms 123 float 1;
+#A 0 0 0 1.25893e-05 1.41254e-05 1.58489e-05 1.77828e-05 1.99526e-05
+2.23872e-05 2.51189e-05 2.81838e-05 3.16228e-05 3.54813e-05 3.98107e-05
+4.46684e-05 5.01187e-05 5.62341e-05 6.30957e-05 7.07946e-05 7.94328e-05
+8.91251e-05 0.0001 0.000112202 0.000125893 0.000141254 0.000158489
+0.000177828 0.000199526 0.000223872 0.000251189 0.000281838 0.000316228
+0.000354813 0.000398107 0.000446684 0.000501187 0.000562341 0.000630957
+0.000707946 0.000794328 0.000891251 0.001 0.00112202 0.00125893 0.00141254
+0.00158489 0.00177828 0.00199526 0.00223872 0.00251189 0.00281838 0.00316228
+0.00354813 0.00398107 0.00446684 0.00501187 0.00562341 0.00630957 0.00707946
+0.00794328 0.00891251 0.01 0.0112202 0.0125893 0.0141254 0.0158489
+0.0177828 0.0199526 0.0223872 0.0251189 0.0281838 0.0316228 0.0354813
+0.0398107 0.0446684 0.0501187 0.0562341 0.0630957 0.0707946 0.0794328
+0.0891251 0.1 0.112202 0.125893 0.141254 0.158489 0.177828 0.199526
+0.223872 0.251189 0.281838 0.316228 0.354813 0.398107 0.446684 0.501187
+0.562341 0.630957 0.707946 0.794328 0.891251 1 1.12202 1.25893 1.41254
+1.58489 1.77828 1.99526 2.23872 2.51189 2.81838 3.16228 3.54813 3.98107
+4.46684 5.01187 5.62341 6.30957 7.07946 7.94328 8.91251 10 11.2202
+12.5893;
+#X coords 0 10 123 0 200 100 1;
+#X restore 302 48 graph;
+#X text 504 141 0;
+#X text 506 41 10;
+#X text 321 151 ------ 123 samples ------;
+#N canvas 0 22 450 300 graph2 0;
+#X array mtof 130 float 1;
+#A 0 8.1758 8.66196 9.17702 9.72272 10.3009 10.9134 11.5623 12.2499
+12.9783 13.75 14.5676 15.4339 16.3516 17.3239 18.354 19.4454 20.6017
+21.8268 23.1247 24.4997 25.9565 27.5 29.1352 30.8677 32.7032 34.6478
+36.7081 38.8909 41.2034 43.6535 46.2493 48.9994 51.9131 55 58.2705
+61.7354 65.4064 69.2957 73.4162 77.7817 82.4069 87.3071 92.4986 97.9989
+103.826 110 116.541 123.471 130.813 138.591 146.832 155.563 164.814
+174.614 184.997 195.998 207.652 220 233.082 246.942 261.626 277.183
+293.665 311.127 329.628 349.228 369.994 391.995 415.305 440 466.164
+493.883 523.251 554.365 587.33 622.254 659.255 698.456 739.989 783.991
+830.609 880 932.328 987.767 1046.5 1108.73 1174.66 1244.51 1318.51
+1396.91 1479.98 1567.98 1661.22 1760 1864.66 1975.53 2093 2217.46 2349.32
+2489.02 2637.02 2793.83 2959.96 3135.96 3322.44 3520 3729.31 3951.07
+4186.01 4434.92 4698.64 4978.03 5274.04 5587.65 5919.91 6271.93 6644.88
+7040 7458.62 7902.13 8372.02 8869.84 9397.27 9956.06 10548.1 11175.3
+11839.8 12543.9 13289.8 14080;
+#X coords 0 12000 130 0 200 100 1;
+#X restore 309 225 graph;
+#X text 319 333 ------ 130 samples ------;
+#X text 518 318 0;
+#X text 520 218 12000;
+#X restore 498 177 pd conversion-tables;
+#X msg 565 55 \; pitch 48 \; speed -2 \; depth 27 \; offset 56 \; q
+2 \; dsp 1;
+#X connect 0 0 1 1;
+#X connect 1 0 0 0;
+#X connect 2 0 1 2;
+#X connect 4 0 8 0;
+#X connect 5 0 6 0;
+#X connect 6 0 4 0;
+#X connect 7 0 21 0;
+#X connect 8 0 7 0;
+#X connect 9 0 25 0;
+#X connect 10 0 9 1;
+#X connect 11 0 10 0;
+#X connect 12 0 11 0;
+#X connect 13 0 24 0;
+#X connect 14 0 23 1;
+#X connect 15 0 5 0;
+#X connect 16 0 14 0;
+#X connect 17 0 13 0;
+#X connect 18 0 12 0;
+#X connect 19 0 20 0;
+#X connect 20 0 21 2;
+#X connect 21 0 22 0;
+#X connect 22 0 1 0;
+#X connect 23 0 9 0;
+#X connect 24 0 23 0;
+#X connect 25 0 21 1;
+#X connect 36 0 38 0;
+#X restore 576 23 pd guts;
+#X obj 57 151 grid grid7 200 0 199 200 0 199 1 1 1 10 10 0 0;
+#X obj 250 356 - 100;
+#X obj 57 379 s pitch;
+#X obj 250 401 s speed;
+#X obj 250 378 / 10;
+#X obj 57 356 / 2;
+#X obj 374 380 s depth;
+#X obj 567 379 s offset;
+#X obj 567 357 / 1;
+#X obj 621 157 vsl 22 200 0 4 0 0 q empty Q 3 -8 1 8 -261689 -1 -1
+0 1;
+#X obj 55 439 nbx 5 18 -1e+37 1e+37 0 0 empty pitch pitch 2 27 1 12
+-233017 -1 -1 0 256;
+#X obj 249 439 nbx 5 18 -1e+37 1e+37 0 0 empty speed speed 2 27 1 12
+-233017 -1 -1 9.9 256;
+#X obj 377 439 nbx 5 18 -1e+37 1e+37 0 0 empty depth depth 2 27 1 12
+-233017 -1 -1 0 256;
+#X obj 559 439 nbx 5 18 -1e+37 1e+37 0 0 empty offset offset 2 27 1
+12 -233017 -1 -1 199 256;
+#X obj 629 439 nbx 5 18 -1e+37 1e+37 0 0 empty q Q 2 27 1 12 -233017
+-1 -1 2 256;
+#X text 58 492 (C) Copyright 2004 Hans-Christoph Steiner <hans@at.or.at>
+;
+#X text 367 509 released under the GNU GPL;
+#X connect 3 0 4 0;
+#X connect 3 1 15 0;
+#X connect 4 0 13 0;
+#X connect 7 0 12 0;
+#X connect 7 1 8 0;
+#X connect 8 0 11 0;
+#X connect 11 0 10 0;
+#X connect 12 0 9 0;
+#X connect 15 0 14 0;