*** empty log message ***
[chuck-blob.git] / v2 / examples / basic / rec-auto.ck
blob5f5f6bf94254fece9f56e6a0082d714f53ef7333
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;
7 // set the prefix, which will prepended to the filename
8 // do this if you want the file to appear automatically
9 // in another directory.  if this isn't set, the file
10 // should appear in the directory you run chuck from
11 // with only the date and time.
12 "chuck-session" => w.autoPrefix;
14 // this is the output file name
15 "special:auto" => w.wavFilename;
17 // print it out
18 <<<"writing to file: ", w.filename()>>>;
20 // any gain you want for the output
21 .5 => g.gain;
23 // infinite time loop...
24 // ctrl-c will stop it, or modify to desired duration
25 while( true ) 1::second => now;