1 // chuck this with other shreds to record to file
2 // example> chuck foo.ck bar.ck rec (see also rec2.ck)
4 // pull samples from the dac
5 dac => gain g => WvOut w => blackhole;
6 // this is the output file name
7 "foo.wav" => w.wavFilename;
8 chout => "writing to file: ";
10 // any gain you want for the output
13 // infinite time loop...
14 // ctrl-c will stop it, or modify to desired duration
15 while( true ) 1::second => now;