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
  Faux Pas Quartet and friends Music From Last Thursday
Please visit the chat
 Forum index » DIY Hardware and Software » ChucK programming language
Unconnecting oscillators from the dac
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
ebbnormal



Joined: May 22, 2013
Posts: 2
Location: United States

PostPosted: Wed May 22, 2013 1:15 pm    Post subject:  Unconnecting oscillators from the dac Reply with quote  Mark this post and the followings unread

Hello. I am trying to unconnect oscillators from the dac in the while(true) loop of my program based on certain input from another program. if I have a bunch of SinOsc connected to the dac, how do I connect them? Or do I just have to bring their volume to zero? I suppose both options would suit my purposes.

Thanks!

Ryan.
Back to top
View user's profile Send private message
pizzas



Joined: Feb 05, 2013
Posts: 4
Location: japan

PostPosted: Mon May 27, 2013 6:37 am    Post subject: Reply with quote  Mark this post and the followings unread

helloooo ryan

via the chuck language specification page on ugens
( http://chuck.cs.princeton.edu/doc/language/ugen.html )

to disconnect SinOsc s, use "unchuck":

s =< dac;

to bring sound to zero, you can either do

0 => s.gain;

if you've connected it to ADSR e

0 => e.gain;

or even!

e.keyOff();

i do keyoff usually. lets you add a nice long release time if you want (see http://chuck.cs.princeton.edu/doc/program/ugen_full.html#ADSR)
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 [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
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