2.1.1: ignore MIDI CC on tempo-synced parameters
A CC bound to a pedal parameter locked to a note division is now ignored while synced — the value is tempo-derived and a CC write would be overwritten on the next tempo change. Index-stable: ccMappableControls is unchanged (persisted bindings resolve by position), and only the CC *write* is skipped. MIDIController.applyCC checks Pedal.isNodeTempoSynced(_:) (node-identity match against tempoSyncableParams) and skips the update; the binding stays intact and resumes control once set back to Free. Test: MIDIControllerCCTests.ccIsIgnoredWhileParameterIsTempoSynced. 455 tests pass. Docs: CHANGELOG.md, RELEASES.md, plan MIDI section updated to "implemented". Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
@@ -181,15 +181,17 @@ For each param that appears in `tempoSyncableParams`:
|
||||
- Gate the whole affordance on the `shoeGazeTempoEnabled` environment flag — when tempo is
|
||||
off, only the plain knob shows.
|
||||
|
||||
### MIDI — deferred
|
||||
### MIDI — implemented (inert while synced)
|
||||
|
||||
A synced param's value is derived, so a CC bound to it is overwritten on the next tempo/division
|
||||
change. The obvious fix — dropping `.division`-synced params from `ccMappableControls` — is
|
||||
**deferred**: that list is addressed by a *stable index* (persisted CC bindings resolve by position),
|
||||
so filtering it live would shift indices and silently re-point or break existing bindings. A correct
|
||||
implementation needs an index-stable exclusion (e.g. keep the slot but mark it inert while synced),
|
||||
which is out of scope for this change. Until then, binding a CC to a synced param is allowed but the
|
||||
tempo wins — documented here as a known limitation, not an oversight.
|
||||
A synced param's value is derived, so a CC bound to it would be overwritten on the next
|
||||
tempo/division change. Rather than drop `.division`-synced params from `ccMappableControls` —
|
||||
which is addressed by a *stable index* (persisted CC bindings resolve by position), so filtering it
|
||||
live would shift indices and break existing bindings — the exclusion is **index-stable**: the slot
|
||||
stays, and the CC *write* is skipped while the target parameter is division-synced.
|
||||
`MIDIController.applyCC` checks `Pedal.isNodeTempoSynced(_:)` (node-identity match against
|
||||
`tempoSyncableParams`) and ignores the incoming CC for a synced control; the binding stays intact and
|
||||
resumes control the moment the parameter is set back to Free. Learning/binding a CC to a synced
|
||||
param is still allowed — the tempo simply wins while synced.
|
||||
|
||||
## Testing
|
||||
|
||||
|
||||
Reference in New Issue
Block a user