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>
Lyrebird 2.0 moved `@UIParam` / `UIParamNode` out of `LyrebirdUI` into the
core `LyrebirdSynth` module (the `Lyrebird` product); `LyrebirdUI` no longer
re-exports them. Migrate:
- add `import LyrebirdSynth` to every file that uses `@UIParam`/`UIParamNode`
(the pedal controls, tempo-syncable params, and the SwiftUI views).
- Package.swift: the `LyrebirdShoeGazeUI` target now also depends on the
`Lyrebird` product (previously only `LyrebirdUI`), so `import LyrebirdSynth`
resolves there under explicit module maps.
- Package.resolved (SwiftPM + both Xcode projects) pinned to Lyrebird 2.0.0.
Also: app marketing/project version bumps, Xcode upgrade-check, and a
CHANGELOG wording tweak carried in the same working tree.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Bump the Lyrebird pin to 1.7.2 (brings the sample-rate-invariant TriodeStage
coupling fix — no more low-end thinning at 88.2/96 kHz — plus the new Mesa/Soldano
tone stacks and the GrayNoise clamp). Re-voice onto the accurate stacks:
- Cali Hi-Gain (Mesa Mark): .fender → .mesa.
- Boutique Lead (Soldano SLO): .marshall → .soldano.
Other amps unchanged (tweed = .fender = Bassman; Music Man Fender-derived).
Tone-stack-model test assertions + docs updated.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Bump Lyrebird to 1.7.1 (ProteusModelImporter) and add a neural amp-capture pedal.
- NeuralAmpPedal: loads a GuitarML Proteus/NeuralPi model (via ProteusModelImporter)
and runs it with LSTMAmp on the gain-trimmed input; passes through clean when no
model is loaded. Model files are user-supplied, not bundled (GuitarML = GPL-3.0).
- PedalState gains an optional `resourcePath` (backward-compatible, decodeIfPresent)
and Pedal a matching `resourcePath` property, wired through captureState/applyState
— so the loaded model file persists across rig save/load. The neural pedal reads it
at build() (applied on rebuild). This foundation also unblocks a future
custom-cabinet-IR path.
- Registered in PedalRegistry / PedalType / PedalCategory (.gain) / palette /
enclosure color; Help acknowledges the GuitarML model format.
Tests: no-model passthrough; loaded model transforms output & differs from
passthrough; gain affects modeled output; resourcePath round-trips through
PedalState; gain knob exposed; registry resolves "Neural Amp". Full suite 501.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Bump Lyrebird dependency to 1.7.0 and add a full white-box amp built on its new
amp-modeling core.
AmpPedal chain: preamp TriodeStage(drive: gain) → ToneStack(bass/mid/treble,
model) → gentle power-amp TriodeStage → speaker-cabinet ConvolutionReverb. The
tone-stack model (Fender/Marshall/Vox) and cabinet voice are each built per
option and picked live with Select, so both round-trip through the rig save
format. Fully wet (Level is master; Mix hidden).
Controls: Gain, Bass, Mid, Treble knobs + Amp / Cab selectors. Registered in
PedalRegistry / PedalType / PedalCategory (.gain) / palette / enclosure color;
Help acknowledgments cite the Yeh & Smith tone-stack model.
Tests: builds/non-silent/finite; gain, tone, amp-model, and cab all change the
output; controls exposed; amp/cab selections round-trip through PedalState;
registry resolves "Amp". Full suite 494.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Consume Lyrebird 1.6.4, which decouples LookAheadLimiter's release time from
its look-ahead window.
- LimiterPedal: add a Release knob (0.01–0.5 s) wired to the new
LookAheadLimiter.releaseTime. A too-fast release modulated the gain within a
low-frequency cycle and distorted sustained notes when driven hard.
- CompressorPedal: add an opt-in Safety switch (off by default) that inserts a
brick-wall LookAheadLimiter after the compressor to catch transient overshoot
that could clip the output. Built as both branches with Select picking live;
engaging it adds the limiter's short look-ahead delay.
Tests cover the new knob/switch exposure, release-time effect, and that the
safety limiter caps peaks.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Picks up the bus-rate guard (Out/In/ReplaceOut constructors trap a cross-rate
bus), and raises the floor accordingly. 465 tests pass against 1.2.4.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Extend the looper into a double-width tempo-aware pedal:
- Beat-quantized transport: record start and loop close both snap to the
next beat via a LyrebirdRoutine waiting on the shared clock; loop length
is an exact whole-beat span. Falls back to immediate/unquantized when no
clock is present.
- Loop-length read-outs (frames/seconds/beats), transport state, and a
sample-clock-derived play-head position for the UI timeline.
- Overdub undo (pre-dub snapshot + restore), reverse playback (live rate
flip), and feedback-decay overdub (overdub preLevel via a Feedback knob).
- Inject the shared LyrebirdClock + SynthesisEngine into Pedal via
PedalBoard/ChainRouter so tempo-aware pedals can reach them.
- New double-width LooperTimelineView (state badge, length read-out,
sweeping play-head) wired into PedalView via Pedal.widthUnits.
Concurrency hardening from RT-safety review: a transportGeneration counter
drops superseded deferred beat/undo callbacks that LyrebirdRoutine.stop()
cannot recall once enqueued; the undo restore is deferred past the RT
overdub gate-close; transport routines use non-blocking stop().
Note: this commit also snapshots pre-existing uncommitted work-in-progress
already in the tree (MIDI control refactor, Tuner, Tempo, preset changes),
which is interleaved with the looper changes through shared files and could
not be split into a separately-building commit.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Two envelope filters and two delays, registered in PedalRegistry and
showcased on demo Board 3.
- Mu-Tron: wraps the MuTronIII generator; three parallel LP/BP/HP
instances switched live by a Select on the mode knob so filter state
stays warmed across mode changes. Knobs: Mode, Sensitivity, Resonance.
- Auto-Wah: explicit amplitude-tracking chain — AmplitudeFollower scaled
by sensitivity, clamped, mapped through LinExp to a swept SVF bandpass.
Knobs: Sensitivity, Resonance, Range.
- Feedback Delay: DelayLineFeedback (cubic) into an RBJ lowpass for a
darker, tape-style multi-repeat echo. Knobs: Time, Feedback, Tone.
- Multi-Tap Delay: three non-feedback DelayLine taps summed, per-tap
volume folded into each tap's mul. Six knobs in two rows of three.
Bumps the Lyrebird dependency to 1.2.0 for the MuTronIII/SVF generators.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>