| Author |
Message |
Plasticman

Joined: Feb 25, 2008 Posts: 11 Location: Ireland
|
Posted: Mon Apr 07, 2008 12:36 pm Post subject:
Control Change Subject description: Question about the controlChange function in the StkInstrument class |
 |
|
| 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
|
|
 |
radarsat1

Joined: Mar 14, 2008 Posts: 85 Location: Montreal
|
Posted: Mon Apr 07, 2008 1:01 pm Post subject:
|
 |
|
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
|
|
 |
Plasticman

Joined: Feb 25, 2008 Posts: 11 Location: Ireland
|
Posted: Wed Apr 09, 2008 5:24 am Post subject:
|
 |
|
| Touché, thanks. |
|
|
Back to top
|
|
 |
Kassen
Janitor


Joined: Jul 06, 2004 Posts: 7678 Location: The Hague, NL
G2 patch files: 3
|
Posted: Wed Apr 09, 2008 6:56 am Post subject:
|
 |
|
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. _________________ Kassen |
|
|
Back to top
|
|
 |
Plasticman

Joined: Feb 25, 2008 Posts: 11 Location: Ireland
|
Posted: Wed Apr 09, 2008 11:37 am Post subject:
|
 |
|
| 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
|
|
 |
chuckles

Joined: Apr 02, 2007 Posts: 72 Location: San Diego, California
|
Posted: Fri Feb 25, 2011 3:47 pm Post subject:
STK Control Change values don't do anything? |
 |
|
I took the examples for e.g. ModalBar, BandedWG and took away the random values for notes and presets, holding those fixed and just letting the example loop over different values for the various other parameters. As far as I can tell, the sound does not change at all. However, no error messages are created. (e.g., "illegal value", etc.) Also, whereas the manual says that many of those parameters should be 0.0 - 1.0, they appear the accept values up to 128.
Has anyone else seen this? |
|
|
Back to top
|
|
 |
|