Hi
I'm sorry to ask this Q again, but I can't find any valid information here or at VI-Control.
It's still the same problem:
Upon selecting a MIDI track in Cubase a MIDI message CC 127 val 1 is send to OSC. Here a script is validating the data, and if it really is CC 127, OSC returns a MIDI message '/control, 1,126,1. This in return makes the selected track send a NEW MIDI message to OSC: '/control, 1, 117, 1. This message is coded via the last two units (117,1), to ID this track as ex. a VSL Piccolo track. Quite logic considering that the Piccolo flute is the "first" instrument in the Orchestra.
Inside the .js script there are these lists of articulation names:
Here the piccolo - just assigned to CC119 value103!!
Now OSC has the information to "populate" the articulations buttons with the names of the articulations, in this instance there are 27 (!) different articulations. So what I need is "a little help" to colorize the buttons according to the name. I imagine a switch statement with cases could be use to evaluate the name and assign a color.
Years ago I coded in GFA Basic on Atari and I have picked up some knowledge of the matter, but I can't find my way in this.
This is the code - created by Mihkel Zilmer, modified by me:
I understand line 1063 - 1082 but after that it's getting difficult. Especially 1084, 1085 and 1090 is problematic.
Any help much appreciated, could also be a reference to information.
Regards Stig Christensen MUSICMIND