aboutsummaryrefslogtreecommitdiff
path: root/externals/grill/vasp/pd-ex
diff options
context:
space:
mode:
authorThomas Grill <xovo@users.sourceforge.net>2002-12-02 19:21:08 +0000
committerThomas Grill <xovo@users.sourceforge.net>2002-12-02 19:21:08 +0000
commit9815096db22c73cacdbb65512d1b61d633db7fa8 (patch)
tree4a6582ead85b8efd031f68e717fbc8a5b3a3df3f /externals/grill/vasp/pd-ex
parent0a109da279e9df66fb5ea7d6bdaeffed16592f02 (diff)
"version 0.1.1"
svn path=/trunk/; revision=267
Diffstat (limited to 'externals/grill/vasp/pd-ex')
-rwxr-xr-xexternals/grill/vasp/pd-ex/granular1.pd329
1 files changed, 329 insertions, 0 deletions
diff --git a/externals/grill/vasp/pd-ex/granular1.pd b/externals/grill/vasp/pd-ex/granular1.pd
new file mode 100755
index 00000000..c2ef29d4
--- /dev/null
+++ b/externals/grill/vasp/pd-ex/granular1.pd
@@ -0,0 +1,329 @@
+#N canvas 62 0 622 487 10;
+#N canvas 0 0 450 300 graph34 0;
+#X array insert 64 float 1;
+#A 0 1 0.55557 -0.382683 -0.980785 -0.707107 0.19509 0.92388 0.83147
+1.17033e-007 -0.83147 -0.92388 -0.19509 0.707107 0.980785 0.382684
+-0.55557 -1 -0.55557 0.382683 0.980785 0.707107 -0.19509 -0.923879
+-0.83147 -3.511e-007 0.831469 0.92388 0.195091 -0.707106 -0.980785
+-0.382684 0.55557 1 0.555571 -0.382683 -0.980785 -0.707107 0.19509
+0.923879 0.83147 5.85167e-007 -0.831469 -0.92388 -0.195091 0.707106
+0.980785 0.382684 -0.55557 -1 -0.555571 0.382683 0.980785 0.707107
+-0.19509 -0.923879 -0.83147 -8.19234e-007 0.831469 0.92388 0.195091
+-0.707106 -0.980785 -0.382684 0.555569;
+#X coords 0 1 63 -1 200 140 1;
+#X restore 78 68 graph;
+#N canvas 374 102 510 487 player 0;
+#X obj 112 139 tabplay~ schnipparray;
+#X obj 148 240 tabplay~ schnipparray;
+#X obj 204 337 tabplay~ schnipparray;
+#X obj 112 163 throw~ toex;
+#X obj 148 259 throw~ toex;
+#X obj 204 361 throw~ toex;
+#X msg 112 119 0 64;
+#X msg 148 220 64 64;
+#X msg 205 317 128 64;
+#X obj 86 64 tgl 15 0 empty empty empty 0 -6 0 8 -262144 -1 -1 0 1
+;
+#X obj 86 91 spigot;
+#X obj 233 161 t b b;
+#X obj 427 276 s \$0-part;
+#X obj 269 262 t b b;
+#X obj 325 361 t b b;
+#X msg 258 182 3;
+#X msg 294 282 1;
+#X msg 350 388 2;
+#X obj 86 40 inlet;
+#X connect 0 0 3 0;
+#X connect 0 1 11 0;
+#X connect 1 0 4 0;
+#X connect 1 1 13 0;
+#X connect 2 0 5 0;
+#X connect 2 1 14 0;
+#X connect 6 0 0 0;
+#X connect 7 0 1 0;
+#X connect 8 0 2 0;
+#X connect 9 0 10 1;
+#X connect 9 0 10 0;
+#X connect 10 0 6 0;
+#X connect 11 0 7 0;
+#X connect 11 1 15 0;
+#X connect 13 0 8 0;
+#X connect 13 1 16 0;
+#X connect 14 0 10 0;
+#X connect 14 1 17 0;
+#X connect 15 0 12 0;
+#X connect 16 0 12 0;
+#X connect 17 0 12 0;
+#X connect 18 0 9 0;
+#X restore 204 294 pd player;
+#X obj 204 348 catch~ toex;
+#X obj 204 403 dac~;
+#X floatatom 76 311 0 0 0 0 - - -;
+#X obj 76 271 nbx 5 14 -1e+037 1e+037 0 1 empty empty empty 0 -6 0
+10 -24198 -1 -1 2 256;
+#X text 76 253 density;
+#X obj 76 333 s \$0-density;
+#X obj 204 275 tgl 15 0 empty empty start/stop 0 -6 0 8 -24198 -1 -1
+0 1;
+#X text 319 80 this array is insertet at triggering points;
+#X obj 76 290 * 0.001;
+#X floatatom 241 429 0 0 0 0 - - -;
+#X obj 241 407 env~ 32768;
+#N canvas 0 0 350 219 inside 0;
+#X obj 41 63 table positions;
+#X obj 40 37 table schnipparray 192;
+#N canvas 0 0 460 310 create_schippler 0;
+#X msg 155 114 vasp insert;
+#X obj 155 162 vasp.u;
+#X obj 155 138 vasp.osc 6.4;
+#X msg 66 114 vasp insert;
+#X obj 66 162 vasp.u;
+#X obj 66 138 vasp.osc 64;
+#X msg 251 115 vasp insert;
+#X obj 251 163 vasp.u;
+#X obj 251 139 vasp.osc 2;
+#X text 56 71 create various samples to insert;
+#X msg 63 216 vasp insert;
+#X obj 63 261 vasp.u;
+#X obj 63 239 vasp.window;
+#X connect 0 0 2 0;
+#X connect 2 0 1 0;
+#X connect 3 0 5 0;
+#X connect 5 0 4 0;
+#X connect 6 0 8 0;
+#X connect 8 0 7 0;
+#X connect 10 0 12 0;
+#X connect 12 0 11 0;
+#X restore 43 113 pd create_schippler;
+#N canvas 0 0 642 330 inserter 0;
+#X obj 48 84 sel 1 2 3;
+#N canvas 2 7 397 657 first_part 0;
+#X obj 48 483 tabread positions;
+#X obj 48 172 vasp.noise;
+#X obj 48 149 vasp.! 64;
+#X obj 48 238 vasp.??;
+#X obj 48 192 vasp.abs;
+#X obj 48 215 vasp.< 0.1;
+#X obj 48 262 route list;
+#X text 58 501 insert a soundfile at certain offset-position;
+#X msg 48 525 vasp 64 schnipparray \$1;
+#X text 111 552 fuer drei teilbereiche;
+#X obj 48 551 vasp.o+ 0;
+#X obj 48 586 vasp.+ vasp insert;
+#X obj 48 120 t b b;
+#X obj 126 146 vasp.= 0;
+#X obj 48 70 inlet;
+#X obj 103 192 r \$0-density;
+#X msg 162 326 \; positions resize \$1;
+#X obj 80 362 tabset positions;
+#X obj 48 387 0;
+#X obj 48 411 until;
+#X obj 90 436 + 1;
+#X obj 48 436 0;
+#X msg 72 386 0;
+#X obj 97 310 length;
+#X obj 48 460 t f f;
+#X obj 97 331 t f f;
+#X obj 48 288 t b b l l;
+#X msg 126 124 vasp 64 schnipparray;
+#X connect 0 0 8 0;
+#X connect 1 0 4 0;
+#X connect 2 0 1 0;
+#X connect 3 0 6 0;
+#X connect 4 0 5 0;
+#X connect 5 0 3 0;
+#X connect 6 0 26 0;
+#X connect 8 0 10 0;
+#X connect 10 0 11 0;
+#X connect 12 0 2 0;
+#X connect 12 1 27 0;
+#X connect 14 0 12 0;
+#X connect 15 0 5 1;
+#X connect 18 0 19 0;
+#X connect 19 0 21 0;
+#X connect 20 0 21 1;
+#X connect 21 0 24 0;
+#X connect 22 0 21 1;
+#X connect 23 0 25 0;
+#X connect 24 0 0 0;
+#X connect 24 1 20 0;
+#X connect 25 0 18 1;
+#X connect 25 1 16 0;
+#X connect 26 0 18 0;
+#X connect 26 1 22 0;
+#X connect 26 2 17 0;
+#X connect 26 3 23 0;
+#X connect 27 0 13 0;
+#X restore 48 183 pd first_part;
+#N canvas 162 22 375 655 second_part 0;
+#X obj 48 483 tabread positions;
+#X obj 48 172 vasp.noise;
+#X obj 48 149 vasp.! 64;
+#X obj 48 238 vasp.??;
+#X obj 48 192 vasp.abs;
+#X obj 48 215 vasp.< 0.1;
+#X obj 48 262 route list;
+#X text 58 501 insert a soundfile at certain offset-position;
+#X msg 48 525 vasp 64 schnipparray \$1;
+#X text 124 552 fuer drei teilbereiche;
+#X obj 48 586 vasp.+ vasp insert;
+#X obj 48 120 t b b;
+#X obj 126 146 vasp.= 0;
+#X obj 48 70 inlet;
+#X obj 48 551 vasp.o+ 64;
+#X obj 103 192 r \$0-density;
+#X msg 162 323 \; positions resize \$1;
+#X obj 80 359 tabset positions;
+#X obj 48 384 0;
+#X obj 48 408 until;
+#X obj 90 433 + 1;
+#X obj 48 433 0;
+#X msg 72 383 0;
+#X obj 97 307 length;
+#X obj 48 457 t f f;
+#X obj 97 328 t f f;
+#X obj 48 285 t b b l l;
+#X msg 126 124 vasp 64 schnipparray 64;
+#X connect 0 0 8 0;
+#X connect 1 0 4 0;
+#X connect 2 0 1 0;
+#X connect 3 0 6 0;
+#X connect 4 0 5 0;
+#X connect 5 0 3 0;
+#X connect 6 0 26 0;
+#X connect 8 0 14 0;
+#X connect 11 0 2 0;
+#X connect 11 1 27 0;
+#X connect 13 0 11 0;
+#X connect 14 0 10 0;
+#X connect 15 0 5 1;
+#X connect 18 0 19 0;
+#X connect 19 0 21 0;
+#X connect 20 0 21 1;
+#X connect 21 0 24 0;
+#X connect 22 0 21 1;
+#X connect 23 0 25 0;
+#X connect 24 0 0 0;
+#X connect 24 1 20 0;
+#X connect 25 0 18 1;
+#X connect 25 1 16 0;
+#X connect 26 0 18 0;
+#X connect 26 1 22 0;
+#X connect 26 2 17 0;
+#X connect 26 3 23 0;
+#X connect 27 0 12 0;
+#X restore 191 181 pd second_part;
+#N canvas 323 1 606 693 third_part 0;
+#X msg 155 289 \; positions resize \$1;
+#X obj 73 325 tabset positions;
+#X obj 41 350 0;
+#X obj 41 374 until;
+#X obj 83 399 + 1;
+#X obj 41 399 0;
+#X obj 41 445 tabread positions;
+#X msg 65 349 0;
+#X obj 41 134 vasp.noise;
+#X obj 41 111 vasp.! 64;
+#X obj 41 200 vasp.??;
+#X obj 41 154 vasp.abs;
+#X obj 41 177 vasp.< 0.1;
+#X obj 90 273 length;
+#X obj 41 423 t f f;
+#X obj 41 224 route list;
+#X obj 41 642 vasp.+ vasp insert;
+#X obj 41 82 t b b;
+#X obj 119 108 vasp.= 0;
+#X obj 41 52 inlet;
+#X obj 96 154 r \$0-density;
+#X text 177 107 (clears second part);
+#X text 101 502 sample-length;
+#X obj 72 526 - 0;
+#X text 103 526 minus offset;
+#X obj 41 584 vasp.f;
+#X text 91 586 that's the space you have;
+#X text 292 215 this part has to write "around the corner";
+#X msg 41 548 vasp 64 schnipparray \$1;
+#X obj 300 551 + 0;
+#X text 339 526 frames;
+#X text 339 550 plus offset;
+#X obj 300 597 - 192;
+#X text 344 594 minus sample-length;
+#X obj 300 643 vasp.+ vasp insert;
+#X msg 300 619 vasp \$1 schnipparray;
+#X text 177 642 insert at end;
+#X text 300 670 insert at beginning;
+#X obj 300 574 + 128;
+#X text 343 572 for third part;
+#X obj 300 528 64;
+#X obj 90 294 t f f;
+#X obj 41 251 t b b l l;
+#X obj 41 467 t f b f b f;
+#X obj 72 500 64;
+#X msg 119 86 vasp 64 schnipparray 128;
+#X connect 2 0 3 0;
+#X connect 3 0 5 0;
+#X connect 4 0 5 1;
+#X connect 5 0 14 0;
+#X connect 6 0 43 0;
+#X connect 7 0 5 1;
+#X connect 8 0 11 0;
+#X connect 9 0 8 0;
+#X connect 10 0 15 0;
+#X connect 11 0 12 0;
+#X connect 12 0 10 0;
+#X connect 13 0 41 0;
+#X connect 14 0 6 0;
+#X connect 14 1 4 0;
+#X connect 15 0 42 0;
+#X connect 17 0 9 0;
+#X connect 17 1 45 0;
+#X connect 19 0 17 0;
+#X connect 20 0 12 1;
+#X connect 23 0 25 1;
+#X connect 25 0 16 0;
+#X connect 28 0 25 0;
+#X connect 29 0 38 0;
+#X connect 32 0 35 0;
+#X connect 35 0 34 0;
+#X connect 38 0 32 0;
+#X connect 40 0 29 0;
+#X connect 41 0 2 1;
+#X connect 41 1 0 0;
+#X connect 42 0 2 0;
+#X connect 42 1 7 0;
+#X connect 42 2 1 0;
+#X connect 42 3 13 0;
+#X connect 43 0 28 0;
+#X connect 43 1 44 0;
+#X connect 43 2 23 1;
+#X connect 43 3 40 0;
+#X connect 43 4 29 1;
+#X connect 44 0 23 0;
+#X connect 45 0 18 0;
+#X restore 336 183 pd third_part;
+#X obj 48 55 r \$0-part;
+#X text 50 33 after a sample-part is played \, next step is calculated
+;
+#X text 296 84 1) generate noise \; 2) get triggering-values \; 3)
+...save in positions-array \; 4) read samplevalues of positions \;
+5) at every trigger insert the "insert"array;
+#X connect 0 0 1 0;
+#X connect 0 1 2 0;
+#X connect 0 2 3 0;
+#X connect 4 0 0 0;
+#X restore 42 88 pd inserter;
+#X restore 516 119 pd inside;
+#X obj 322 271 vsl 15 100 0 1 0 0 empty empty volume 0 -8 0 8 -24198
+-1 -1 0 1;
+#X obj 204 374 *~ 0.2;
+#X text 387 445 needs the zexy library and vasp;
+#X connect 2 0 15 0;
+#X connect 4 0 7 0;
+#X connect 5 0 10 0;
+#X connect 8 0 1 0;
+#X connect 10 0 4 0;
+#X connect 12 0 11 0;
+#X connect 14 0 15 1;
+#X connect 15 0 3 0;
+#X connect 15 0 3 1;
+#X connect 15 0 12 0;