#N canvas 624 61 638 654 12;
#X msg 419 158 \; pd dsp 1;
#X msg 174 179 print;
#X msg 53 78 bang;
#X msg 155 125 start;
#X msg 162 153 stop;
#X obj 53 119 del 1000;
#X text 199 127 start streaming audio;
#X text 201 153 stop streaming audio;
#X obj 147 243 writesf~ 2;
#X msg 115 46 open /tmp/foo.wav;
#X obj 177 604 soundfiler;
#X text 400 601 updated for Pd version 0.37;
#X text 102 603 see also:;
#X obj 184 213 osc~ 440;
#X text 61 291 writesf~ creates a subthread whose task is to write
audio streams to disk. You need not provide any disk access time between
"open" and "start" \, but between "stop" and the next "open" you must
give the object time to flush all the output to disk.;
#X msg 147 97 open -bytes 4 /tmp/foo.wav;
#X text 244 46 create a new 16-bit soundfile;
#X text 326 72 create 24-bit soundfile;
#X text 340 96 create 32-bit floating-point soundfile;
#X msg 135 72 open -bytes 3 /tmp/foo.wav;
#X text 60 373 The soundfile is 2- or 3-byte fixed point ("pcm") or
4-byte floating-point. The soundfile format is determined by the file
extent ("foo.wav" \, "foo.aiff" \, or "foo.snd").;
#X obj 259 604 readsf~;
#X text 93 447 -wave \, -nextstep \, -aiff;
#X text 94 468 -big \, -little (nextstep only!);
#X text 94 489 -bytes <2 \, 3 \, or 4>;
#X text 94 511 -rate <sample rate>;
#X text 59 429 The "open" message may take flag-style arguments as
follows:;
#X text 63 552 (setting sample rate will affect the soundfile header
but the file will _not_ be resampled.);
#X text 229 240 creation argument is number of channels (1 to 64).
, f 27;
#X obj 45 12 writesf~;
#X text 111 11 - write audio signals to a soundfile;
#X connect 1 0 8 0;
#X connect 2 0 3 0;
#X connect 2 0 5 0;
#X connect 3 0 8 0;
#X connect 4 0 8 0;
#X connect 5 0 4 0;
#X connect 9 0 8 0;
#X connect 13 0 8 0;
#X connect 15 0 8 0;
#X connect 19 0 8 0;
