<br><br><div class="gmail_quote">2008/5/28 COLORSOUND &lt;<a href="mailto:audiomedias@gmail.com">audiomedias@gmail.com</a>&gt;:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hi thanks for your reply&nbsp; if i have an audio card with more than one input where and how do i set the desired input for recording ? <br><br></blockquote><div><br>Well, after using &quot;chuck --probe&quot; and determining what card has what number from ChucK&#39;s perspective you can start chuck with<br>
<br>chuck --dac3 --channels6 <a href="http://myfile.ck">myfile.ck</a><br><br>here the &quot;3&quot; would represent the number of the soundcard to use and the 6 the number of channels you&#39;d like to use (this would be both in and out, see &quot;chuck --help&quot; for more options).<br>
<br>Once you have that running you can ask for a certain channel from your soundcard&#39;s input in your code using &quot;adc.chan(4) =&gt; my_ugen&quot;, where the &quot;4&quot; would hopefully be the right channel. Remember we start counting at 0 yet the labeling on your hardware likely starts at 1.<br>
</div></div><br><br>This can indeed be a bit confusing because the code needs to match the way the VM is started, per default it starts in stereo mode on the default device so in that situation it makes no sense to have code that refers to the 6th or so input. Still; starting in stereo mode on the default device isn&#39;t such a bad default.<br>
<br>I found that when working a lot with files that use a lot of channels it saved time to write a small batch file (a shell script would also do) to start the VM in that way and sometimes add the .ck file as well.<br><br>
Hope that helps,<br>Kas.<br>