On 04/01/2008, Rich Caloggero <rjc@mit.edu> wrote:
Is there a way to convert a stereo signal (say from a sndbuf) to two mono
signals which I can play with individually? I will then send the results of
each to dac.left and dac.right.
Hi, Rich!
If you would simply like to send a stereo soundsource to the dac in stereo ChucK will do that for you for free;
SinOsc s => Pan2 p => dac;
Equivalent would be;
SinOsc => Pan2 p;
p.left
=> dac.left;
p.right => dac.right;
//and even;
s => dac.chan(4);
Everything that ouputs stereo (Pan2, ADC, Mix2....) should have those .left and .right outputs. From the top of my head I can't remember is SindBuf does, these aren't mentioned in the manual where I looked just now. You could try.
Yours,
Kas.