feat: add unbind command (note 63) to reset bind_channel to 0

Co-authored-by: aider (deepseek/deepseek-reasoner) <aider@aider.chat>
This commit is contained in:
Loic Coenen
2026-05-09 11:14:52 +00:00
parent ac9ce26e9a
commit 60a8bdcfe8
3 changed files with 140 additions and 2 deletions

View File

@@ -24,12 +24,13 @@ The control key is released either by sending noteoff (note64 or any note)
| 61 | **Remove** the highestnumbered active channel (excluding channel0). |
| 62 | **Toggle** the current bound channel through its state machine: |
| | IDLE → RECORD → LOOPING → PAUSED → LOOPING → … (each press advances one step). |
| 63 | **Unbind** reset the bound channel back to **0**. |
> **Notes:**
> - The default bound channel is **0**. If you never send a bind command, `control+62` controls channel0.
> - To bind a different channel, send `control + note <16>` (e.g., control + note5 binds channel5).
> - Bind is sticky it stays until overwritten by another bind command.
> - There is **no unbind** command; you can rebind to channel0 if needed.
> - To **unbind** (reset to channel0), send `control + note63`.
## Direct Mapping (without control key)