Tier 2 of the rig-undo feature, on the same undo stack as the structural
(tier 1) edits. Records one undo checkpoint when the user finishes changing a
pedal control, so ⌘Z / the ↶ button step back through knob turns and switch
flips as well as add/remove/move.
- UndoEntry.parameter + PedalControlGroup (knob/advancedKnob/slider/switch/
selector); UndoCoordinator.recordParameterEdit + .parameter handling in
undo()/redo(). applyParameter re-resolves the LIVE node by (pedalID, group,
controlLabel) via ShoeGaze.pedal(id:), so an undo lands on the right control
even after an intervening structural rebuild replaced the pedal's node
(pedal ids persist through rebuild). old == new records nothing.
- Knobs record via Lyrebird 2.3.0's ParameterKnob.onEditingEnded (one edit per
drag): PedalView.recordingKnob (main / advanced / mix / level / looper) and
TempoSyncKnobView.
- Self-contained views (VerticalParameterSlider, PedalSwitchView,
PedalSelectorKnobView) record via a new \.pedalParameterEditRecorder
environment closure PedalView installs, capturing pedal.id + the coordinator.
Slider/selector snapshot node.value at drag start; switch records old→new on
the committing tap.
- rebuildsOnChange switches/selectors are deliberately NOT recorded (they alter
graph topology and would fight the structural restore's live-value merge) —
documented as a known gap, along with tempo-sync division changes.
- Bump the Lyrebird pin to 2.3.0 (the released tag with onEditingEnded), drop
the dev-time local path override.
Tests: 18 UndoCoordinator tests (knob/slider/switch/selector round-trips,
post-rebuild re-resolution, + a catalogue test asserting unique control labels
per group so the by-label resolution can't mis-target). Full suite 837 green;
both demo schemes build against 2.3.0. External review + caveman sweep: no
blocking findings.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Bump to Lyrebird 2.2.0 (both Package.resolved pins → 2.2.0 / 24ea32e) and cut
ShoeGaze 3.3.0. This release surfaces the upstream ramp-origin fix plus the two
local fixes already on main:
- Noise Gate respects its threshold after loading a rig: the gate's open level is
derived from the threshold, which previously swept up from a default on the first
audio block and tripped the gate on the transient (latching it open). Lyrebird
2.2.0 delivers a pre-first-render parameter value flat, so the gate reads its real
threshold from block one.
- Mono rigs output at unity (were ~3 dB down through a centre pan).
- Noise Gate detector Peak/RMS switch, defaulting to RMS.
NoiseGatePedal doc comment tidied (signal-chain diagram + detector parameter).
App build track: MARKETING_VERSION 3.3, CURRENT_PROJECT_VERSION 23.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Two thin app shells hosting ShoeGazeBuilderView:
- macOS (AppKit): seeds one board with an Overdrive; anchors the window
~100px from the left of the visible screen and sizes it to most of the
screen height via LyrebirdWindow.nsWindow.
- iOS (SwiftUI): NavigationStack hosting the builder; AVAudioSession +
iOSAudioDriver; logs session-activation failures.
Both .xcodeproj reference the local package (..) + the remote Lyrebird
package, with fresh hex object-id prefixes; added to ShoeGaze.xcworkspace.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>