From 9815096db22c73cacdbb65512d1b61d633db7fa8 Mon Sep 17 00:00:00 2001 From: Thomas Grill Date: Mon, 2 Dec 2002 19:21:08 +0000 Subject: "version 0.1.1" svn path=/trunk/; revision=267 --- externals/grill/vasp/pd/filter_example.pd | 190 ++++++++++++++++++++++++++++++ 1 file changed, 190 insertions(+) create mode 100644 externals/grill/vasp/pd/filter_example.pd (limited to 'externals/grill/vasp/pd/filter_example.pd') diff --git a/externals/grill/vasp/pd/filter_example.pd b/externals/grill/vasp/pd/filter_example.pd new file mode 100644 index 00000000..3a3f8438 --- /dev/null +++ b/externals/grill/vasp/pd/filter_example.pd @@ -0,0 +1,190 @@ +#N canvas 11 0 973 640 10; +#X obj 75 32 cnv 15 15 15 empty empty filter_example 0 10 1 14 -262144 +-1 0; +#X obj 523 555 dac~; +#N canvas 0 0 413 295 clear_buffers 0; +#X obj 49 73 vasp.= 0; +#X obj 49 49 inlet; +#X obj 49 97 vasp.u; +#X obj 49 118 bng 15 250 50 0 \$0-draw_display empty empty 0 -6 1152 +8 -262144 -1 -1; +#X connect 0 0 2 0; +#X connect 1 0 0 0; +#X connect 2 0 3 0; +#X restore 657 556 pd clear_buffers; +#X obj 304 113 filelist \$0; +#X obj 67 133 vasp.noise; +#X text 151 112 generate white noise or; +#X obj 67 153 vasp.* 0.5; +#X obj 67 173 vasp.update; +#X obj 67 193 bng 15 250 50 0 \$0-draw_display empty empty 0 -6 1152 +8 -262144 -1 -1; +#X obj 66 547 vasp.update; +#X obj 66 567 bng 15 250 50 0 \$0-draw_display empty empty 0 -6 1152 +8 -262144 -1 -1; +#X obj 66 527 vasp.c!fft; +#X obj 67 241 vasp.cfft; +#X obj 67 301 vasp.update; +#X obj 67 321 bng 15 250 50 0 \$0-draw_display empty empty 0 -6 1152 +8 -262144 -1 -1; +#N canvas 132 132 405 385 inside 0; +#X obj 66 154 soundfiler; +#X obj 84 238 s \$0-sample-length; +#X obj 66 208 s \$0-draw_display; +#X msg 214 206 resize \$1; +#X obj 214 159 loadbang; +#X obj 67 53 loadbang; +#X msg 214 180 88200; +#X obj 66 178 t b f f; +#X obj 67 101 filelisthandler \$0; +#X obj 214 228 s bufre1; +#X obj 224 252 s bufim1; +#X msg 67 133 read -resize \$1 bufre1; +#X msg 67 79 3; +#X connect 0 0 7 0; +#X connect 3 0 9 0; +#X connect 3 0 10 0; +#X connect 4 0 6 0; +#X connect 5 0 12 0; +#X connect 6 0 3 0; +#X connect 6 0 1 0; +#X connect 7 0 2 0; +#X connect 7 1 1 0; +#X connect 7 2 3 0; +#X connect 8 0 11 0; +#X connect 11 0 0 0; +#X connect 12 0 8 0; +#X restore 813 559 pd inside; +#X text 67 64 clear a region in the frequency domain to get a filter +; +#X msg 67 113 vasp bufre1; +#X msg 67 221 vasp bufre1 bufim1; +#X obj 67 261 vasp.upper; +#X obj 67 281 vasp.= 0; +#X obj 523 532 tabplay~ bufre1; +#X msg 657 533 vasp bufre1 bufim1; +#X text 157 283 clear upper (mirrored frequencies); +#X text 539 374 0 Hz; +#X text 677 379 sr/2; +#X text 816 377 44.1 kHz; +#X text 190 506 invers transform back to the time domain; +#X obj 66 434 vasp.= 0; +#X msg 66 414 set vasp \$1 bufre1 \$2 bufim1 \$2; +#X obj 290 348 bng 15 250 50 0 empty empty empty 0 -6 0 8 -262144 -1 +-1; +#X obj 66 455 vasp.update; +#X obj 66 475 bng 15 250 50 0 \$0-draw_display empty empty 0 -6 1152 +8 -262144 -1 -1; +#X msg 66 507 vasp bufre1 bufim1; +#X obj 545 110 synchrodisplay bufre1 bufim1 \$0; +#X text 818 94 real; +#X text 789 235 imaginary; +#X obj 545 395 s \$0-data; +#N canvas 109 162 271 247 tovasp 0; +#N canvas 0 0 577 409 conversion 0; +#X obj 123 53 inlet; +#X obj 123 93 unpack; +#X obj 160 182 r \$0-sample-length; +#X obj 123 242 / 1; +#X obj 154 242 / 1; +#X obj 123 268 * 44100; +#X obj 202 207 loadbang; +#X obj 202 230 samplerate~; +#X obj 123 299 outlet; +#X obj 180 269 * 44100; +#X obj 180 300 outlet; +#X obj 366 253 runden; +#X obj 366 231 - 0; +#X text 450 272 offset; +#X obj 366 177 t b f; +#X obj 366 206 0; +#X obj 366 317 outlet; +#X obj 123 116 t f f f; +#X text 370 271 length; +#X obj 447 254 runden; +#X text 121 326 lb (Hz); +#X text 183 325 rb (Hz); +#X obj 366 295 pack; +#X obj 123 73 change2; +#X floatatom 459 223 12 0 0; +#X floatatom 453 310 5 0 0; +#X connect 0 0 23 0; +#X connect 1 0 17 0; +#X connect 1 1 4 0; +#X connect 1 1 15 1; +#X connect 2 0 3 1; +#X connect 2 0 4 1; +#X connect 3 0 5 0; +#X connect 4 0 9 0; +#X connect 5 0 8 0; +#X connect 6 0 7 0; +#X connect 7 0 5 1; +#X connect 7 0 9 1; +#X connect 9 0 10 0; +#X connect 11 0 22 0; +#X connect 12 0 11 0; +#X connect 14 0 15 0; +#X connect 14 1 12 1; +#X connect 15 0 12 0; +#X connect 17 0 3 0; +#X connect 17 1 14 0; +#X connect 17 2 19 0; +#X connect 17 2 24 0; +#X connect 19 0 22 1; +#X connect 19 0 25 0; +#X connect 22 0 16 0; +#X connect 23 0 1 0; +#X restore 89 64 pd conversion; +#X obj 89 44 r \$0-data; +#X obj 162 153 outlet; +#X obj 89 98 s \$0-freqdisplayl; +#X obj 125 124 s \$0-freqdisplayr; +#X connect 0 0 3 0; +#X connect 0 1 4 0; +#X connect 0 2 2 0; +#X connect 1 0 0 0; +#X restore 66 393 pd tovasp; +#X text 193 224 transform; +#N canvas 0 0 140 20 Herznumbers 0; +#X obj 0 0 cnv 15 140 20 empty empty empty 20 12 0 14 -262144 -66577 +0; +#X floatatom 0 3 8 0 0; +#X floatatom 83 3 8 0 0; +#X obj 28 30 r \$0-freqdisplayl; +#X obj 28 54 r \$0-freqdisplayr; +#X connect 3 0 1 0; +#X connect 4 0 2 0; +#X coords 0 0 1 1 140 20 1; +#X restore 642 434 pd Herznumbers; +#X text 547 436 selection from; +#X text 701 436 to; +#X text 66 348 select a region (frequecy band) and; +#X obj 523 512 bng 15 250 50 0 empty empty empty 0 -6 0 8 -262144 -1 +-1; +#X text 545 509 play; +#X text 657 511 clear; +#X text 785 436 Hz; +#X text 65 360 draw inside the wavedisplay and press spacebar (select) +or "s" (shift).; +#X connect 4 0 6 0; +#X connect 6 0 7 0; +#X connect 7 0 8 0; +#X connect 9 0 10 0; +#X connect 11 0 9 0; +#X connect 12 0 19 0; +#X connect 13 0 14 0; +#X connect 17 0 4 0; +#X connect 18 0 12 0; +#X connect 19 0 20 0; +#X connect 20 0 13 0; +#X connect 21 0 1 0; +#X connect 21 0 1 1; +#X connect 22 0 2 0; +#X connect 28 0 31 0; +#X connect 29 0 28 0; +#X connect 30 0 28 0; +#X connect 31 0 32 0; +#X connect 33 0 11 0; +#X connect 34 0 37 0; +#X connect 38 0 29 0; +#X connect 44 0 21 0; -- cgit v1.2.1