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 class="Apple-style-span" style="font-family: Georgia; font-size: medium; -webkit-border-horizontal-spacing: 2px; -webkit-border-vertical-spacing: 2px; "><pre style="font-family: 'Bitstream Vera Sans Mono', 'Courier New', Monaco, monospace; font-size: 14px; ">
<span class="o" style="color: rgb(102, 102, 102); ">S</span><span class="nx">inOsc</span> <span class="nx">a</span> <span class="o" style="color: rgb(102, 102, 102); ">=></span> <span class="nx">dac</span><span class="p">.</span><span class="nx">chan</span><span class="p">(</span><span class="m" style="color: rgb(102, 102, 102); ">0</span><span class="p">);</span> <span class="c" style="color: rgb(0, 136, 0); font-style: italic; ">// send sine wave to the fourth mono output</span>
</pre><div><font class="Apple-style-span" color="#008800"><i><span class="Apple-style-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 class="k" style="color: rgb(170, 34, 255); font-weight: bold; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: rgb(255, 255, 153); background-position: initial initial; background-repeat: initial initial; ">while</span><span class="p">(</span><span class="kc" style="color: rgb(170, 34, 255); font-weight: bold; ">true</span><span class="p">)</span> <span class="p">{</span>
<span class="m" style="color: rgb(102, 102, 102); ">1</span><span class="o" style="color: rgb(102, 102, 102); ">::</span><span class="nx">second</span> <span class="o" style="color: rgb(102, 102, 102); ">=></span> <span class="nx">now</span><span class="o" style="color: rgb(102, 102, 102); ">;</span>
<span class="p">}</span></pre><pre style="font-family: 'Bitstream Vera Sans Mono', 'Courier New', Monaco, monospace; font-size: 14px; "><span class="p"><span class="Apple-style-span" style="font-family: arial; white-space: normal; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; 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 class="Apple-style-span" face="arial"><span class="Apple-style-span" style="white-space: normal; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; font-size: small;">chuck <a href="http://test.ck">test.ck</a></span></font></pre>
<pre style="font-family: 'Bitstream Vera Sans Mono', 'Courier New', Monaco, monospace; font-size: 14px; "><font class="Apple-style-span" face="arial"><span class="Apple-style-span" style="white-space: normal; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; 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 class="Apple-style-span" face="arial"><span class="Apple-style-span" style="white-space: normal; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; font-size: small;">chuck --out4 <a href="http://test.ck">test.ck</a></span></font></pre>
<pre style="font-family: 'Bitstream Vera Sans Mono', 'Courier New', Monaco, monospace; font-size: 14px; "><font class="Apple-style-span" face="arial"><span class="Apple-style-span" style="white-space: normal; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; 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 class="Apple-style-span" face="arial"><span class="Apple-style-span" style="white-space: normal; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; 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 class="Apple-style-span" face="arial"><span class="Apple-style-span" style="white-space: normal; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; font-size: small;">/Stefan</span></font></pre>
<pre style="font-family: 'Bitstream Vera Sans Mono', 'Courier New', Monaco, monospace; font-size: 14px; "><br></pre></span></i></font></div></span><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;">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 class="h5"><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">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>