diff options
Diffstat (limited to 'tof')
-rw-r--r-- | tof/sample_play~-help.pd | 37 | ||||
-rw-r--r-- | tof/sample_play~.pd | 280 |
2 files changed, 175 insertions, 142 deletions
diff --git a/tof/sample_play~-help.pd b/tof/sample_play~-help.pd index 673748c..894f334 100644 --- a/tof/sample_play~-help.pd +++ b/tof/sample_play~-help.pd @@ -1,14 +1,14 @@ -#N canvas 1124 102 553 386 10; +#N canvas 2245 349 553 386 10; #X obj 61 317 dac~; -#X obj 59 96 bng 15 250 50 0 empty empty empty 17 7 0 10 -262144 -1 +#X obj 57 73 bng 15 250 50 0 empty empty empty 17 7 0 10 -262144 -1 -1; -#X obj 78 123 tgl 15 0 empty empty empty 17 7 0 10 -262144 -1 -1 0 -1; +#X obj 71 94 tgl 15 0 empty empty empty 17 7 0 10 -262144 -1 -1 0 1 +; #X floatatom 133 183 5 0 0 0 - - -; #X text 13 -28 Description: Plays a sample; #X text 14 -8 Tags: Sound Table Sample; -#X text 85 94 Inlet 1 \, bang: play sample once; -#X text 95 120 Inlet 1 \, float: stop/play sample in a loop; +#X text 83 71 Inlet 1 \, bang: play sample once; +#X text 88 91 Inlet 1 \, float: stop/play sample in a loop; #X text 178 146 Inlet 1 \, sample symbol: set sample; #X msg 96 146 sample smppl; #X text 96 328 Outlet 1 \, signal: left channel audio output; @@ -23,17 +23,20 @@ #X text 227 200 set duration (in ms); #X obj 144 266 cyclone/Snapshot~ 100; #X floatatom 145 288 5 0 0 0 - - -; -#X obj 59 229 tof/sample_play~ smppl; -#X text 180 290 Outlet 3 \, signal: progress; +#X text 211 288 Outlet 3 \, signal: progress; #X text 234 245 Outlet 4 \, bang: done; -#X connect 1 0 20 0; -#X connect 2 0 20 0; -#X connect 3 0 20 1; -#X connect 9 0 20 0; +#X text 150 117 Inlet 1 \, list: play a segment of the sample; +#X obj 59 229 tof/sample_play~ smppl; +#X msg 86 119 0.25 0.5; +#X connect 1 0 23 0; +#X connect 2 0 23 0; +#X connect 3 0 23 1; +#X connect 9 0 23 0; #X connect 12 0 13 0; -#X connect 16 0 20 2; +#X connect 16 0 23 2; #X connect 18 0 19 0; -#X connect 20 0 0 0; -#X connect 20 1 0 1; -#X connect 20 2 18 0; -#X connect 20 3 14 0; +#X connect 23 0 0 0; +#X connect 23 1 0 1; +#X connect 23 2 18 0; +#X connect 23 3 14 0; +#X connect 24 0 23 0; diff --git a/tof/sample_play~.pd b/tof/sample_play~.pd index 291bc98..ad61917 100644 --- a/tof/sample_play~.pd +++ b/tof/sample_play~.pd @@ -1,18 +1,18 @@ -#N canvas 807 227 873 718 10; +#N canvas 807 180 873 718 10; #X obj 29 -23 inlet; #X obj 231 -20 inlet pitch; #X obj 121 625 outlet~ left; #X obj 283 628 outlet~ right; -#X obj 428 623 outlet~ progress; +#X obj 456 639 outlet~ progress; #X obj 578 624 outlet done; #X obj 46 247 zexy/demultiplex; -#N canvas 410 272 871 601 voice 0; -#X obj 123 203 *~ 0; +#N canvas 749 239 931 714 voice 0; +#X obj 111 254 *~ 0; #X obj 106 373 tabread4~; -#X obj 274 383 tabread4~; +#X obj 207 388 tabread4~; #X obj 101 434 *~; -#X obj 221 425 *~; -#X obj 124 258 +~ 0; +#X obj 217 441 *~; +#X obj 112 309 +~ 0; #N canvas 326 193 914 687 player 0; #X obj 91 29 inlet bang; #X obj 253 38 inlet float; @@ -57,7 +57,6 @@ #X obj 640 381 sig~ 0.0015; #X obj 717 440 sig~ 0.9985; #X obj 315 631 *~; -#X obj 544 657 outlet~ progress; #X obj 378 178 t b b b; #X obj 94 107 t b b b; #X obj 72 211 f 0; @@ -71,35 +70,34 @@ #X obj 254 414 t b b b; #X msg 345 416 0; #X msg 651 267 256 \$1; -#X connect 0 0 35 0; +#X connect 0 0 34 0; #X connect 1 0 10 0; #X connect 2 0 11 1; #X connect 4 0 5 1; #X connect 5 0 3 0; #X connect 5 0 20 0; -#X connect 5 0 33 0; #X connect 5 1 12 0; #X connect 5 2 12 0; #X connect 6 0 14 0; #X connect 7 0 14 0; #X connect 8 0 17 0; -#X connect 9 0 37 0; -#X connect 10 0 41 0; -#X connect 10 1 34 0; +#X connect 9 0 36 0; +#X connect 10 0 40 0; +#X connect 10 1 33 0; #X connect 11 0 5 1; -#X connect 12 0 44 0; +#X connect 12 0 43 0; #X connect 13 0 12 1; #X connect 14 0 5 2; #X connect 14 1 13 0; #X connect 15 0 24 0; -#X connect 15 0 36 0; +#X connect 15 0 35 0; #X connect 16 0 32 0; #X connect 17 0 16 0; #X connect 20 0 32 1; #X connect 21 0 23 0; #X connect 22 0 21 0; #X connect 22 1 23 1; -#X connect 23 0 46 0; +#X connect 23 0 45 0; #X connect 24 1 25 0; #X connect 25 0 22 0; #X connect 26 0 27 0; @@ -110,28 +108,28 @@ #X connect 30 0 20 1; #X connect 31 0 20 2; #X connect 32 0 18 0; -#X connect 34 0 4 0; -#X connect 34 1 6 0; -#X connect 34 2 39 0; -#X connect 35 0 11 0; -#X connect 35 1 7 0; -#X connect 35 2 39 0; -#X connect 36 0 37 0; -#X connect 37 0 5 0; -#X connect 38 0 9 0; -#X connect 39 0 36 0; -#X connect 39 1 40 0; -#X connect 39 2 8 0; -#X connect 40 0 38 0; -#X connect 41 0 38 0; -#X connect 41 1 42 0; -#X connect 42 0 17 0; -#X connect 43 0 16 0; -#X connect 44 0 19 0; -#X connect 44 1 43 0; -#X connect 44 2 45 0; -#X connect 45 0 37 0; -#X connect 46 0 26 0; +#X connect 33 0 4 0; +#X connect 33 1 6 0; +#X connect 33 2 38 0; +#X connect 34 0 11 0; +#X connect 34 1 7 0; +#X connect 34 2 38 0; +#X connect 35 0 36 0; +#X connect 36 0 5 0; +#X connect 37 0 9 0; +#X connect 38 0 35 0; +#X connect 38 1 39 0; +#X connect 38 2 8 0; +#X connect 39 0 37 0; +#X connect 40 0 37 0; +#X connect 40 1 41 0; +#X connect 41 0 17 0; +#X connect 42 0 16 0; +#X connect 43 0 19 0; +#X connect 43 1 42 0; +#X connect 43 2 44 0; +#X connect 44 0 36 0; +#X connect 45 0 26 0; #X restore 149 146 pd player; #X msg 361 290 set \$1; #X msg 426 295 set \$1; @@ -143,9 +141,9 @@ #X obj 497 498 outlet done; #X obj 263 -119 inlet pitch; #X obj 272 4 *; -#X obj 566 24 inlet data; -#X text 651 22 freq table-L table-R end start length; -#X obj 562 85 unpack f s s f f f; +#X obj 610 -67 inlet data; +#X text 695 -69 freq table-L table-R end start length; +#X obj 606 -6 unpack f s s f f f; #X obj 329 -27 t b f; #X obj 265 -67 f 1; #X obj 430 -117 inlet dur; @@ -167,11 +165,11 @@ #X connect 4 0 10 0; #X connect 5 0 1 0; #X connect 5 0 2 0; +#X connect 5 0 13 0; #X connect 6 0 0 0; #X connect 6 1 3 1; #X connect 6 1 4 1; -#X connect 6 2 13 0; -#X connect 6 3 14 0; +#X connect 6 2 14 0; #X connect 7 0 1 0; #X connect 8 0 2 0; #X connect 11 0 12 0; @@ -209,8 +207,7 @@ #X restore 74 383 pd voice; #X obj 430 580 zexy/multiplex~; #X obj 580 583 zexy/multiplex; -#X obj 41 31 route bang float; -#X obj 56 94 sel 0; +#X obj 119 124 sel 0; #X msg 81 221 0; #X obj 77 187 s \$0voice; #X obj 75 166 tgl 15 0 empty empty empty 17 7 0 10 -262144 -1 -1 1 @@ -224,7 +221,7 @@ #X obj 504 92 tof/argument 1; #X msg 508 123 sample \$1; #X obj 42 136 t a b b b; -#N canvas 86 54 893 581 sample_get_stereo 0; +#N canvas 428 319 893 581 sample_get_stereo 0; #N canvas 0 22 450 300 find_freq 0; #X obj 83 241 outlet; #N canvas 330 268 450 300 smpToFreq 0; @@ -259,7 +256,7 @@ #X connect 6 0 1 0; #X connect 7 0 3 0; #X restore 144 253 pd find_freq; -#X obj 386 180 -; +#X obj 377 180 -; #X obj 307 116 sample_unpack; #X obj 298 292 zexy/demultiplex; #X obj 352 254 > 1; @@ -271,16 +268,28 @@ #X msg 399 353 symbol 0-\$1; #X obj 357 10 inlet sample; #X obj 129 19 inlet get; +#X obj 510 -18 inlet bounds; +#X obj 512 20 route bang; +#X msg 488 50 0 1; +#X obj 517 172 -; +#X obj 517 195 * -1; +#X obj 385 251 * 1; +#X obj 431 273 * 0; +#X obj 512 302 + 0; +#X obj 499 86 unpack f f; +#X obj 501 108 t f f; +#X obj 698 539 outlet size; #X connect 0 0 7 0; -#X connect 1 0 0 1; -#X connect 1 0 7 5; +#X connect 1 0 18 0; +#X connect 1 0 23 0; +#X connect 1 0 19 0; #X connect 2 0 0 0; #X connect 2 2 3 0; #X connect 2 3 4 0; #X connect 2 4 1 0; #X connect 2 4 7 3; #X connect 2 5 1 1; -#X connect 2 5 7 4; +#X connect 2 5 20 1; #X connect 3 0 8 0; #X connect 3 0 10 0; #X connect 3 1 9 0; @@ -292,15 +301,32 @@ #X connect 10 0 7 2; #X connect 11 0 2 1; #X connect 12 0 2 0; -#X restore 408 213 pd sample_get_stereo; +#X connect 13 0 14 0; +#X connect 14 0 15 0; +#X connect 14 1 21 0; +#X connect 15 0 21 0; +#X connect 16 0 17 0; +#X connect 17 0 18 1; +#X connect 18 0 7 5; +#X connect 18 0 0 1; +#X connect 19 0 20 0; +#X connect 20 0 7 4; +#X connect 21 0 22 0; +#X connect 21 1 16 1; +#X connect 22 0 19 1; +#X connect 22 1 16 0; +#X restore 377 190 pd sample_get_stereo; #X obj 453 -18 inlet duration; -#N canvas 410 272 871 601 voice 0; -#X obj 123 203 *~ 0; +#X obj 41 31 route bang float list; +#X obj 124 57 t b a; +#X obj 457 614 /~ 1; +#N canvas 749 239 931 714 voice 0; +#X obj 111 254 *~ 0; #X obj 106 373 tabread4~; -#X obj 274 383 tabread4~; +#X obj 207 388 tabread4~; #X obj 101 434 *~; -#X obj 221 425 *~; -#X obj 124 258 +~ 0; +#X obj 217 441 *~; +#X obj 112 309 +~ 0; #N canvas 326 193 914 687 player 0; #X obj 91 29 inlet bang; #X obj 253 38 inlet float; @@ -345,7 +371,6 @@ #X obj 640 381 sig~ 0.0015; #X obj 717 440 sig~ 0.9985; #X obj 315 631 *~; -#X obj 544 657 outlet~ progress; #X obj 378 178 t b b b; #X obj 94 107 t b b b; #X obj 72 211 f 0; @@ -358,37 +383,35 @@ #X msg 360 560 0; #X obj 254 414 t b b b; #X msg 345 416 0; -#X msg 675 85 1.21314; #X msg 651 267 256 \$1; -#X connect 0 0 35 0; +#X connect 0 0 34 0; #X connect 1 0 10 0; #X connect 2 0 11 1; #X connect 4 0 5 1; #X connect 5 0 3 0; #X connect 5 0 20 0; -#X connect 5 0 33 0; #X connect 5 1 12 0; #X connect 5 2 12 0; #X connect 6 0 14 0; #X connect 7 0 14 0; #X connect 8 0 17 0; -#X connect 9 0 37 0; -#X connect 10 0 41 0; -#X connect 10 1 34 0; +#X connect 9 0 36 0; +#X connect 10 0 40 0; +#X connect 10 1 33 0; #X connect 11 0 5 1; -#X connect 12 0 44 0; +#X connect 12 0 43 0; #X connect 13 0 12 1; #X connect 14 0 5 2; #X connect 14 1 13 0; #X connect 15 0 24 0; -#X connect 15 0 36 0; +#X connect 15 0 35 0; #X connect 16 0 32 0; #X connect 17 0 16 0; #X connect 20 0 32 1; #X connect 21 0 23 0; #X connect 22 0 21 0; #X connect 22 1 23 1; -#X connect 23 0 47 0; +#X connect 23 0 45 0; #X connect 24 1 25 0; #X connect 25 0 22 0; #X connect 26 0 27 0; @@ -399,29 +422,28 @@ #X connect 30 0 20 1; #X connect 31 0 20 2; #X connect 32 0 18 0; -#X connect 34 0 4 0; -#X connect 34 1 6 0; -#X connect 34 2 39 0; -#X connect 35 0 11 0; -#X connect 35 1 7 0; -#X connect 35 2 39 0; -#X connect 36 0 37 0; -#X connect 37 0 5 0; -#X connect 38 0 9 0; -#X connect 39 0 36 0; -#X connect 39 1 40 0; -#X connect 39 2 8 0; -#X connect 40 0 38 0; -#X connect 41 0 38 0; -#X connect 41 1 42 0; -#X connect 42 0 17 0; -#X connect 43 0 16 0; -#X connect 44 0 19 0; -#X connect 44 1 43 0; -#X connect 44 2 45 0; -#X connect 45 0 37 0; -#X connect 46 0 25 0; -#X connect 47 0 26 0; +#X connect 33 0 4 0; +#X connect 33 1 6 0; +#X connect 33 2 38 0; +#X connect 34 0 11 0; +#X connect 34 1 7 0; +#X connect 34 2 38 0; +#X connect 35 0 36 0; +#X connect 36 0 5 0; +#X connect 37 0 9 0; +#X connect 38 0 35 0; +#X connect 38 1 39 0; +#X connect 38 2 8 0; +#X connect 39 0 37 0; +#X connect 40 0 37 0; +#X connect 40 1 41 0; +#X connect 41 0 17 0; +#X connect 42 0 16 0; +#X connect 43 0 19 0; +#X connect 43 1 42 0; +#X connect 43 2 44 0; +#X connect 44 0 36 0; +#X connect 45 0 26 0; #X restore 149 146 pd player; #X msg 361 290 set \$1; #X msg 426 295 set \$1; @@ -433,9 +455,9 @@ #X obj 497 498 outlet done; #X obj 263 -119 inlet pitch; #X obj 272 4 *; -#X obj 566 24 inlet data; -#X text 651 22 freq table-L table-R end start length; -#X obj 562 85 unpack f s s f f f; +#X obj 610 -67 inlet data; +#X text 695 -69 freq table-L table-R end start length; +#X obj 606 -6 unpack f s s f f f; #X obj 329 -27 t b f; #X obj 265 -67 f 1; #X obj 430 -117 inlet dur; @@ -457,11 +479,11 @@ #X connect 4 0 10 0; #X connect 5 0 1 0; #X connect 5 0 2 0; +#X connect 5 0 13 0; #X connect 6 0 0 0; #X connect 6 1 3 1; #X connect 6 1 4 1; -#X connect 6 2 13 0; -#X connect 6 3 14 0; +#X connect 6 2 14 0; #X connect 7 0 1 0; #X connect 8 0 2 0; #X connect 11 0 12 0; @@ -496,42 +518,50 @@ #X connect 32 0 21 0; #X connect 32 1 33 0; #X connect 33 0 23 1; -#X restore 385 401 pd voice; -#X connect 0 0 10 0; +#X restore 352 395 pd voice; +#X obj 52 89 t a b; +#X connect 0 0 25 0; #X connect 1 0 7 1; -#X connect 1 0 26 1; +#X connect 1 0 28 1; #X connect 6 0 7 0; -#X connect 6 1 26 0; +#X connect 6 1 28 0; #X connect 7 0 2 0; #X connect 7 1 3 0; #X connect 7 2 8 0; #X connect 7 3 9 0; -#X connect 8 0 4 0; +#X connect 8 0 27 0; #X connect 9 0 5 0; -#X connect 10 0 23 0; -#X connect 10 1 11 0; -#X connect 10 2 24 1; -#X connect 11 0 12 0; -#X connect 11 1 23 0; -#X connect 12 0 6 0; -#X connect 14 0 13 0; -#X connect 15 0 6 1; -#X connect 16 0 8 0; -#X connect 17 0 9 2; -#X connect 18 0 7 3; -#X connect 18 1 26 3; -#X connect 19 0 18 1; +#X connect 10 0 11 0; +#X connect 10 1 29 0; +#X connect 11 0 6 0; +#X connect 13 0 12 0; +#X connect 14 0 6 1; +#X connect 15 0 8 0; +#X connect 16 0 9 2; +#X connect 17 0 7 3; +#X connect 17 1 28 3; +#X connect 18 0 17 1; +#X connect 19 0 20 0; #X connect 20 0 21 0; -#X connect 21 0 22 0; -#X connect 22 0 24 1; -#X connect 23 0 6 0; -#X connect 23 1 24 0; -#X connect 23 2 14 0; -#X connect 23 3 12 0; -#X connect 24 0 18 0; -#X connect 25 0 7 2; -#X connect 25 0 26 2; -#X connect 26 0 2 0; -#X connect 26 1 3 0; -#X connect 26 2 8 1; -#X connect 26 3 9 1; +#X connect 21 0 23 1; +#X connect 22 0 6 0; +#X connect 22 1 23 0; +#X connect 22 2 13 0; +#X connect 22 3 11 0; +#X connect 23 0 17 0; +#X connect 23 1 27 1; +#X connect 24 0 7 2; +#X connect 24 0 28 2; +#X connect 25 0 29 0; +#X connect 25 1 10 0; +#X connect 25 2 26 0; +#X connect 25 3 23 1; +#X connect 26 0 22 0; +#X connect 26 1 23 2; +#X connect 27 0 4 0; +#X connect 28 0 2 0; +#X connect 28 1 3 0; +#X connect 28 2 8 1; +#X connect 28 3 9 1; +#X connect 29 0 22 0; +#X connect 29 1 23 2; |