feat: patch dump/load + preset management over USB MIDI - #7
Merged
Conversation
Lets Propagator drive the on-device QSPI presets it previously couldn't
reach. New SysEx commands (docs/MIDI_PROTOCOL.md §3-4):
0x10 / 0x50 full live patch dump (device->editor, so a recall or a
hardware tweak syncs the UI)
0x11 patch load (set all live values)
0x20/0x21/0x22 save / recall / list the active mode's 3 QSPI slots
0x52 slot occupancy + active slot
A Program Change is an alias for recall. The slots are the same ones the
Footswitch-2 gesture uses; the hooks reuse the existing PresetCapture/Apply
glue and run from the main loop via PumpMidi. Patch values are 7-bit to
stay under libDaisy's 128-byte inbound SysEx buffer.
Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Lets Propagator drive the on-device QSPI presets it previously couldn't reach. New SysEx commands (docs/MIDI_PROTOCOL.md §3-4):
0x10 / 0x50 full live patch dump (device->editor, so a recall or a
hardware tweak syncs the UI)
0x11 patch load (set all live values)
0x20/0x21/0x22 save / recall / list the active mode's 3 QSPI slots
0x52 slot occupancy + active slot
A Program Change is an alias for recall. The slots are the same ones the
Footswitch-2 gesture uses; the hooks reuse the existing PresetCapture/Apply
glue and run from the main loop via PumpMidi. Patch values are 7-bit to
stay under libDaisy's 128-byte inbound SysEx buffer.
What this changes
Patch dump/load + preset management over USB MIDI (
docs/MIDI_PROTOCOL.md§3-4).New SysEx commands let Propagator drive the on-device presets it previously couldn't see:
0x10/0x50dump the full live patch (device → editor, so a hardware tweak or a recallsyncs the UI),
0x11loads a patch, and0x20/0x21/0x22save / recall / list the threeQSPI slots of the active mode, with
0x52reporting slot occupancy + the active slot. AProgram Change is an alias for recall. The slots are the same ones the Footswitch-2 gesture
uses; the commands reuse the existing capture/apply glue. Patch values are 7-bit to stay
under libDaisy's 128-byte inbound SysEx buffer.
Checklist
src/config/params.hdocs/MIDI_PROTOCOL.mdand theparams::midimap