1
#N canvas 113 157 888 480 12;
2
#X msg 561 8 \; pd dsp 1;
5
#X obj 516 359 print didit;
6
#X obj 139 361 env~ 16384;
7
#X floatatom 139 380 0 0 0 0 - - -;
10
#X obj 233 360 env~ 16384;
11
#X floatatom 233 379 0 0 0 0 - - -;
12
#X obj 30 308 readsf~ 4 1e+06;
13
#X obj 327 359 env~ 16384;
14
#X floatatom 327 378 0 0 0 0 - - -;
15
#X obj 421 359 env~ 16384;
16
#X floatatom 421 379 0 0 0 0 - - -;
17
#X msg 26 210 open ../sound/bell.aiff 0 200 4 2 b;
20
#X text 40 7 READSF~ - read a soundfile;
21
#X msg 26 189 open ../sound/bell.aiff;
22
#X text 185 296 optional arguments: number of channels \; buffer size
23
per channnel in bytes.;
24
#X text 548 341 when the soundfile is done.;
25
#X text 547 327 last outlet gives a "bang";
26
#X text 359 186 Open takes a filename \, an onset in sample frames
27
\, and \, as an override \, you may also supply a header size to skip
28
\, a number of channels \, bytes per channel \, and endianness.;
29
#X text 36 24 The readsf~ object reads a soundfile into its signal
30
outputs. You must open the soundfile in advance (a couple of seconds
31
before you'll need it) using the "open" message. The object immediately
32
starts reading from the file \, but output will only appear after you
33
send a "1" to start playback. A "0" stops it.;
34
#X text 33 121 The wave \, aiff \, and nextstep formats are parsed
35
automatically \, although only 2- 3- and 4- byte samples are accepted
36
(4 bytes implies floating point and is not available in aiff format.)
38
#X text 647 450 Updated for version 0.37;
39
#X obj 116 452 soundfiler;
40
#X text 24 452 see also:;
41
#X obj 216 452 readsf~;
42
#X text 94 238 1 starts playback;
43
#X text 97 261 0 stops it;