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.<div>
<br></div><div>Sorry I couldn't help you more... :(</div><div><br></div><div>/Stefan<br><br><div class="gmail_quote">2010/7/19 Patrick Guido <span dir="ltr"><<a href="mailto:patrick.arminio@gmail.com">patrick.arminio@gmail.com</a>></span><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">I'm using Audie 8 DJ from Native Instruments ( <a href="http://www.native-instruments.com/en/products/dj/audio-8-dj/" target="_blank">http://www.native-instruments.com/en/products/dj/audio-8-dj/</a> )<div>
<br></div><div>It has led meters for audio output and input</div>

<div><br></div><div>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.</div><div>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:</div>


<div><br></div><div><div>./chuck <a href="http://mout.ck" target="_blank">mout.ck</a> --dac7 --out8</div><div>[<b>chuck]: (via rtaudio): unable to open specified device(s) with given stream parameters: </b></div><div><b>... RtApiCore: unable to find OS-X audio stream on device (Native Instruments: Audio 8 DJ) for requested channels (8).</b></div>


<div><b><br></b></div><div><b>[chuck]: cannot initialize audio device (try using --silent/-s)</b></div></div><div><b><br></b></div><div>full probe out is here: <a href="http://dpaste.com/219751/" target="_blank">http://dpaste.com/219751/</a></div>
<div><div></div><div class="h5">

<div><br></div><div><br><div class="gmail_quote">2010/7/19 Stefan Blixt <span dir="ltr"><<a href="mailto:stefan.blixt@gmail.com" target="_blank">stefan.blixt@gmail.com</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">


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:<div><br></div><div><span style="font-family:Georgia;font-size:medium"><pre style="font-family:'Bitstream Vera Sans Mono', 'Courier New', Monaco, monospace;font-size:14px">
<span style="color:rgb(102, 102, 102)">S</span><span>inOsc</span> <span>a</span> <span style="color:rgb(102, 102, 102)">=></span> <span>dac</span><span>.</span><span>chan</span><span>(</span><span style="color:rgb(102, 102, 102)">0</span><span>);</span> <span style="color:rgb(0, 136, 0);font-style:italic">// send sine wave to the fourth mono output</span>
</pre><div><font color="#008800"><i><span style="color:rgb(0, 0, 0);font-style:normal"><pre style="font-family:'Bitstream Vera Sans Mono', 'Courier New', Monaco, monospace;font-size:14px"><span style="color:rgb(170, 34, 255);font-weight:bold;background-color:rgb(255, 255, 153);background-repeat:initial initial">while</span><span>(</span><span style="color:rgb(170, 34, 255);font-weight:bold">true</span><span>)</span> <span>{</span>
    <span style="color:rgb(102, 102, 102)">1</span><span style="color:rgb(102, 102, 102)">::</span><span>second</span> <span style="color:rgb(102, 102, 102)">=></span> <span>now</span><span style="color:rgb(102, 102, 102)">;</span>
<span>}</span></pre><pre style="font-family:'Bitstream Vera Sans Mono', 'Courier New', Monaco, monospace;font-size:14px"><span><span style="font-family:arial;white-space:normal;font-size:small">Now,start it up like any plain old chuck programs, without trying to make use of multiple outputs or anything:</span></span></pre>



<pre style="font-family:'Bitstream Vera Sans Mono', 'Courier New', Monaco, monospace;font-size:14px"><font face="arial"><span style="white-space:normal;font-size:small">chuck <a href="http://test.ck" target="_blank">test.ck</a></span></font></pre>



<pre style="font-family:'Bitstream Vera Sans Mono', 'Courier New', Monaco, monospace;font-size:14px"><font face="arial"><span style="white-space:normal;font-size:small">Do you hear a low sine wave? Fine, the app works. Now try the same program with a different setting:</span></font></pre>



<pre style="font-family:'Bitstream Vera Sans Mono', 'Courier New', Monaco, monospace;font-size:14px"><font face="arial"><span style="white-space:normal;font-size:small">chuck --out4 <a href="http://test.ck" target="_blank">test.ck</a></span></font></pre>



<pre style="font-family:'Bitstream Vera Sans Mono', 'Courier New', Monaco, monospace;font-size:14px"><font face="arial"><span style="white-space:normal;font-size:small">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?</span></font></pre>



<pre style="font-family:'Bitstream Vera Sans Mono', 'Courier New', Monaco, monospace;font-size:14px"><font face="arial"><span style="white-space:normal;font-size:small">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...</span></font></pre>



<pre style="font-family:'Bitstream Vera Sans Mono', 'Courier New', Monaco, monospace;font-size:14px"><font face="arial"><span style="white-space:normal;font-size:small">/Stefan</span></font></pre><font color="#888888">
<pre style="font-family:'Bitstream Vera Sans Mono', 'Courier New', Monaco, monospace;font-size:14px"><br></pre></font></span></i></font></div></span><div><div></div><div><br><div class="gmail_quote">

2010/7/19 Patrick Guido <span dir="ltr"><<a href="mailto:patrick.arminio@gmail.com" target="_blank">patrick.arminio@gmail.com</a>></span><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">just tried with the correct output, but no audio plays :(<div><br></div><div><a href="http://dpaste.com/219737/" target="_blank">http://dpaste.com/219737/</a><div>



<div></div><div><br><br><div class="gmail_quote">2010/7/19 Stefan Blixt <span dir="ltr"><<a href="mailto:stefan.blixt@gmail.com" target="_blank">stefan.blixt@gmail.com</a>></span><br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Did you try specifying the device with --adc<n>? I didn't get it to work with just using --in and --out by themselves.<div>





<br></div><div>Run:</div><div><br></div><div>chuck --probe</div><div><br></div><div>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:</div>






<div><br></div><div>chuck  --adc4 --in4 --out8</div><div><div></div><div><div><br></div><div>/Stefan<br><br><div class="gmail_quote">2010/7/19 Patrick Guido <span dir="ltr"><<a href="mailto:patrick.arminio@gmail.com" target="_blank">patrick.arminio@gmail.com</a>></span><br>






<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">thank for reply. I did this <a href="http://dpaste.com/219718/" target="_blank">http://dpaste.com/219718/</a> but it doesn't work :(<div>






<br></div><div>I ran it with ./chuck --in8 --out8</div><div><br><br><div class="gmail_quote">

2010/7/19 Stefan Blixt <span dir="ltr"><<a href="mailto:stefan.blixt@gmail.com" target="_blank">stefan.blixt@gmail.com</a>></span><div><div></div><div><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">








Yes. For my MOTU soundcard it took a bit of tinkering to get it right. Here's an example of a command line:<div><br></div><div>chuck  --adc4 --in4 --out8</div><div><br></div><div>This means that I'm using device number 4 (adc), with 4 inputs and 8 outputs.</div>









<div><br></div><div>After that you can write like this in you ChucK app:</div><div><br></div><div>SinOsc s => dac.chan(3); // send sine wave to the fourth mono output</div><div><br></div><div>Note that you'll have to take care of stereo if you want it:</div>









<div><br></div><div>adc.chan(0) => LPF filterLeft => dac.chan(0);</div><div>adc.chan(1) => LPF filterRight => dac.chan(1);<br><br></div><div>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.</div>









<div><br></div><div>/Stefan</div><div><br><div class="gmail_quote">2010/7/19 Patrick Guido <span dir="ltr"><<a href="mailto:patrick.arminio@gmail.com" target="_blank">patrick.arminio@gmail.com</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">








<div><div></div><div>
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.<div><br></div><div>Is this possible with chuck?</div><div><br></div><div>Thanks<br clear="all"><br>








-- <br>


Patrick Guido Arminio<br>
</div>
<br></div></div><div>_______________________________________________<br>
chuck-users mailing list<br>
<a href="mailto:chuck-users@lists.cs.princeton.edu" target="_blank">chuck-users@lists.cs.princeton.edu</a><br>
<a href="https://lists.cs.princeton.edu/mailman/listinfo/chuck-users" target="_blank">https://lists.cs.princeton.edu/mailman/listinfo/chuck-users</a><br>
<br></div></blockquote></div><br><br clear="all"><br>-- <br>Release me, insect, or I will destroy the Cosmos!<br>
</div>
<br>_______________________________________________<br>
chuck-users mailing list<br>
<a href="mailto:chuck-users@lists.cs.princeton.edu" target="_blank">chuck-users@lists.cs.princeton.edu</a><br>
<a href="https://lists.cs.princeton.edu/mailman/listinfo/chuck-users" target="_blank">https://lists.cs.princeton.edu/mailman/listinfo/chuck-users</a><br>
<br></blockquote></div></div></div><br><br clear="all"><br>-- <br>Patrick Guido Arminio<br>
</div>
<br>_______________________________________________<br>
chuck-users mailing list<br>
<a href="mailto:chuck-users@lists.cs.princeton.edu" target="_blank">chuck-users@lists.cs.princeton.edu</a><br>
<a href="https://lists.cs.princeton.edu/mailman/listinfo/chuck-users" target="_blank">https://lists.cs.princeton.edu/mailman/listinfo/chuck-users</a><br>
<br></blockquote></div><br><br clear="all"><br>-- <br>Release me, insect, or I will destroy the Cosmos!<br>
</div>
</div></div><br>_______________________________________________<br>
chuck-users mailing list<br>
<a href="mailto:chuck-users@lists.cs.princeton.edu" target="_blank">chuck-users@lists.cs.princeton.edu</a><br>
<a href="https://lists.cs.princeton.edu/mailman/listinfo/chuck-users" target="_blank">https://lists.cs.princeton.edu/mailman/listinfo/chuck-users</a><br>
<br></blockquote></div><br><br clear="all"><br>-- <br>Patrick Guido Arminio<br>
</div></div></div>
<br>_______________________________________________<br>
chuck-users mailing list<br>
<a href="mailto:chuck-users@lists.cs.princeton.edu" target="_blank">chuck-users@lists.cs.princeton.edu</a><br>
<a href="https://lists.cs.princeton.edu/mailman/listinfo/chuck-users" target="_blank">https://lists.cs.princeton.edu/mailman/listinfo/chuck-users</a><br>
<br></blockquote></div><br><br clear="all"><br>-- <br>Release me, insect, or I will destroy the Cosmos!<br>
</div></div></div>
<br>_______________________________________________<br>
chuck-users mailing list<br>
<a href="mailto:chuck-users@lists.cs.princeton.edu" target="_blank">chuck-users@lists.cs.princeton.edu</a><br>
<a href="https://lists.cs.princeton.edu/mailman/listinfo/chuck-users" target="_blank">https://lists.cs.princeton.edu/mailman/listinfo/chuck-users</a><br>
<br></blockquote></div><br><br clear="all"><br>-- <br>Patrick Guido Arminio<br>
</div>
</div></div><br>_______________________________________________<br>
chuck-users mailing list<br>
<a href="mailto:chuck-users@lists.cs.princeton.edu">chuck-users@lists.cs.princeton.edu</a><br>
<a href="https://lists.cs.princeton.edu/mailman/listinfo/chuck-users" target="_blank">https://lists.cs.princeton.edu/mailman/listinfo/chuck-users</a><br>
<br></blockquote></div><br><br clear="all"><br>-- <br>Release me, insect, or I will destroy the Cosmos!<br>
</div>