#N canvas 388 177 450 290 10;
#X msg 365 19 \; pd dsp 1;
#X msg 141 133 print;
#X msg 56 50 bang;
#X msg 140 85 start;
#X msg 142 111 stop;
#X obj 189 133 osc~ 441;
#X obj 56 81 del 1000;
#X text 41 9 writesf~ -- write audio signals to a soundfile;
#X text 269 276 updated for Pd version 0.32.;
#X text 205 158 creation argument is number of channels;
#X text 206 169 (1 to 64).;
#X text 250 58 create a new soundfile;
#X text 181 85 start streaming audio;
#X text 176 111 stop streaming audio;
#X text 27 186 writesf~ creates a subthread whose task is to write audio streams to disk. You need not provide any 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 text 27 240 writesf~ works best with pd in "realtime" mode (pd -rt). Available for linux only at the moment...;
#X obj 132 158 writesf~ 2;
#X msg 136 60 open /tmp/foo.wav;
#X connect 1 0 16 0;
#X connect 2 0 3 0;
#X connect 2 0 6 0;
#X connect 3 0 16 0;
#X connect 4 0 16 0;
#X connect 5 0 16 0;
#X connect 6 0 4 0;
#X connect 17 0 16 0;
