----- Original Message -----From: KassenSent: Friday, January 04, 2008 5:16 AMSubject: Re: [chuck-users] Quick Newbie Question
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.p.right => 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;
//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.
_______________________________________________
chuck-users mailing list
chuck-users@lists.cs.princeton.edu
https://lists.cs.princeton.edu/mailman/listinfo/chuck-users