Hi there,
So after being succesfull making my first replica of a MIDI controller , a BCR2000 behringer, I'm trying to make other virtual replica now of a Novation-Launchpad.
(skip next 2 paragraphs to skip intro)
This one is a bit more tricky, as it has LED's on it that respond to MIDI in messages in the device.
Basically for each Note in that receive the device from the in port, the Note Pitch will determine which pad will be turned on.
The Velocity will correspond to the way these LED's will behave, so the Launchpad is got 2 LED's per PAD (1 Red and 1 Green) and it's got 4 different intensities.
Without getting much into details about the way this internally work ( more info: https://fael-downloads-prod.focusrite.com/customer/prod/s3fs-public/novation/downloads/4700/launchpad-s-prm.pdf)
So basically I need to write a function to translate the velocity values to adjust the LED's widget in a certain way such as:
For Velocity = 15 = "colorWidget": "rgba(253,109,109"
For Velocity = 60 = "colorWidget": "rgba( 0 , 253 , 0)"
Something like that
I am aware I can create the widget the following way
led
mode: color
range {
"min": 0,
"max": 127
}
value : [r, g, 0]
address: /note
preArgs: [1, 0]
target: midi:virtual-launchpad
I'm not really sure of how I can continue
Has anyone done something similar?
Thanks!!