From e97e48a7afcf415403a48874afb7270828922625 Mon Sep 17 00:00:00 2001 From: Hans-Christoph Steiner Date: Mon, 22 Nov 2010 16:11:45 +0000 Subject: made clock example svn path=/trunk/externals/manypoly/; revision=14477 --- examples/test.wav | Bin 645168 -> 0 bytes examples/tick.wav | Bin 0 -> 35856 bytes examples/ticker-voice.pd | 21 +++++++++++++++++++++ examples/ticker.pd | 44 ++++++++++++++++++++++++++++++++++++++++++++ examples/tock.wav | Bin 0 -> 20516 bytes 5 files changed, 65 insertions(+) delete mode 100644 examples/test.wav create mode 100644 examples/tick.wav create mode 100644 examples/ticker-voice.pd create mode 100644 examples/ticker.pd create mode 100644 examples/tock.wav diff --git a/examples/test.wav b/examples/test.wav deleted file mode 100644 index eac1589..0000000 Binary files a/examples/test.wav and /dev/null differ diff --git a/examples/tick.wav b/examples/tick.wav new file mode 100644 index 0000000..3b15518 Binary files /dev/null and b/examples/tick.wav differ diff --git a/examples/ticker-voice.pd b/examples/ticker-voice.pd new file mode 100644 index 0000000..8493f67 --- /dev/null +++ b/examples/ticker-voice.pd @@ -0,0 +1,21 @@ +#N canvas 474 451 518 379 10; +#X obj 22 28 inlet; +#X text 62 27 clock input; +#X obj 32 357 outlet~; +#X obj 136 357 outlet~; +#X obj 41 135 % 2; +#X obj 41 156 select 0 1; +#X obj 253 28 inlet; +#X obj 265 354 outlet; +#X text 310 354 bang when done to free voice; +#X text 291 30 optional inlet; +#X obj 32 249 tabplay~ \$3-tick; +#X obj 137 250 tabplay~ \$3-tock; +#X connect 0 0 4 0; +#X connect 4 0 5 0; +#X connect 5 0 10 0; +#X connect 5 1 11 0; +#X connect 10 0 2 0; +#X connect 10 1 7 0; +#X connect 11 0 3 0; +#X connect 11 1 7 0; diff --git a/examples/ticker.pd b/examples/ticker.pd new file mode 100644 index 0000000..fcbab38 --- /dev/null +++ b/examples/ticker.pd @@ -0,0 +1,44 @@ +#N canvas 520 164 518 379 10; +#X declare -path ..; +#X obj 344 54 table \$0-tick; +#X obj 344 74 table \$0-tock; +#X obj 338 241 soundfiler; +#X msg 339 172 read -resize tick.wav \$1; +#X obj 339 150 symbol \$0-tick; +#X obj 333 122 loadbang; +#X msg 306 215 read -resize tock.wav \$1; +#X obj 306 193 symbol \$0-tock; +#X obj 312 125 bng 15 250 50 0 empty empty empty 17 7 0 10 -262144 +-1 -1; +#X obj 17 97 metro; +#X obj 17 37 tgl 15 0 empty empty empty 17 7 0 10 -204786 -1 -1 1 1 +; +#X obj 47 60 hsl 128 15 10 1000 1 1 empty empty empty -2 -8 0 10 -262130 +-1 -1 9800 1; +#X floatatom 56 84 5 0 0 0 - - -; +#X obj 17 126 float; +#X obj 57 126 + 1; +#X obj 337 17 declare -path ..; +#X obj 85 312 output~; +#X text 35 34 <-- turn on clock; +#X text 185 57 <-- run it faster!; +#X obj 53 221 voicepoly 100 ticker-voice \$0; +#X text 201 302 here is the playback patch:; +#X obj 211 333 ticker-voice 0 0 \$0; +#X connect 3 0 2 0; +#X connect 4 0 3 0; +#X connect 5 0 4 0; +#X connect 5 0 7 0; +#X connect 6 0 2 0; +#X connect 7 0 6 0; +#X connect 8 0 4 0; +#X connect 8 0 7 0; +#X connect 9 0 13 0; +#X connect 10 0 9 0; +#X connect 11 0 9 1; +#X connect 11 0 12 0; +#X connect 13 0 14 0; +#X connect 13 0 19 0; +#X connect 14 0 13 1; +#X connect 19 0 16 0; +#X connect 19 1 16 1; diff --git a/examples/tock.wav b/examples/tock.wav new file mode 100644 index 0000000..5f99b16 Binary files /dev/null and b/examples/tock.wav differ -- cgit v1.2.1