Antimon
Joined: Jan 18, 2005 Posts: 4145 Location: Sweden
Audio files: 371
G2 patch files: 100
|
Posted: Sun Feb 24, 2008 3:42 am Post subject:
Possible issue using multiple outs on Motu Ultralite / OSX |
|
|
I've looked around some, but can't find any similar experience - this might be some config mistake on my part, but I doubt it.
I want to route out ChucK audio to something else than the main outs on my Ultralite audio interface (8 ordinary outputs besides the main outs). I tried doing this:
Code: | chuck --out4 multiple_output_test.ck |
on this file:
Code: | LiSa lisa => dac;
1::second => lisa.duration;
1 => lisa.loop;
SinOsc sinOsc => lisa;
0.1 => sinOsc.gain;
0.3::second => lisa.recPos;
1 => lisa.record;
0.3::second => now;
0 => lisa.record;
sinOsc =< lisa;
1 => lisa.play;
while (true) {
1::second => now;
}
|
The result is audio on all extra outputs (but not the main ones), judging from the visual feedback on the ultralite box. Also, if I listen to what I get on one of the outputs, I hear what I is in the wav file that I have attached. Not what you'd expect from a SinOsc with gain 0.1, eh? If I run this patch without --out4, I get the nice sine beeps that I expected.
Ah! And as I am writing this post, I think I've solved my problem. If I change --out4 to --out8 (which better matches the amount of audio outs on the ultralite --out10 doesn't work, so I guess that ChucK can't connect to the S/PDIF outputs), then it worked. It still outputs to all 8 extra outputs though, unless I specify a channel with lisa => dac.chan(0), which will send to only output 1.
OK, just to complete my survey on this, if I kept --out4 and started specifying which channel to use like this:
Code: | LiSa lisa => dac.chan(0);
|
then I got some weird modulo output selection, with audio on output 2 and 6. If I change to --out3 I get a horrible high-pitched sharp sound on channel 1, and the mangled beep on all channels 2-8.
So, I've worked around my problem, but there seems to be some kind of bug in there when it comes to using multiple outputs on my setup. To wrap up, here's what --probe says:
Code: | $ chuck --probe
[chuck]: found 4 device(s) ...
[chuck]: ------( chuck -- dac1 )---------------
[chuck]: device name = "Apple Inc.: Built-in Microphone"
[chuck]: probe [success] ...
[chuck]: # output channels = 0
[chuck]: # input channels = 2
[chuck]: # duplex Channels = 0
[chuck]: default device = NO
[chuck]: natively supported data formats:
[chuck]: 8-bit int
[chuck]: 16-bit int
[chuck]: 24-bit int
[chuck]: 32-bit int
[chuck]: 32-bit float
[chuck]: 64-bit float
[chuck]: supported sample rates:
[chuck]: 44100 Hz
[chuck]: 48000 Hz
[chuck]: 96000 Hz
[chuck]:
[chuck]: ------( chuck -- dac2 )---------------
[chuck]: device name = "Apple Inc.: Built-in Input"
[chuck]: probe [success] ...
[chuck]: # output channels = 0
[chuck]: # input channels = 2
[chuck]: # duplex Channels = 0
[chuck]: default device = NO
[chuck]: natively supported data formats:
[chuck]: 8-bit int
[chuck]: 16-bit int
[chuck]: 24-bit int
[chuck]: 32-bit int
[chuck]: 32-bit float
[chuck]: 64-bit float
[chuck]: supported sample rates:
[chuck]: 44100 Hz
[chuck]: 48000 Hz
[chuck]: 96000 Hz
[chuck]:
[chuck]: ------( chuck -- dac3 )---------------
[chuck]: device name = "Apple Inc.: Built-in Output"
[chuck]: probe [success] ...
[chuck]: # output channels = 2
[chuck]: # input channels = 0
[chuck]: # duplex Channels = 0
[chuck]: default device = NO
[chuck]: natively supported data formats:
[chuck]: 8-bit int
[chuck]: 16-bit int
[chuck]: 24-bit int
[chuck]: 32-bit int
[chuck]: 32-bit float
[chuck]: 64-bit float
[chuck]: supported sample rates:
[chuck]: 44100 Hz
[chuck]: 48000 Hz
[chuck]: 96000 Hz
[chuck]:
[chuck]: ------( chuck -- dac4 )---------------
[chuck]: device name = "MOTU: MOTU UltraLite"
[chuck]: probe [success] ...
[chuck]: # output channels = 14
[chuck]: # input channels = 12
[chuck]: # duplex Channels = 12
[chuck]: default device = YES
[chuck]: natively supported data formats:
[chuck]: 8-bit int
[chuck]: 16-bit int
[chuck]: 24-bit int
[chuck]: 32-bit int
[chuck]: 32-bit float
[chuck]: 64-bit float
[chuck]: supported sample rates:
[chuck]: 44100 Hz
[chuck]: 48000 Hz
[chuck]: 88200 Hz
[chuck]: 96000 Hz
[chuck]:
[chuck]: ------( chuck -- 3 MIDI inputs )------
[chuck]: [0] : "MIDISPORT 2x2 Port A"
[chuck]: [1] : "MIDISPORT 2x2 Port B"
[chuck]: [2] : "UltraLite MIDI Port"
[chuck]:
[chuck]: ------( chuck -- 3 MIDI outputs )-----
[chuck]: [0] : "MIDISPORT 2x2 Port A"
[chuck]: [1] : "MIDISPORT 2x2 Port B"
[chuck]: [2] : "UltraLite MIDI Port"
[chuck]: |
/Stefan
Description: |
Weird sound of SinOsc with gain 0.1 |
|
Download |
Filename: |
multiple_out_test.wav |
Filesize: |
721.14 KB |
Downloaded: |
1487 Time(s) |
_________________ Antimon's Window
@soundcloud @Flattr home - you can't explain music |
|