[chuck-users] Quick Newbie Question
Kassen
signal.automatique at gmail.com
Fri Jan 4 05:16:42 EST 2008
On 04/01/2008, Rich Caloggero <rjc at 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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.cs.princeton.edu/pipermail/chuck-users/attachments/20080104/cff91cf5/attachment.htm
More information about the chuck-users
mailing list