MIDI Command Server

Hey, now that is a real neat script you pointed me at!

I forked that project and made some adjustments, then made a pull request for those changes to get merged back in, including a few functions to be able to load a pedalboard by name:

modep@modep:~/modep-btn-scripts $ ./modep-ctrl.py load-board HEXA_SYNTHS
Switching /usr/local/modep/.pedalboards/DEFAULT.pedalboard -> /usr/local/modep/.pedalboards/HEXA_SYNTHS.pedalboard
modep@modep:~/modep-btn-scripts $ 

I’ve been experimenting with it for just a bit, and it seems like this will work out quite well in my setup with the MidiCmdServer and the Behringer FCB1010 with Eureka.

Notably, I can set up a single foot switch that sends MIDI CC signals to flip between two saved pedalboards depending on whether it’s on (127) or off (0)!
And that can be achieved with just two lines of code in the MidiCmdServer:

midi_cmd(83, 127, "/usr/local/modep/modep-btn-scripts/modep-ctrl.py load-board HEXA_SYNTHS")
midi_cmd(83, 0, "/usr/local/modep/modep-btn-scripts/modep-ctrl.py load-board DEFAULT")

I suspect that this approach would have issues if one is using a MIDI device that sends the same control-change signals over and over.
That might just boil down to not assigning this thing to watch a wah pedal or something like that, and stick to things like buttons instead.
Also, in my crash-testing, I found that flipping between pedals too quickly can cause issues. It seemed like the pedals from both the boards to load up, and there would be a LOT of extra noise.
YMMV, but it works for me :slight_smile: