Repository navigation
Closed
Description
Part of #2. Depends on #3 (device access).
The core feature: "hit each trigger to assign it to the drum sounds used in the song."
Flow:
- Resolve the distinct drum piece-ids actually used by the loaded song's active drum part, from the
drum_tabmessage'skit[](piece-ids arelib/drums.pyPIECESkeys —kick,snare,hh_closed, etc; see Drum chart consumption: drum_tab/drum_hits + multi-part support #6 for where this is read from). - Walk the user through each piece not yet mapped in the active kit profile, one at a time: "Hit your " (use
drum_tab.kit[].name, falling back to the title-cased piece-id). - Listen on all open MIDI inputs (via Device access via the core midi-input capability domain #3's handle); capture the first qualifying note-on as
{ note, channel, logicalSourceKey }; show a confirm/retry step (mirroringinput_setup's "✓ Got it" pattern) before advancing. - Store into the active kit profile (see Kit profile persistence via settings.server_files #5 for persistence) under the piece-id key.
- Allow remapping a single piece without redoing the whole kit.
Edge cases to handle:
- Same physical trigger captured for two different piece-ids (e.g. ambiguous pad) — warn and let the user choose which one keeps it, or allow an explicit one-trigger-to-many-pieces mapping if that's a real kit limitation (a cheap electronic kit may only have one cymbal pad covering crash+ride).
- No MIDI device connected /
midi-inputdomain unavailable — clear empty state, same tone asinput_setup's fail-soft panel, with a path to skip and map later. - A song references a piece-id with no mapping yet mid-playback — surfaced as "unmapped," not a crash (see Live hit matching / scoring engine #7's scoring behavior for unmapped pieces).
- Multiple devices contributing to one kit (kick pedal on device A, pads on device B) — the capture step must disambiguate by
logicalSourceKey, not assume a single source.
Acceptance:
- A fresh kit profile can be built end-to-end for a song with ≥5 distinct pieces using a single MIDI keyboard (velocity-sensitive keys standing in for pads) as a smoke test, since real e-kit hardware isn't available in CI.
- Remapping one piece doesn't require re-walking the whole wizard.
Metadata
Metadata
Assignees
Labels
No labels
Activity
pullfrog commentedon Oct 4, 2026
pullfrog commentedon Oct 6, 2026
Implemented kit-profile calibration wizard for
midi-drums:routes.pywith kit profile persistence (active_kit,kit_profiles) including validation, sanitization, and newGET/POST /api/plugins/midi-drums/kit-profilesendpoints. Settings persistence follows existing patterns (atomic writes, bounded bodies, lock-protected RMW).screen.html, wizard logic inscreen.jsto walk through required pieces from a loaded drum chart, capture MIDI hits tagged bylogicalSourceKey, confirm/retry, remap single pieces, and warn on ambiguous trigger mappings.assets/plugin.css. Python and JS syntax validated; changes committed and pushed.Changes are on branch
pullfrog/4-kit-profile-calibration-wizard(pushed to origin). However, the commit also exists onmainandorigin/mainare at the same commit, so there are no distinct commits to open a PR from the new branch against main.Task list (10/10 completed)
big-pickle(free) | 𝕏