electro-music.com   Dedicated to experimental electro-acoustic
and electronic music
 
    Front Page  |  Articles  |  Radio
 |  Media  |  Forum  |  Wiki  |  Links  |  Store
Forum with support of Syndicator RSS
 FAQFAQ   CalendarCalendar   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   LinksLinks
 RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in  Chat RoomChat Room 
 Forum index » DIY Hardware and Software » ChucK programming language
Possible issue using multiple outs on Motu Ultralite / OSX
Post new topic   Reply to topic Moderators: Kassen
Page 1 of 1 [1 Post]
View unread posts
View new posts in the last week
Mark the topic unread :: View previous topic :: View next topic
Author Message
Antimon



Joined: Jan 18, 2005
Posts: 3686
Location: Sweden
Audio files: 267
G2 patch files: 96

PostPosted: Sun Feb 24, 2008 3:42 am    Post subject: Possible issue using multiple outs on Motu Ultralite / OSX Reply with quote  Mark this post and the followings unread

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. Very Happy Embarassed 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


multiple_out_test.wav
 Description:
Weird sound of SinOsc with gain 0.1

Download
 Filename:  multiple_out_test.wav
 Filesize:  721.14 KB
 Downloaded:  434 Time(s)


_________________
Antimon's Window
@soundcloud @Flattr home - you can't explain music
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic Moderators: Kassen
Page 1 of 1 [1 Post]
View unread posts
View new posts in the last week
Mark the topic unread :: View previous topic :: View next topic
 Forum index » DIY Hardware and Software » ChucK programming language
Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum
e-m mkii

Please support our site. If you click through and buy from
our affiliate partners, we earn a small commission.


Forum with support of Syndicator RSS
Powered by phpBB © 2001, 2005 phpBB Group
Copyright © 2003 through 2009 by electro-music.com - Conditions Of Use