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? - Rob
On Mon, Apr 27, 2009 at 12:33 PM, Robert Poor
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/
That's interesting. The docs say "WvOut writes samples to an audio file. It supports multi-channel data in interleaved format." So you can see why I was hopeful. Are you suggesting I write two separate files and then use some tool (e.g. Audacity) to re-interleave them? Thanks. - r On 27 Apr 2009, at 09:51, Tom Lieber wrote:
On Mon, Apr 27, 2009 at 12:33 PM, Robert Poor
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/ _______________________________________________ chuck-users mailing list chuck-users@lists.cs.princeton.edu https://lists.cs.princeton.edu/mailman/listinfo/chuck-users
On Mon, Apr 27, 2009 at 1:02 PM, Robert Poor
That's interesting. The docs say "WvOut writes samples to an audio file. It supports multi-channel data in interleaved format." So you can see why I was hopeful.
Are you suggesting I write two separate files and then use some tool (e.g. Audacity) to re-interleave them?
I believe that description was just copied from STK's WvOut, because the UGen is hard-coded in all the ***Filename methods to be single-channel (second argument): w->openFile( filename, 1, WvOut::WVOUT_AIF, Stk::STK_SINT16 ); And yeah, I'd save the mono files and combine them with another tool like Audacity. -- Tom Lieber http://AllTom.com/
participants (2)
-
Robert Poor
-
Tom Lieber