pi-stomp icon indicating copy to clipboard operation
pi-stomp copied to clipboard

Change Pedalboard via MIDI

Open gallochri opened this issue 3 years ago • 5 comments

Is it possible to change pedalboard via midi?

gallochri avatar Apr 12 '21 10:04 gallochri

Yes. Program Change messages coming into the MIDI port should change the pedalboard active in MOD. The bad news is that the pi-Stomp software (separate from MOD) doesn't currently listen to incoming MIDI messages, so the LCD will not reflect the pedalboard change. It certainly could. Feel free to submit an issue to request adding that functionality.

rreichenbach avatar Apr 12 '21 22:04 rreichenbach

I can't find which channel to send "Program Change" messages to change pedalboards. Is there a log of incoming midi messages?

gallochri avatar Apr 17 '21 19:04 gallochri

pi-stomp specific software doesn't log messages coming in, only the messages it generates. You could likely use a midi utility like amidi with the dump option, but that doesn't seem to work for me. Also, I'm not seeing Mod respond to PC messages. It did at one time, but it seemed they might have changed that or there's some setting required to enable it.

rreichenbach avatar Apr 18 '21 16:04 rreichenbach

Talking of which, when the board is changed via the web UI, this is also not reflected in pi-stomp... should we also expect a MIDI message ? Otherwise is there a way to poll MOD for the current board and adapt ?

ozbenh avatar Nov 01 '21 05:11 ozbenh

There is no MIDI message sent when the pedalboard is changed via MOD UI. And the communication between pi-stomp software and mod-ui/mod-host has been unidirectional via the rest API defined by mod-ui/webserver.py (woefully incomplete BTW). For their own hardware, MOD does register callbacks for keeping the hardware in sync with the MOD UI. I've had plans to do something similar, but haven't invested the time. But yes, it's not very nice that at least pedalboard and preset changes from MOD UI are not synced on the pi-stomp. A few months ago, I did create a polling based solution for pedalboard changes. I've not discovered a similar hook for preset/snapshot changes, but I suppose pedalboard changes would be better than nothing. I'll find and post that change once I find the SD card that has it (never pushed it).

rreichenbach avatar Nov 02 '21 04:11 rreichenbach