Commit Graph

4 Commits

Author SHA1 Message Date
josh 10a6e122bf feat(midi): MIDI-mappable primary transport footswitch (Capture / Freeze)
Expose a pedal's primary transport footswitch — TunedVerb's Capture, FreezVerb's
Freeze — as a MIDI-mappable action, so a footswitch (Program Change) can trigger
it. Previously only per-pedal Bypass and the looper's transport were mappable.

- New `MIDITransportPedal` protocol (@MainActor): `midiTransportName` + a
  `toggleMIDITransport()` that presses the pedal's primary footswitch. TunedVerb
  (Capture) and FreezVerb (Freeze) conform.
- `MIDIMap.PedalActionKind.pedalPrimaryTransport`, dispatched by MIDIController to
  `toggleMIDITransport()`. Learn / persist / resolve-by-id ride the existing
  pedalAction path (same as the looper actions).
- The mapping sheet lists the action for any `MIDITransportPedal`
  ("Board 2 · TunedVerb · Capture"); the per-pedal control-mapping strip shows a
  badge for it. A future press-to-trigger pedal just conforms and appears.

Tests: conformance + a Program-Change round-trip toggling Capture on/off. Full
suite 846 green; both demos build.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-11-25 20:11:07 -08:00
josh 4c09825c2e rename(reverb): Freeze → FreezVerb, and FreezVerb → TunedVerb
Shuffle the two new reverbs' display names:
- the spectral snapshot/hold pedal (was "Freeze") becomes "FreezVerb"
  (FreezePedal → FreezVerbPedal); its Freeze footswitch keeps its label.
- the filter-from-the-current-moment pedal (was "FreezVerb") becomes
  "TunedVerb" (FreezVerbPedal → TunedVerbPedal).

Renames the types, registry keys, category entries, classes, files and tests,
and updates the cross-reference between them. Behaviour unchanged.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-11-24 20:55:45 -08:00
josh b1e59d2c03 rename(reverb): Freeze Reverb → Freeze
Shorten the pedal's display name to just "Freeze". Renames the type, registry
key, category entry, class (FreezeReverbPedal → FreezePedal) and its files/tests,
and updates the FreezVerb doc cross-reference. Behaviour unchanged.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-11-24 20:07:11 -08:00
josh 0873bbd82e feat(reverb): add FreezVerb — filter-from-the-current-moment into a stereo room
A spectral reverb ported from the composer's FilterFromCurrentMoment process.
Press Capture and the spectrum playing at that instant is locked in as a fixed
filter; everything you play afterwards is masked through that frozen spectral
shape and poured into a large reverb. The name plays on the FreeVerb tank at
its core.

- A side-chain SpectralChain (analyze-only) of the dry drives a SpectralCrossMap
  (maxMagnitude, mode 1.0) as a `.dual` stage on a main chain over the dry. While
  live the mask tracks the input; the Capture footswitch sets crossMap.freeze, so
  the captured moment becomes a fixed formant filter on the ongoing signal.
- The masked result feeds a GVerb room (fixed 120 m, as in the original), with a
  Time knob (T60, tempo-syncable) and a Damp knob shaping the tail.
- Mono in, stereo out (channelKind .widener): the reverb is summed to mono and
  placed across the field by a Pan knob (Pan2), replacing the original's
  ambisonic encoding. The time-stretched random-pointer source is dropped — the
  filter is captured straight off the live input by the footswitch.
- `captured` is transport state (a Capture button indicator) and is not
  serialized into presets.

Wired at all four points (+ README catalog). 818 tests pass;
lyrebird_external_review clean (no blocking findings).

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-11-24 20:02:13 -08:00