Hi Everyone! My first time on here, so excited to join the community. I am having so much fun with my new crazy guitar rig. I jacked an old effects unit and hacked into the stomp buttons (and LEDs). I made room for my Pi4 and an USB audio interface… I am running Patchbox OS with the Modep module and controlling the rig through the patchbox.local network method. (but plan to run headless)
In the next phase of this project, I connected the stomp buttons to the GPIO on the Pi. I WAS successful in tricking Patchbox OS to use the Button feature from the pisound code: where you tap several clicks to choose the index of your pedalboard preset.
So… TWO THINGS:
(1) instead of multiple clicks to select a preset, is there a config setting that would allow me to just cycle through them?
(2) I see in MODEP web interface that I can map midi control keys to individual controls on the pedals on the pedal board. Can I programmically set a GPIO pin on interrupt to send a midi control command to the MODEP interface? I have four stomp-able buttons - I’d like to map each one to a different “MIDI event”. For example, the SOOPER LOOPER allows mapping for rec, play, undo, reset - I have my buttons wired to GPIO’s 27,22,23 and 24. I need to develop code to ‘listen’ for button presses and then virtually send a MIDI command to the MODEP module… IS THIS FEASIBLE?
Thanks so much for any help in advance. I’ve spent days learning python and RPi.GPIO and am getting close but the MIDI thing eludes me, so far.