I’m using a background rack to better control my keyboard (now an Arturia Keylab mkII 88) and have some questions about sysex and expressions.
I’m able to bind some keys to change songs and states, which was easy.
On Song Load and State Load, I’m also able to send Song Title and State on the ASCII screen using sysex messages.
- My first issue is that I want to take only the 16 first characters of the Song Title and the State Name.
This works well with substr() for Song Title, but this does not work for State when there is no State for the Song. In this case, this will give a “No Reference” error.
So basically, I need something like : State == null ? “” : substr(State, 0, 16)
…but this also gives a No Reference error so I’m back to square 1.
I’m also able to switch some button’s lights with Sysex messages which is great. This time, on Song Load, I would like to use it to see the “state” of the Song’s Plugins (i.e. if they are Running or not). This way if Plugin 1 is running, Plugin 2 is running and Plugin 3 is not running, I would see Button 1 lighten up, Button 2 lighten up and Button 3 not lighten up.
(I have already covered the part where pressing the button will change the state of the Plugin by it’s number)
- What kind of expression can I use to check whether Plugin number X is running or not?