[chuck-users] Multiple Output

Stefan Blixt stefan.blixt at gmail.com
Mon Jul 19 12:56:58 EDT 2010


OK. I can never remember what the default values for things are, and I think
it's best to started with something as simple as possible. I suggest you
stick with this program:

SinOsc a => dac.chan(0); // send sine wave to the fourth mono output

*

while(true) {
    1::second => now;}

Now,start it up like any plain old chuck programs, without trying to
make use of multiple outputs or anything:

chuck test.ck

Do you hear a low sine wave? Fine, the app works. Now try the same
program with a different setting:

chuck --out4 test.ck

Do you still hear the sine wave? Do you get an error message, and if
so, which one? Do you get silence? Do you have some kind of meter LEDs
on your soundcard (or in a mixer program on your host), and if so, can
you see any of the meters going up? What soundcard are you using by
the way?

Depending on what your answers are to the questions above, you may
move ahead with specifying --adc and some number. If you got the above
working, just increase the number of outputs to what you want. If you
can't get it working, post the output of chuck --probe here and I or
someone might get some other idea...

/Stefan


*

2010/7/19 Patrick Guido <patrick.arminio at gmail.com>

> just tried with the correct output, but no audio plays :(
>
> http://dpaste.com/219737/
>
>
> 2010/7/19 Stefan Blixt <stefan.blixt at gmail.com>
>
>> Did you try specifying the device with --adc<n>? I didn't get it to work
>> with just using --in and --out by themselves.
>>
>> Run:
>>
>> chuck --probe
>>
>> there you can see the devices (named dac1, dac2 etc). Take the number
>> after dac and put it after --adc to make something like this:
>>
>> chuck  --adc4 --in4 --out8
>>
>> /Stefan
>>
>> 2010/7/19 Patrick Guido <patrick.arminio at gmail.com>
>>
>>> thank for reply. I did this http://dpaste.com/219718/ but it doesn't
>>> work :(
>>>
>>> I ran it with ./chuck --in8 --out8
>>>
>>>
>>> 2010/7/19 Stefan Blixt <stefan.blixt at gmail.com>
>>>
>>> Yes. For my MOTU soundcard it took a bit of tinkering to get it right.
>>>> Here's an example of a command line:
>>>>
>>>> chuck  --adc4 --in4 --out8
>>>>
>>>> This means that I'm using device number 4 (adc), with 4 inputs and 8
>>>> outputs.
>>>>
>>>> After that you can write like this in you ChucK app:
>>>>
>>>> SinOsc s => dac.chan(3); // send sine wave to the fourth mono output
>>>>
>>>> Note that you'll have to take care of stereo if you want it:
>>>>
>>>> adc.chan(0) => LPF filterLeft => dac.chan(0);
>>>> adc.chan(1) => LPF filterRight => dac.chan(1);
>>>>
>>>> The tinkering bit with MOTU is that all combinations of numbers of
>>>> inputs and outputs don't work. For instance --in3 --out8 will have the whole
>>>> thing go bananas, with weird sound being outputted. If you don't use a MOTU
>>>> card there's a good chance you won't have this problem.
>>>>
>>>> /Stefan
>>>>
>>>> 2010/7/19 Patrick Guido <patrick.arminio at gmail.com>
>>>>
>>>>>  Hi, I've a sound card with 8 outputs (4 left and 4 right) and I want
>>>>> to send different audio signals to each output.
>>>>>
>>>>> Is this possible with chuck?
>>>>>
>>>>> Thanks
>>>>>
>>>>> --
>>>>> Patrick Guido Arminio
>>>>>
>>>>> _______________________________________________
>>>>> chuck-users mailing list
>>>>> chuck-users at lists.cs.princeton.edu
>>>>> https://lists.cs.princeton.edu/mailman/listinfo/chuck-users
>>>>>
>>>>>
>>>>
>>>>
>>>> --
>>>> Release me, insect, or I will destroy the Cosmos!
>>>>
>>>> _______________________________________________
>>>> chuck-users mailing list
>>>> chuck-users at lists.cs.princeton.edu
>>>> https://lists.cs.princeton.edu/mailman/listinfo/chuck-users
>>>>
>>>>
>>>
>>>
>>> --
>>> Patrick Guido Arminio
>>>
>>> _______________________________________________
>>> chuck-users mailing list
>>> chuck-users at lists.cs.princeton.edu
>>> https://lists.cs.princeton.edu/mailman/listinfo/chuck-users
>>>
>>>
>>
>>
>> --
>> Release me, insect, or I will destroy the Cosmos!
>>
>> _______________________________________________
>> chuck-users mailing list
>> chuck-users at lists.cs.princeton.edu
>> https://lists.cs.princeton.edu/mailman/listinfo/chuck-users
>>
>>
>
>
> --
> Patrick Guido Arminio
>
> _______________________________________________
> chuck-users mailing list
> chuck-users at lists.cs.princeton.edu
> https://lists.cs.princeton.edu/mailman/listinfo/chuck-users
>
>


-- 
Release me, insect, or I will destroy the Cosmos!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.cs.princeton.edu/pipermail/chuck-users/attachments/20100719/957b4b31/attachment.html>


More information about the chuck-users mailing list