[chuck-users] Bouncing .ck to audio files

Tom Lieber tom at alltom.com
Mon Dec 7 20:34:10 EST 2009


2009/12/5 Ryan Wieghard <ryan.wieghard at gmail.com>:
> I was wondering if there is a way to make the output of my .ck file an mp3
> or wav file.

If you do this a lot ...

dacrec:
#!/bin/sh
chuck /Users/tom/bin/dacrec.ck:$*

dacrec.ck:
dac => Gain g => WvOut w => blackhole;
(me.args() > 0 ? me.arg(0) : "foo.wav") => w.wavFilename;
<<<"writing to file: ", w.filename()>>>;
.9 => g.gain;
while( true )
    1::second => now;

use:
dacrec foo.wav file1.ck file2.ck

Modifications for stereo elsewhere in the thread.

-- 
Tom Lieber
http://AllTom.com/


More information about the chuck-users mailing list