I made a thread about this issue here: <a href="http://electro-music.com/forum/viewtopic.php?t=31032">http://electro-music.com/forum/viewtopic.php?t=31032</a> . Kassen suggested that I send an email here, thinking that this might require some insight into <span class="Apple-style-span" style="font-family: Verdana; font-size: 12px; line-height: 18px; ">RTAudio (not sure myself what it is).</span><div>
<span class="Apple-style-span" style="font-family: Verdana; font-size: 12px; line-height: 18px;"><br></span></div><div><span class="Apple-style-span" style="font-family: Verdana; font-size: 12px; line-height: 18px;">My Motu Ultralite runs ChucK applications perfectly, as long as I don't bother configuring audio channels, making do with having sound output only coming at the main outputs, and sound input from the MacBook Pro's built-in input or microphone. The problems start when I try to route to other outputs or want to use the Ultralite's inputs.</span></div>
<div><br></div><div><span class="Apple-style-span" style="font-family: Verdana; font-size: 12px; line-height: 18px;">After a bit of trial-and-error, I managed to get ChucK to do what I want to do (more or less) by using this command line to start the program:</span></div>
<div><span class="Apple-style-span" style="font-family: Verdana; font-size: 12px; line-height: 18px;"><br></span></div><div><span class="Apple-style-span" style="font-family: Verdana; font-size: 12px; line-height: 18px;">chuck --adc4 --in8 --out8 <a href="http://test.ck">test.ck</a><br>
</span></div><div><span class="Apple-style-span" style="font-family: Verdana; font-size: 12px; line-height: 18px;"><br></span></div><div><span class="Apple-style-span" style="font-family: Verdana; font-size: 12px; line-height: 18px;">Here's the test code I have been using:</span></div>
<div><span class="Apple-style-span" style="font-family: Verdana; font-size: 12px; line-height: 18px;"><br></span></div><div><span class="Apple-style-span" style="font-family: Verdana; font-size: 12px; line-height: 18px;"><div>
adc.chan(6) => dac.chan(0);</div><div>adc.chan(7) => dac.chan(1);</div><div><br></div><div>while (true) {</div><div> 1::day => now;</div><div>}</div><div><br></div><div>This will route audio from inputs 7 and 8 to outputs 1 and 2 (not the main outputs - if I want to hear the sound from the ChucK app I need to physically connect the 1 and 2 output to another input on the sound interface). </div>
<div><br></div><div>A curious thing here is that if I start like this instead:</div><div><br></div><div>chuck --adc4 --in8 --out6 <a href="http://test.ck">test.ck</a> // 6 outputs instead of 8<br></div><div><br></div><div>
I get a mangled sound (sounding a bit like a sample rate or bandwidth mismatch - check the sound sample that I attached at the <a href="http://electro-music.com">electro-music.com</a> thread), and rather than just coming out of outputs 1 and 2 (as they do when I use the previous command line), the sound appears at all eight analog outputs on the Ultralite (according to the hardware meters on the Motu). If I try --out4 I get sound on outputs 1,2,,5,6,7, and 8.</div>
<div><br></div><div>Another thing: if I leave out the output option altogether (i.e. take away "--out8"), I get a mangled sound as before, but only on the main output.</div></span></div><div><span class="Apple-style-span" style="font-family: Verdana; font-size: 12px; line-height: 18px;"><br>
</span></div><div><span class="Apple-style-span" style="font-family: Verdana; font-size: 12px; line-height: 18px;">I've also seen stuff like getting sound on every second output (1,3,5,7) for some option, though I can't seem to reproduce that now.</span></div>
<div><span class="Apple-style-span" style="font-family: Verdana; font-size: 12px; line-height: 18px;"><br></span></div><div><span class="Apple-style-span" style="font-family: Verdana; font-size: 12px; line-height: 18px;">I think I can work with what happens on my first example, but I'm still a bit curious as to what is going on with these options, and why --out6 causes the sound to behave radically different from --out8. I've checked my drivers - the Ultralite firmware is up to date and I think the OSX drivers are too. I'm running ChucK 1.2.1.2. I might have to leave my Motu for a week, so i might not be able to test stuff right away, if anyone comes up with something.<br clear="all">
</span><br></div><div>/Stefan </div><div><br>-- <br>Release me, insect, or I will destroy the Cosmos!<br>
</div>