aboutsummaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
Diffstat (limited to 'examples')
-rw-r--r--examples/run-voicetest.pd22
-rw-r--r--examples/test.wavbin0 -> 645168 bytes
-rw-r--r--examples/voicetest.pd39
3 files changed, 61 insertions, 0 deletions
diff --git a/examples/run-voicetest.pd b/examples/run-voicetest.pd
new file mode 100644
index 0000000..199988e
--- /dev/null
+++ b/examples/run-voicetest.pd
@@ -0,0 +1,22 @@
+#N canvas 466 360 450 300 10;
+#X declare -path ..;
+#X obj 97 147 voicepoly 5 voicetest;
+#X obj 109 228 dac~;
+#X obj 225 108 hsl 128 15 0 10 0 0 empty empty empty -2 -8 0 10 -262144
+-1 -1 0 1;
+#X floatatom 237 130 5 0 0 0 - - -;
+#X msg 96 98 bang;
+#X obj 337 16 pddp/dsp;
+#X obj 220 170 bng 15 250 50 0 empty empty empty 17 7 0 10 -262144
+-1 -1;
+#X text 48 261 three outlets are needed: 2 audio and one message outlet
+that is banged when the voice is finished.;
+#X text 23 57 two inlets are needed: the first for voice-managed messages
+\, and the second for messages that are send to all instances;
+#X obj 318 45 declare -path ..;
+#X connect 0 0 1 0;
+#X connect 0 1 1 1;
+#X connect 0 2 6 0;
+#X connect 2 0 0 1;
+#X connect 2 0 3 0;
+#X connect 4 0 0 0;
diff --git a/examples/test.wav b/examples/test.wav
new file mode 100644
index 0000000..eac1589
--- /dev/null
+++ b/examples/test.wav
Binary files differ
diff --git a/examples/voicetest.pd b/examples/voicetest.pd
new file mode 100644
index 0000000..d189cef
--- /dev/null
+++ b/examples/voicetest.pd
@@ -0,0 +1,39 @@
+#N canvas 210 166 495 383 10;
+#X obj 115 24 inlet;
+#X obj 122 353 outlet~;
+#X obj 305 24 inlet;
+#X obj 202 353 outlet~;
+#X obj 250 169 osc~;
+#X obj 122 227 *~;
+#X obj 202 227 *~;
+#X obj 122 170 tabplay~ \$0-sample;
+#X obj 323 88 table \$0-sample;
+#X obj 171 103 print \$1;
+#X obj 51 141 loadbang;
+#X msg 61 162 1;
+#X obj 137 205 -~;
+#X obj -12 322 soundfiler;
+#X obj -12 272 symbol \$0-sample;
+#X msg -12 297 read -resize test.wav \$1;
+#X msg -36 217 bang;
+#X msg 143 145 bang;
+#X obj 310 352 outlet;
+#X text 357 352 bang when done;
+#X connect 0 0 7 0;
+#X connect 2 0 9 0;
+#X connect 2 0 4 0;
+#X connect 4 0 12 1;
+#X connect 4 0 6 1;
+#X connect 5 0 1 0;
+#X connect 6 0 3 0;
+#X connect 7 0 5 0;
+#X connect 7 0 6 0;
+#X connect 7 1 18 0;
+#X connect 10 0 11 0;
+#X connect 10 0 14 0;
+#X connect 11 0 12 0;
+#X connect 12 0 5 1;
+#X connect 14 0 15 0;
+#X connect 15 0 13 0;
+#X connect 16 0 14 0;
+#X connect 17 0 7 0;