electro-music.com   Dedicated to experimental electro-acoustic
and electronic music
 
    Front Page  |  Radio
 |  Media  |  Forum  |  Wiki  |  Links
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
ChucK/miniAudicle with multichannel audio
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
DrDoug



Joined: Feb 14, 2011
Posts: 3
Location: Cambridge

PostPosted: Fri Nov 24, 2017 8:03 pm    Post subject: ChucK/miniAudicle with multichannel audio Reply with quote  Mark this post and the followings unread

Just spent a while getting ChucK to work with multichannel output, and thought it might help to share how I eventually managed it.

I'm running Windows 10, with a Firewire connection to a MOTU 828 Mk I audio interface with 8 ins and 8 outs. I haven't yet tested this on a Mac.

- Download and install JACK from jackaudio.org.
- Run the JACK Audio Connection Kit app, click Setup and choose "ASIO::MOTU Audio ASIO", then click Start.
- In ChucK/bin you'll find an ASIO build (chuck ASIO 1.3.4.0..exe) - the non-ASIO build doesn't seems to support multi-channel audio.
- Run this (I renamed it as chuckasio.exe) with the --probe option to find the device number of the audio interface.
- On my system ChucK crashed, but fortunately after it had told me I needed device number 3. So the command *should be*
chuckasio --dac3 --adc3 --in8 --out8 test.ck
- However there's a bug in parsing --dac (see https://github.com/ccrma/chuck/issues/82 - thank you jack461!)
- The workaround is to put an extra character before the dac device number, i.e.
chuckasio --dac_3 --adc3 --in8 --out8 test.ck
- The test code below connects the SinOsc to each channel.


A further question - has anybody compiled miniAudicle with ASIO support?


Code:

SinOsc s;

s => dac.chan(0);      2::second => now;
s => dac.chan(1);      2::second => now;
s => dac.chan(2);      2::second => now;
s => dac.chan(3);      2::second => now;
s => dac.chan(4);      2::second => now;
s => dac.chan(5);      2::second => now;
s => dac.chan(6);      2::second => now;
s => dac.chan(7);      2::second => now;
Back to top
View user's profile Send private message
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


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