[chuck-users] writing stereo files

Tom Lieber lieber at princeton.edu
Mon Apr 27 12:51:00 EDT 2009


On Mon, Apr 27, 2009 at 12:33 PM, Robert Poor <rdpoor at gmail.com> wrote:
> How do I convince WvOut to write a stereo file?
>
> I tried (essentially):
>
>        Pan2 pan => dac => WvOut writer => blackhole;
>        writer.wavFilename("foo.wav");
>
> and it wrote a mono file.
>
> I then tried:
>
>        Pan2 pan => WvOut writer => dac;
>        writer.wavFilename("foo.wav");
>
> and it still wrote a mono file.
>
> I didn't see anything in the .pdf documents that suggested WvOut has a
> parameter to control the number of channels.
>
> Suggestions?

I don't think you can. But you can save each channel separately. I
usually dac.chan(0) => wav1; dac.chan(1) => wav2;

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


More information about the chuck-users mailing list