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
4 channels panning
Post new topic   Reply to topic Moderators: Kassen
Page 1 of 1 [2 Posts]
View unread posts
View new posts in the last week
Mark the topic unread :: View previous topic :: View next topic
Author Message
Phloxs



Joined: Jan 24, 2014
Posts: 17
Location: Russia

PostPosted: Tue Mar 31, 2015 7:19 am    Post subject: 4 channels panning
Subject description: How to pan sound between four soundcard outputs?
Reply with quote  Mark this post and the followings unread

Hello. I want to made some kind of ecosystem with sound objects.

All 'animals' in this system will move between channels and tell about their position to other 'animals'. For performance I want to use four or more audio sources. So how can I 'move' my 'animals' et.ex from channel 1 to channel 3 ?

I use 64 bit Debian GNU/Linux if it has matter.
Back to top
View user's profile Send private message
Antimon



Joined: Jan 18, 2005
Posts: 4145
Location: Sweden
Audio files: 371
G2 patch files: 100

PostPosted: Tue Mar 31, 2015 1:33 pm    Post subject: Reply with quote  Mark this post and the followings unread

if you run

Code:
chuck --probe


You will see your devices (listed as "audio device 1", "audio device 2" and so on). Find your multi-output device in that list. Now you can start chuck like this:

Code:
chuck  --adc4 --in8 --out8 mychuckprogram.ck


...where the number after --adc is the device number in the list. The numbers after --in and --out are the amount of inputs and output that you want to use, respectively. You may have to fiddle with input and output count in non-obvious ways, depending on which sound interface you use. My Motu Ultralite Mk1 behaves weirdly if I try to make it use 3 outputs and 5 inputs, for instance - I will get broken sound on several outputs even if I only want to use one channel, or no sound at all.

In your chuck program, write code like this:

Code:

SawOsc mySaw => dac.chan(0);
SinOsc mySine => dac.chan(2);


to send a sawtooth sound to the first output and a sine sound to the third output (output numbering starts at zero in the program).

Hope that helps!

I should say that this is how I use it on a Mac. If you have any linux-specific problems hopefully someone else can help, or you can post a question to the mailing list:

https://lists.cs.princeton.edu/mailman/listinfo/chuck-users

_________________
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 [2 Posts]
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