29 Jul
2006
29 Jul
'06
4:06 p.m.
I never tried writing to sndbuf before, and couldn't find a quick pointer in the doc. I tried this (in chuck, not mA), but it didn't work:
sinosc s => sndbuf buf; "t.raw" => buf.write; 1::second => now;
Oh yeah, the sndbuf write doesn't work yet. Try using WvOut: sinosc s => WvOut w => blackhole; "t.wav" => w.wavFilename; 1::second => now; note the blackhole. If you want to hear the thing: sinosc s => dac => WvOut w => blackhole; "t.wav" => w.wavFilename; 1::second => now; More documentation on recording: http://wiki.cs.princeton.edu/index.php/ChucK/Record Best, Ge!