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 
Live streaming at radio.electro-music.com

  host / artist show at your time
  Twyndyllyngs Live - Postponed to tomorrow at the same time Chez Mosc
Please visit the chat
 Forum index » DIY Hardware and Software » ChucK programming language
Trouble with Multi Channel Output in ChucK
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
jz



Joined: Oct 07, 2015
Posts: 1
Location: Baltimore

PostPosted: Wed Oct 07, 2015 6:58 pm    Post subject: Trouble with Multi Channel Output in ChucK
Subject description: Error - NullPointerExcepiton: (Ugen link)
Reply with quote  Mark this post and the followings unread

For some time I have been trying to generate multi-channel audio from ChucK with no success.

I am able to properly send audio to chan(0) and chan(1), but any channel higher than those two generate the following error:

NullPointerExcepiton: (Ugen link)

I have attempted this on OS Lion through Mavericks by creating an aggregate device in AudioMidi Setup as well as using a Firestudio DAC. In any context, I get the same error.

What am I doing incorrectly?!

I have been frustrated by this for quite some time; any help is much appreciated.

Sample code below.

Thanks
jz



//Correct LEFT then RIGHT channel tones
SinOsc x => dac.chan (0);
SinOsc y => dac.chan (1);

0 => y.gain;
1 => x.gain;
220 => x.freq;
.5::second => now;
0 => x.gain;

.5::second => now;

1 => y.gain;
330 => y.freq;
.5::second => now;
0 => y.gain;


// *Error: NullPointerExcepiton: (Ugen link)
SinOsc z => dac.chan (2);

1 => z.gain;
440 => z.freq;
1::second => now;
0 => z.gain;
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
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