check audio devices and set audio input
hi guys , I,m fresh new user , i,m completly lost , How can check which devices chuck recognise in my computer ? and more important how do i set from which channel the audio is coming for recording an audio file ? I download this file for getting the recording order from vvvv , but dont see where to set the aduio recording input : WvOut w; OscRecv recv; 6449 => recv.port; recv.listen(); recv.event( "/record, i, s" ) @=> OscEvent @ oe; int isRecording; 0 => isRecording; adc => dac; while( true ) { oe => now; while( oe.nextMsg() ) { int record; string filename; oe.getInt() => record; oe.getString() => filename; if (record == 1 && record != isRecording) { 1 => isRecording; filename => w.wavFilename; adc =< dac; adc => w => dac; <<< "record: ", filename >>>; } if (record == 0 && record != isRecording) { 0 => isRecording; adc =< w =< dac; adc => dac; <<< "stopped." >>>; } } } thanks hope i,m sending this to the right email .
COLORSOUND wrote:
hi guys , I,m fresh new user , i,m completly lost ,
Welcome!
How can check which devices chuck recognise in my computer ?
chuck --probe
and more important how do i set from which channel the audio is coming for recording an audio file ?
I'm not sure what you mean here. You're trying to record from adc, which should output stereo. Aren't you getting stereo in the resulting wave file or what's the problem? May I suggest you make a very, very stripped down example isolating the problem, and post it here. It makes it easier for us to help you :-) Something like (untested!) might be what you want: adc => WvOut w => dac; "test.wav" => w.wavFilename; 1::second => now;
thanks hope i,m sending this to the right email .
You are! -- peace, love & harmony Atte http://atte.dk | http://myspace.com/attejensen http://anagrammer.dk | http://modlys.dk
Hi thanks for your reply if i have an audio card with more than one input
where and how do i set the desired input for recording ?
2008/5/28 Atte André Jensen
COLORSOUND wrote:
hi guys , I,m fresh new user , i,m completly lost ,
Welcome!
How can check which devices chuck recognise in my computer ?
chuck --probe
and more important how do i set from which channel the audio is coming for
recording an audio file ?
I'm not sure what you mean here. You're trying to record from adc, which should output stereo. Aren't you getting stereo in the resulting wave file or what's the problem?
May I suggest you make a very, very stripped down example isolating the problem, and post it here. It makes it easier for us to help you :-) Something like (untested!) might be what you want:
adc => WvOut w => dac; "test.wav" => w.wavFilename; 1::second => now;
thanks hope i,m sending this to the right email .
You are!
-- peace, love & harmony Atte
http://atte.dk | http://myspace.com/attejensen http://anagrammer.dk | http://modlys.dk _______________________________________________ chuck-users mailing list chuck-users@lists.cs.princeton.edu https://lists.cs.princeton.edu/mailman/listinfo/chuck-users
2008/5/28 COLORSOUND
Hi thanks for your reply if i have an audio card with more than one input where and how do i set the desired input for recording ?
Well, after using "chuck --probe" and determining what card has what number from ChucK's perspective you can start chuck with chuck --dac3 --channels6 myfile.ck here the "3" would represent the number of the soundcard to use and the 6 the number of channels you'd like to use (this would be both in and out, see "chuck --help" for more options). Once you have that running you can ask for a certain channel from your soundcard's input in your code using "adc.chan(4) => my_ugen", where the "4" would hopefully be the right channel. Remember we start counting at 0 yet the labeling on your hardware likely starts at 1. 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't such a bad default. 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. Hope that helps, Kas.
it does help thank you ;D
2008/5/28 Kassen
2008/5/28 COLORSOUND
: Hi thanks for your reply if i have an audio card with more than one input where and how do i set the desired input for recording ?
Well, after using "chuck --probe" and determining what card has what number from ChucK's perspective you can start chuck with
chuck --dac3 --channels6 myfile.ck
here the "3" would represent the number of the soundcard to use and the 6 the number of channels you'd like to use (this would be both in and out, see "chuck --help" for more options).
Once you have that running you can ask for a certain channel from your soundcard's input in your code using "adc.chan(4) => my_ugen", where the "4" would hopefully be the right channel. Remember we start counting at 0 yet the labeling on your hardware likely starts at 1.
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't such a bad default.
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.
Hope that helps, Kas.
_______________________________________________ chuck-users mailing list chuck-users@lists.cs.princeton.edu https://lists.cs.princeton.edu/mailman/listinfo/chuck-users
participants (3)
-
Atte André Jensen
-
COLORSOUND
-
Kassen