#N canvas 536 212 864 486 10;
#X msg 188 265 print;
#X msg 120 189 bang;
#X msg 187 221 start;
#X msg 189 243 stop;
#X obj 120 220 del 1000;
#X obj 178 309 writesf~ 2;
#X msg 178 151 open /tmp/foo.wav;
#X obj 192 287 osc~ 440;
#X msg 178 197 open -bytes 4 /tmp/foo.wav;
#X text 287 150 create a new 16-bit soundfile;
#X text 344 174 create 24-bit soundfile;
#X text 343 197 create 32-bit floating-point soundfile;
#X msg 178 174 open -bytes 3 /tmp/foo.wav;
#X text 122 109 write audio signals to a soundfile;
#X text 260 292 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 text 260 224 [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 connect 0 0 5 0;
#X connect 1 0 2 0;
#X connect 1 0 4 0;
#X connect 2 0 5 0;
#X connect 3 0 5 0;
#X connect 4 0 3 0;
#X connect 6 0 5 0;
#X connect 7 0 5 0;
#X connect 8 0 5 0;
#X connect 12 0 5 0;
