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 
go to the radio page Live at electro-music.com radio 1 Please visit the chat
  host / artist show at your time
today> Modulator ESP Adventures In Sound
 Forum index » DIY Hardware and Software » ChucK programming language
polyphonic synth how?
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
jirko



Joined: Dec 15, 2009
Posts: 59

PostPosted: Tue May 17, 2011 5:18 am    Post subject: polyphonic synth how? Reply with quote  Mark this post and the followings unread

I have made a small midi synth class and I was wondering how can I make it polyphonic?

Every help will be much appreciated!

Last edited by jirko on Wed May 18, 2011 8:28 am; edited 1 time in total
Back to top
View user's profile Send private message
jordan



Joined: May 16, 2011
Posts: 5
Location: Brooklyn, New York

PostPosted: Tue May 17, 2011 11:14 am    Post subject: Reply with quote  Mark this post and the followings unread

basically what you do is create an collection of ugens and use the midi instructions to select their frequency, chuck and unchuck them as needed. There's an example here:

http://chuck.cs.princeton.edu/doc/examples/midi/polyfony.ck

The comment text says there's an array of ugen's, but... there's not. There's a set of 20 handlers, each of which closes over the declaration for a ugen. There's not actually an array of ugens, there's an array of event objects. But the concept is the same; you create your ugens up front, and use midi instructions to manipulate them, chucking them into a chain the eventually makes its way to dac to get sound, and then unchucking them to turn it off.
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


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