electro-music.com   Dedicated to experimental electro-acoustic
and electronic music
 
    Front Page  |  Articles  |  Radio
 |  Media  |  Forum  |  Links  |  Store
Forum with support of Syndicator RSS
 FAQFAQ   CalendarCalendar   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   LinksLinks GalleryGallery 
 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
Control Change
Post new topic   Reply to topic Moderators: Kassen
Page 1 of 1 [5 Posts]
View unread posts
View new posts in the last week
Mark the topic unread :: View previous topic :: View next topic
Author Message
Plasticman



Joined: Feb 25, 2008
Posts: 11
Location: Ireland

PostPosted: Mon Apr 07, 2008 12:36 pm    Post subject: Control Change
Subject description: Question about the controlChange function in the StkInstrument class
Reply with quote  Mark this post and the followings unread

Code:
.controlChange - ( int number, float value ) - assert control change - numbers are instrument specific, value range: [0.0 - 128.0]


Just a question about this function... As this is specific to each StkInstrument, is there a list somewhere of what the int value for each control is? Are they in the order shown for each class on this page? Also, can that function change the freq control?

Thanks
Back to top
View user's profile Send private message
radarsat1



Joined: Mar 14, 2008
Posts: 72
Location: Montreal

PostPosted: Mon Apr 07, 2008 1:01 pm    Post subject: Reply with quote  Mark this post and the followings unread

Look on the page you linked, each instrument has a list of control change values, for instance for BandedWG:

Quote:
Control Change Numbers:
- Bow Pressure = 2
- Bow Motion = 4
- Strike Position = 8 (not implemented)
- Vibrato Frequency = 11
- Gain = 1
- Bow Velocity = 128
- Set Striking = 64
- Instrument Presets = 16
- Uniform Bar = 0
- Tuned Bar = 1
- Glass Harmonica = 2
- Tibetan Bowl = 3
Back to top
View user's profile Send private message
Plasticman



Joined: Feb 25, 2008
Posts: 11
Location: Ireland

PostPosted: Wed Apr 09, 2008 5:24 am    Post subject: Reply with quote  Mark this post and the followings unread

Touché, thanks.
Back to top
View user's profile Send private message
Kassen
Janitor
Janitor


Joined: Jul 06, 2004
Posts: 6718
Location: The Hague, NL
G2 patch files: 3

PostPosted: Wed Apr 09, 2008 6:56 am    Post subject: Reply with quote  Mark this post and the followings unread

Also; typically you don't need to use those. They are inherited from the STK but (nearly?) all are copied to more meaningful, readable and ChucKian member functions.
_________________
Modern technology offers an endless field day to any deviant strains in our personalities. --J.G.Ballard
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Plasticman



Joined: Feb 25, 2008
Posts: 11
Location: Ireland

PostPosted: Wed Apr 09, 2008 11:37 am    Post subject: Reply with quote  Mark this post and the followings unread

It's actually more suited to my puroses than the member functions; it's being used as the backend to a synthesizer which communicates using OSC, so the (int, float) parameters are perfect for the sliders on the front end. Thanks for the suggestion though.
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 [5 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

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, 2004, 2005, 2006 and 2007 by electro-music.com