From 341d5303b4612e506897b3c7f494b0d85434ad33 Mon Sep 17 00:00:00 2001 From: Thomas O Fredericks Date: Fri, 28 May 2010 13:46:58 +0000 Subject: Added a few sample abstractions svn path=/trunk/externals/tof/; revision=13574 --- tof/sample-help.pd | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 tof/sample-help.pd (limited to 'tof/sample-help.pd') diff --git a/tof/sample-help.pd b/tof/sample-help.pd new file mode 100644 index 0000000..a95eab8 --- /dev/null +++ b/tof/sample-help.pd @@ -0,0 +1,26 @@ +#N canvas 1173 49 686 393 10; +#X msg 47 142 read \$1; +#X obj 47 116 openpanel; +#X obj 47 93 bng 15 250 50 0 empty empty empty 17 7 0 10 -262144 -1 +-1; +#X text 126 115 Inlet 1 \, read symbol: sound file to read into memory +; +#X text 44 17 Description: Loads a sound file (wav) as a sample; +#X text 51 249 See also:; +#X text 45 34 Tags: File Sound Table Sample; +#X text 222 175 Argument 1 \, symbol: Sample name; +#X text 223 192 (Argument 2 \, symbol): Sound file to read into memory +when created; +#X text 224 222 (Argument 2 \, float): Set a default length to the +table; +#X text 281 316 The following example creates a mono (1 channel) sample +with a 10 second table (at a sampling rate of 44100).; +#X text 225 241 (Argument 3 \, float): Set a default number of channels +\, either 1 or 2; +#X obj 47 177 tof/sample test mono0.wav; +#X obj 73 272 tof/sample_play~; +#X obj 72 295 tof/sample_unpack; +#X obj 283 350 tof/sample recording 441000 1; +#X connect 0 0 12 0; +#X connect 1 0 0 0; +#X connect 2 0 1 0; -- cgit v1.2.1