![]() |
![]() ![]() ![]() ![]() ![]()
|
next newest topic | next oldest topic |
Author | Topic: "green" variables in MIDIMapper? |
Douglas Kraul Member |
![]() ![]() ![]() 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 |
![]() ![]() ![]() "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 |
![]() ![]() ![]() 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 |
![]() ![]() |
This forum is provided solely for the support and edification of the customers of Symbolic Sound Corporation.