Files
ShoeGaze/Sources
josh 3e3f86b737 feat(karplus): collapse tuning UI to a Free/Pitched switch + one Root knob
Replace the four-control tuning surface (continuous Tune Hz knob + Tuning
selector + separate Note and Octave selectors) with a single Free/Pitched
switch and one chromatic Root selector that steps every semitone from E1
(MIDI 28) to E5 (MIDI 76), captioned by note name ("E1", "A3", "E5"). The
Root selector is shown only in Pitched mode; in Free mode the continuous
Tune Hz knob drives the root as before.

- Drop the `note`/`octave` @UIParams and `noteFrequency(pitchClass:octave:)`;
  add a `pitchedNote` @UIParam (MIDI note number, A3=57=220 Hz default) and
  `frequency(forMidiNote:)` / `caption(forMidiNote:)` helpers.
- Knob positions are unchanged (Tune always present), so positional presets
  stay aligned; only the trailing selector set varies by mode, with Voicing
  pinned at index 0.
- Document the switch-before-selector pass order in Pedal.applyState as
  contractual: a mode-dependent selector set (like this one) relies on it.

798 tests pass; lyrebird_external_review clean (no blocking findings).

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-11-24 17:29:15 -08:00
..