Kyma Forum
  Tips & Techniques
  "green" variables in MIDIMapper?

Post New Topic  Post A Reply
profile | register | preferences | faq | search

next newest topic | next oldest topic
Author Topic:   "green" variables in MIDIMapper?
Douglas Kraul
Member
posted 27 August 2004 06:34         Edit/Delete Message   Reply w/Quote
I have a sound that uses a variable (green) to set up certain conditions. One consequence is that the range of possible values for a hot variable changes. For example suppose the sound uses a variable ?FooCount to set the number of available "Foo's". The virtual control panel has a slider called "Active Foo's". I'd like this slider to have a grid of 1 and go from a minimum of 1 to a maximum of ?FooCount.

I tried solving this using a local mapper in a MIDIMapper but it did not like my use of a "green variable" as an argument in the "min: max: grid:" message. Is there any way to accomplish this programmatically?

Thanks,

Doug

IP: Logged

SSC
Administrator
posted 27 August 2004 10:05         Edit/Delete Message   Reply w/Quote
"I'd like this slider to have a grid of 1 and go from a minimum of 1 to a maximum of ?FooCount."

One approach would be to embed this directly into the parameter field. For example,

(!Fader * ?FooCount) rounded

or, to ensure that the minimum value is 1 and that all values correspond to equal distances on the fader:

((!Fader * ?FooCount) truncated + 1) vmin: ?FooCount

If this expression appears in several parameter fields, you could set it from a Script to save typing.

If you want to see what the values are in the VCS, you could use this expression as the Value of a SoundToGlobalController; then the generated value of the STGC would show you the scaled, gridded values of !Fader,

IP: Logged

Douglas Kraul
Member
posted 27 August 2004 11:41         Edit/Delete Message   Reply w/Quote
Thanks!

I had used the expression approach but did not think of the idea of using a STGC to display the "tricked out" value. That did the trick!

Doug

IP: Logged

All times are CT (US)

next newest topic | next oldest topic

Administrative Options: Close Topic | Archive/Move | Delete Topic
Post New Topic  Post A Reply

Contact Us | Symbolic Sound Home

This forum is provided solely for the support and edification of the customers of Symbolic Sound Corporation.


Ultimate Bulletin Board 5.45c