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
On chuck launch, there is an option "--out<N>" that allows you to state how many outputs you want. I don't remember how you chuck sound into a specific output, though. maybe something along the lines of foo => dac.0 or something like that. On Mon, Jul 19, 2010 at 04:27:41PM +0200, Patrick Guido wrote:
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@lists.cs.princeton.edu https://lists.cs.princeton.edu/mailman/listinfo/chuck-users
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
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@lists.cs.princeton.edu https://lists.cs.princeton.edu/mailman/listinfo/chuck-users
-- Release me, insect, or I will destroy the Cosmos!
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
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
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@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@lists.cs.princeton.edu https://lists.cs.princeton.edu/mailman/listinfo/chuck-users
-- Patrick Guido Arminio
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
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
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
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@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@lists.cs.princeton.edu https://lists.cs.princeton.edu/mailman/listinfo/chuck-users
-- Patrick Guido Arminio
_______________________________________________ chuck-users mailing list chuck-users@lists.cs.princeton.edu https://lists.cs.princeton.edu/mailman/listinfo/chuck-users
-- Release me, insect, or I will destroy the Cosmos!
just tried with the correct output, but no audio plays :(
http://dpaste.com/219737/
2010/7/19 Stefan Blixt
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
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
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
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@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@lists.cs.princeton.edu https://lists.cs.princeton.edu/mailman/listinfo/chuck-users
-- Patrick Guido Arminio
_______________________________________________ chuck-users mailing list chuck-users@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@lists.cs.princeton.edu https://lists.cs.princeton.edu/mailman/listinfo/chuck-users
-- Patrick Guido Arminio
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
just tried with the correct output, but no audio plays :(
2010/7/19 Stefan Blixt
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
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
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
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@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@lists.cs.princeton.edu https://lists.cs.princeton.edu/mailman/listinfo/chuck-users
-- Patrick Guido Arminio
_______________________________________________ chuck-users mailing list chuck-users@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@lists.cs.princeton.edu https://lists.cs.princeton.edu/mailman/listinfo/chuck-users
-- Patrick Guido Arminio
_______________________________________________ chuck-users mailing list chuck-users@lists.cs.princeton.edu https://lists.cs.princeton.edu/mailman/listinfo/chuck-users
-- Release me, insect, or I will destroy the Cosmos!
I'm using Audie 8 DJ from Native Instruments (
http://www.native-instruments.com/en/products/dj/audio-8-dj/ )
It has led meters for audio output and input
with the example you posted I get sound from the first output (1 on the
soundcard) but when I ran the code with --out8 it doesn't work.
Also if I set on my macbook as default audio soundcard the integrated one
and I specify --adc7 I get no sound from the sound card, I also tried with
--dac7 and seems working but when I set --out8 i get this erro:
./chuck mout.ck --dac7 --out8
[*chuck]: (via rtaudio): unable to open specified device(s) with given
stream parameters: *
*... RtApiCore: unable to find OS-X audio stream on device (Native
Instruments: Audio 8 DJ) for requested channels (8).*
*
*
*[chuck]: cannot initialize audio device (try using --silent/-s)*
*
*
full probe out is here: http://dpaste.com/219751/
2010/7/19 Stefan Blixt
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
just tried with the correct output, but no audio plays :(
2010/7/19 Stefan Blixt
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
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
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
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@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@lists.cs.princeton.edu https://lists.cs.princeton.edu/mailman/listinfo/chuck-users
-- Patrick Guido Arminio
_______________________________________________ chuck-users mailing list chuck-users@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@lists.cs.princeton.edu https://lists.cs.princeton.edu/mailman/listinfo/chuck-users
-- Patrick Guido Arminio
_______________________________________________ chuck-users mailing list chuck-users@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@lists.cs.princeton.edu https://lists.cs.princeton.edu/mailman/listinfo/chuck-users
-- Patrick Guido Arminio
Ok... it seems that ChucK support for multiple outputs varies depending out
what audio interface you use. I'm on a Mac too by the way. The only thing i
can think of is to try out various settings, for both --in --out and
--adc/--dac (it's possible that there is some other number you need to use
for --adc, since 7 didn't seem to work). Perhaps someone here with some
insight in the ChucK implementation and audio drivers in general can offer
some insight. I know that I had to do a bit of trial-and-error until I found
the sweetspots where my outputs actually work.
Sorry I couldn't help you more... :(
/Stefan
2010/7/19 Patrick Guido
I'm using Audie 8 DJ from Native Instruments ( http://www.native-instruments.com/en/products/dj/audio-8-dj/ )
It has led meters for audio output and input
with the example you posted I get sound from the first output (1 on the soundcard) but when I ran the code with --out8 it doesn't work. Also if I set on my macbook as default audio soundcard the integrated one and I specify --adc7 I get no sound from the sound card, I also tried with --dac7 and seems working but when I set --out8 i get this erro:
./chuck mout.ck --dac7 --out8 [*chuck]: (via rtaudio): unable to open specified device(s) with given stream parameters: * *... RtApiCore: unable to find OS-X audio stream on device (Native Instruments: Audio 8 DJ) for requested channels (8).* * * *[chuck]: cannot initialize audio device (try using --silent/-s)* * * full probe out is here: http://dpaste.com/219751/
2010/7/19 Stefan Blixt
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
just tried with the correct output, but no audio plays :(
2010/7/19 Stefan Blixt
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
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
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
> 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@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@lists.cs.princeton.edu https://lists.cs.princeton.edu/mailman/listinfo/chuck-users
-- Patrick Guido Arminio
_______________________________________________ chuck-users mailing list chuck-users@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@lists.cs.princeton.edu https://lists.cs.princeton.edu/mailman/listinfo/chuck-users
-- Patrick Guido Arminio
_______________________________________________ chuck-users mailing list chuck-users@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@lists.cs.princeton.edu https://lists.cs.princeton.edu/mailman/listinfo/chuck-users
-- Patrick Guido Arminio
_______________________________________________ chuck-users mailing list chuck-users@lists.cs.princeton.edu https://lists.cs.princeton.edu/mailman/listinfo/chuck-users
-- Release me, insect, or I will destroy the Cosmos!
Have you checked in the Audio MIDI Setup utility on your Mac? One can see the parameters for the device, and change them. Hans On 19 Jul 2010, at 19:11, Patrick Guido wrote:
I'm using Audie 8 DJ from Native Instruments ( http://www.native-instruments.com/en/products/dj/audio-8-dj/ )
It has led meters for audio output and input
with the example you posted I get sound from the first output (1 on the soundcard) but when I ran the code with --out8 it doesn't work. Also if I set on my macbook as default audio soundcard the integrated one and I specify --adc7 I get no sound from the sound card, I also tried with --dac7 and seems working but when I set -- out8 i get this erro:
./chuck mout.ck --dac7 --out8 [chuck]: (via rtaudio): unable to open specified device(s) with given stream parameters: ... RtApiCore: unable to find OS-X audio stream on device (Native Instruments: Audio 8 DJ) for requested channels (8).
[chuck]: cannot initialize audio device (try using --silent/-s)
full probe out is here: http://dpaste.com/219751/
participants (4)
-
Hans Aberg
-
Patrick Guido
-
Stefan Blixt
-
Thomas Girod