Well I’m not sure I would call it “Hazardous” I would just read the manual and make sure that any MIDI feedback to your MPD218 is properly planned and won’t interfere with any other operation.
As far as an example. I just put together a simple example of X-touch MIDI in Layer mode with 2 button LED feedback.
There is an output alias set up for “To Application” that I have as Bome MIDI Translator 1
There is input from X-Touch MINI and also output to X-Touch MINI
I have set up a default route from X-Touch MINI to “To Application” so that anything to the host passes through untouched.
I then set up translators for Buttons 1 and 2 on Layer A and I unchecked “Swallow” so that the translators don’t stop anything from passing through to the application.
At the preset level for Layer A, I override the default outputs to X-touch MINI only so that feedback only goes back to the X-touch MINI.
Each button has a separate global variable that we toggle on an off with rules. For instance button one uses the global variable ga.
// Toggle LED
ga=ga^1
qq=0
if ga==1 then qq=127
The output will put either 127 (light on) or 0 (light off).
I trigger with note-off input from the button. The X-touch MINI doesn’t work right if you try and trigger when pushing the button so I set it up for button release instead. This is an idiosyncrasy with this specific controller and I have not seen it with any others.
On input I capture the midi channel to a local variable oo and the note to a local variable pp.
For output I look at the value of ga and if 0 it just puts out 0 which turns off the led.
If the value of ga==1 I put out 127 which is the value needed for most LED’s for on.
I only did this for 2 buttons to illustrate but if you have any questions, feel free to come back here.
Steve Caldwell
Bome Q and A Moderator and
Independent Bome Consultant/Specialist
bome@sniz.biz