1 // chuck this with other shreds to record to file
2 // example> chuck foo.ck bar.ck rec2
4 // this is just like rec.ck, except "special:auto"
5 // generates a different file name every time
7 // pull samples from the dac
8 dac => gain g => WvOut w => blackhole;
10 // uncomment this next line to dump to data/ (win32: use '\')
11 // (but make sure there is a data directory before running)
12 // "data/chuck-session" => w.autoPrefix;
14 // this is the output file name
15 "special:auto" => w.wavFilename;
16 chout => "writing to file: ";
18 // any gain you want for the output
21 // infinite time loop...
22 // ctrl-c will stop it, or modify to desired duration
23 while( true ) 1::second => now;