Latest Update (September 2024)
→ Scriptlet: Arturia KeyLab MkII LED control - #14 by tripleB
Here we go again First snow this year, time to write some lines on what I have been doing since September
Today I want to provide my current work on a handy scriptlet to control the LEDs of the MIDI button, and the buttons LEDs on the right side of an Arturia KeyLab MkII controller.
As the MkII does not support MIDI controller feedback ( GP “sync”) to control the button states, I tried to figure out a different way. Reading through some articles here regarding the LCD screen, I finally found some comments on the Arturia forum how this could work
There’s a lot of room for improvements, but I just wanted to provide a basic sample script and I’m also requesting for some feedback and thoughts!
The attached KeyLabMkIILEDs.gig (262.6 KB) provides two rackspaces to demonstrate how this scriptlet works, based on the GP included HaNonB70 B3 Organ VST3.
YOU NEED TO ADJUST THIS TO YOUR NEEDS (Audio & MIDI…) - this also means you need to do a user preset on your Keylab mkII providing MIDI CC messages on the used buttons.
Some limitations in advance:
- the addressed LEDs can only light up in white with this method [edti] only in this first version - colour LEDs are supported in following version below…
- the MIDI LED on the left accept brightness control - the 9 LEDs on the right do not
- there are more LEDs to get control - however I use them the standard way in my rig
- we have to work around some KeyLab MkII ‘behaviour’
I’ve scripted this with GP 4.5.8 and my KeyLab 61 MkII Firmware 1.3.1 (latest)
Basic concept:
- the scriptlet needs just to be wired to the keyLab mkII MIDI output - no input
- the scriptlet sliders can now directly control all 10 LEDs
- there are hidden widget which are grouped to the widgets who control the functions you want to use in GP
I’ve implemented a Halfmoon switch (with some additional rackspace scripting…). Leslie S/F is controlled by Sustain CC64 - only when Leslie is enabled. This is reflected by a slider widget with Slow (left, MIDI LED off) - Brake (middle, MIDI LED dimmed) - Fast (right, MIDI LED full bright)
The two switches on the right side just demo the different behaviour depending on latching or non-latching button controllers sent from the mkII - the Select 1 and Select 2 buttons are used…
And here we run in our first trap: typically you would use momentary button switches to avoid the Keylab FW to light up with the programmed LED and colour. As GP reacts on the button down the scriptlet would send out immediately a LED on (or off) sysex which will be overwritten by the mkII when you release the button… So flickering and wrong colour on the mkII…
Therefore, I introduced a small delay in the scriptlet for sending the sysex for the LEDs slightly later…
If you want to use latching buttons, you can reduce (or even comment out) the delay - for non-latching buttons you need to adjust the timing to you demands.
Keep in mind, that all delay times sum up, when a rackspace is activated (sending all of and variation states…).
Have fun!
… and don’t forget to provide some feedback here
BBB