The Boards & Rigs help section covered boards but not the pre/post-board
chains. Add bullets: pre-board processes the input once before the split and
feeds every board (shared tuner/comp/gate); post-board runs after the boards
are mixed (global reverb/limiter/EQ); both hide when empty; and the whole
pre/board/post path scrolls together while each board scrolls sideways.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
The board canvas used to fill the remaining height and centre itself, pinning
the pre-board strip above and the post-board strip below — so a tall pre/post
chain clipped instead of scrolling, and the three sections never read as one
signal path. Wrap pre-board → board → post-board in a single vertical
ScrollView so the whole path scrolls top-to-bottom as one page, on macOS and
iOS alike. The transport / palette / routing header stays fixed above it.
BoardFlowView gains a `sizesToContent` mode: it sizes to its chain height and
scrolls only horizontally, so it nests inside the outer vertical scroller with
no competing vertical scroll (a tall parallel split simply grows the page).
The default fill-and-centre behaviour is unchanged for any other caller.
Verified on the iPad simulator: sections stack in signal-flow order and the
board still scrolls horizontally through a long chain.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Add a dedicated linear stereo post-board chain that processes the summed
board mix once, after the board split, before the hardware output — for
global reverb, a bus limiter, a final EQ, and the like.
Routing: when a post-chain exists, every BoardOutputMaster writes a shared
stereo mix bus (parameterized output bus indices) instead of hardware; the
post-chain (PostChain + PostChainOutput) reads that mix, runs its pedals in
order, and copies the tail to the hardware outputs. Always stereo-headed
(dual-mono for a mono rig) so mono pedals auto-stereoize per channel.
The chain's head node is inserted at .tail(of: mainGroup), so it evaluates
after every board master regardless of board add order — no re-order on
board add, and no board dropped from the mix. buildPostChain tracks the
chain before wiring it so a mid-build throw stays reclaimable by teardown.
State: additive ShoeGazeState.postChain (nil-when-empty, decodeIfPresent,
byte-identical old-rig round-trip). Edit API (append/insert/remove/move)
mirrors the pre-board chain: capture-from-live, stop/teardown/rebuild. Undo
treats a post-topology change as a full rebuild via id-sequence compare.
UI: a hide-when-empty post-board strip below the boards, symmetric to the
pre-board strip, with palette routing and per-pedal remove through undo.
Bumps the iOS demo's Lyrebird pin to 2.3.0 (onEditingEnded).
Tests: PostBoardChainTests (render, closed-volume silences output,
post-chain-after-every-master ordering, board-add ordering, insert/move/
remove, save/load round-trip with knob, old-rig decode) + post-pedal undo.
855 tests pass. Reviewed (RT-safety + line sweep); the ordering bug both
reviewers caught is fixed at the root and covered by a deterministic test.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
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>
Add a pre-board stage: one linear pedal chain that processes the input once,
before the board split, and feeds every board — for front-of-chain gates /
drive / EQ, and multi-board "voice spray" rigs (one source → N panned boards →
Blend).
Routing: a stable mono feed bus every board taps. `FeedPassThrough` copies the
input source — or, when a pre-chain exists, that chain's mono output — onto the
feed bus (`ensureFeed`/`buildFeed`/`tearDownFeed`). The pre-chain is modeled as
an unfinalized `PedalBoard` fed from the source; a stereo tail folds to mono
(board heads are mono). Empty pre-chain = passthrough, byte-for-byte
behavior-preserving. addBoard taps the feed bus; teardown releases it
remove-before-release.
State: additive `ShoeGazeState.preChain` (`decodeIfPresent` → nil for old rigs,
no format bump; `hasSameRigContent` includes it). `captureState` reads the LIVE
pre-pedals so knob tweaks are saved; `rebuildAllBoards` sets the pre-chain
before building boards.
Edit API: appendPrePedal / insertPrePedal / removePrePedal / movePrePedal —
each folds in live knob values, then a full ordering-safe rig rebuild
(`setPreBoardChain`, mirrors setInputSource; rolls back on failure). Undo: a
pre-chain topology change (compared by id sequence, so knob-only edits stay on
the surgical path) rebuilds from the snapshot, stopping/starting the engine.
`allPedals()` now includes the pre-chain so pre-pedal knob undo resolves.
UI: an inline pre-board strip above the boards — hidden to a "+ Pre" button when
empty; otherwise the pre-pedals (keyed by stable id) with a per-pedal remove and
a "feeds all boards" divider. Palette adds route to the pre-board via a flag
(reset on any dismissal). Add / remove go through the undo wrapper.
Known scope: a pre-board edit resets transient/looper state (full rebuild, like
input-switch — setup-time); chain-router branches read the input directly and
are not fed by the pre-board. Both documented.
Tests: PreBoardChainTests (feeds boards, closed pre-Volume silences every board,
remove restores direct feed, save/load incl. a knob tweak, prior pre-pedal's
knob survives adding another, old-rig decode) + a pre-board undo test. Full
suite 844 green; both demos build. External review + caveman sweep: one blocking
(live knob sync) fixed + regression-tested, all non-blocking addressed.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
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>
Add UndoCoordinator: 50-deep undo/redo of structural edits (add/insert/
remove/move pedals in any lane, stereo-split/parallel/merge/unzip routing,
add/remove/move boards, Clear Board). Each edit records a named checkpoint
via a perform(label:) wrapper threaded through the builder, board-flow,
board-bar, and boards-sheet views (injected through the SwiftUI environment,
re-injected onto the boards sheet).
Restore is surgical, not a whole-rig reload: it reconciles board-by-board
(remove added / re-add removed / rebuild changed / reorder) using the same
per-board rebuild path as an ordinary edit, so undo never tears the rig down
— recording, looper buffers, other boards' reverb/delay tails, and
bypass/solo state all survive. It also merges live parameter values by pedal
id, so undoing a topology edit never reverts a knob turned afterwards; a
pedal the edit removed returns with its snapshot values. No-op edits record
nothing (compared via hasSameRigContent). History clears on rig load / new /
switch.
UI: macOS Edit menu (Undo ⌘Z / Redo ⇧⌘Z with dynamic "Undo <action>" titles,
deferring to a text field's own editor while typing); iOS visible ↶/↷ buttons
+ ⌘Z/⇧⌘Z. Rig mute moves from ⌘Z to ⌘M. Help text updated.
Fix: every pedal edit rebuilt the board via BoardState(label:segments:)
without id:, regenerating the board UUID and breaking MIDI board bindings
after any edit. Thread id: board.id through all 10 rebuild sites; add
editingPreservesBoardIdentity regression test.
Tests: 12 UndoCoordinator tests (restore correctness, param preservation,
untouched-board identity, multi-board re-add, depth cap, no-op, throwing
action). Full suite 830 green; both demo schemes build (macOS + iPad).
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
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>
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>
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>
A new reverb pedal that captures the sound at the instant you press Freeze and
holds it as an endless, smoothly-sustaining pad while you keep playing over it.
- Phase-vocoder SpectralFreeze (inside a SpectralChain) locks the magnitude
spectrum of the moment and keeps each partial rotating at its own frequency,
so the held chord is natural and glassy rather than a looped ring or a
metallic feedback tank.
- The frozen spectrum is wrapped in a FreeVerb tank (summed to mono) for a
diffuse, blooming space — the "reverb" half — then gated by a Lag ramp so the
freeze blooms in and releases out over the Rise knob.
- The dry signal always passes through undelayed; the wash is layered on top
(Mix hidden, base mix fully wet). The SpectralChain's FFT latency sits only on
the gated wet path, and a frozen spectrum is uncorrelated with the moved-on
dry, so there is no comb filtering.
- Latching Freeze footswitch (LED). On release the gate fades the held pad out
and the return-to-live analysis is deferred until the fade completes (guarded
by a generation token), so the fade is of the snapshot, not a live delayed
copy that would comb against the dry.
- `frozen` is transport state (an @UIParam button indicator, like the Looper's
isPlaying) and is not serialized into presets.
Wired at all four points (+ README catalog). 808 tests pass;
lyrebird_external_review clean (no blocking findings).
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
In Pitched mode the generic stack showed a redundant Tune Hz knob beside the
Root note selector, and stranded Sensitivity on its own row. Give the pedal a
custom layout (as the looper has one):
- Top row: the root control, then Sustain and Tone. The root slot is the
continuous Tune Hz knob in Free mode and the stepped Root note selector in
Pitched mode — one slot, reused, so Pitched no longer shows a dead Tune knob.
- The Free / Pitched switch sits directly beneath the top row.
- Voicing and Sensitivity share the next row.
- Standard Level · Bypass · Mix footer.
View-only: the pedal still publishes Tune as a stable effect knob, so positional
presets round-trip exactly as before.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Three new pedals, each wired at all four points (PedalType, PedalRegistry,
PedalCategory, README) and covered by a dedicated test suite.
Karplus Resonator (texture): a bank of four tuned KarplusStrong strings
plucked by an amplitude-envelope → Schmitt-trigger gate off the note onset,
ringing sympathetically in the tail. Tune / Sustain / Tone / Sensitivity
knobs plus a Voicing selector (Drone / Octaves / Shimmer). Bank summed at
1/stringCount so a full-scale pluck stays at or below unity.
Tape Looper (texture): a simple single-track looper (RecordBuffer /
PlayBuffer) with record / overdub / play and the two classic tape tricks —
half-speed (octave down) and reverse — as live playback-rate controls.
Overdub is gated to forward-normal speed both at engage time and in the
graph, so flipping Reverse/Half-Speed mid-overdub can't misalign layers.
DL4 (delay): an umbrella multi-model delay with a Model selector dispatching
to eight per-model builders — Tube, Tape, Analog, Analog Mod, Multi-Head,
Sweep, Lo-Res, Reverse — over shared Time / Repeats / Tone / Mod controls,
Time tempo-syncable. Multi-Head tap sum gain-staged to 1.0.
Passed /lyrebird_external_review (RT-safety + caveman sweep); all blocking
findings fixed. Full suite 791 tests green.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Add ScriptPhaserPedal, modeled on the classic one-knob four-stage orange
phaser. A single Speed knob sweeps a fixed four-stage all-pass cascade
(Phaser.Audio with stages: 4), and a Voicing two-state switch picks
Script (smoother, lower feedback) or Block (more resonant, higher
feedback). The voicing maps to the feedback amount through a live linear
expression — no rebuild, since feedback is a live Phaser parameter — and
a short Lag glides the coefficient so a Script↔Block toggle doesn't step
audibly. Distinct from the general-purpose Phaser (six stages, with rate
and feedback knobs).
Named to avoid the trademark (per the amp convention) and the bare
"Phase <n>" the code-style rule bans. Wire into PedalType, the registry,
and the modulation category; add to the README modulation catalog.
8 tests: voicing and speed each change the output by a magnitude (RMS
difference), determinism (bit-identical, no RNG), a click-free bypass
flip at the 512-sample block, knob/switch exposure, preset round-trip,
registry presence.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Add GranularReverbPedal: a diffuse, blooming wash built from an
InputGrain cloud — short grains sprayed from a rolling capture at a
chosen density, each smeared in time and given a random pitch offset
(scatter) around a center pitch — then reverberated through a GVerb tank,
folded stereo→mono. Deliberately unlike Shimmer Reverb: an incoherent
random-scatter grain cloud, not a tuned coherent feedback octave tail.
At pitch 0 / scatter 0 it tracks the input's pitch; raising scatter
smears it into a broadband haze.
The cloud is power-normalized by sqrt(grain overlap = density·grain), so
turning density up thickens the texture at a roughly constant level and
the peak stays bounded below clipping even at max overlap with correlated
grains (no downstream limiter). Scatter is scaled by the center ratio so
the per-grain spread stays proportional and a down-shifted cloud never
reaches a negative (reverse) ratio.
Knobs: Decay/Damp (GVerb tail), Density, Grain (duration), Pitch
(semitones), Scatter (the defining control). Wire into PedalType, the
registry, and the reverb category; add to the README reverb catalog.
10 tests: scatter smears pitch (normalized-autocorrelation tonalness),
density normalization bounds the peak at the worst overlap corner (decay
12 s, near-full-scale input), density changes texture, tail persistence,
determinism, a click-free bypass flip at the 512-sample block, knob
labels, preset round-trip, registry presence.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Add ReverseReverbPedal: the "sucked-in" pre-verb of ambient/shoegaze
records. The dry signal runs through the existing segmented ReverseDelay
generator — notes are captured in fixed segments and played back
reversed, so a decay becomes a swell rising into the note — then feeds a
GVerb room tank, folded stereo→mono, so the backwards swell arrives
wrapped in a diffuse wash. Distinct from the plain Reverse Delay (no
reverb) and a forward Room Reverb (energy follows the note instead of
swelling up to it).
Knobs: Time (reverse segment length / swell pre-delay, tempo-syncable),
Decay/Size/Damp (GVerb tail). GVerb dry/tail/early levels kept modest for
output headroom, and early reflections trimmed since they fire forward,
against the backwards character. Latency is one segment.
Wire into PedalType, the registry, and the reverb category; add to the
README reverb catalog. 9 tests: pre-delay (energy arrives after one
segment), a rising-swell-shape assertion across the reversed segment,
reverb tail persistence, determinism, a click-free bypass flip at the
512-sample block, knob labels, preset round-trip, registry presence.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Add PolyOctavePedal: a fixed-interval polyphonic octave generator. Four
PitchShift voices at exact power-of-two ratios — −2, −1, +1, +2 octaves,
each single-stage within PitchShift's [0.25, 4.0] clamp — stacked under a
dry voice, each with its own level. Because the ratios need no pitch
tracking, chords stack as cleanly as single notes.
A Tone low-pass shapes the shifted voices (dry stays clean). An Attack
knob adds the POG's volume swell via a "slow-gear" gain: the ratio of a
slow envelope follower to a fast one, clamped to [0, 1] and guarded
against divide-by-zero — unity (instant) at Attack 0, blooming in as it
rises, independent of playing level. The five voice levels sum without an
internal limiter (as with BassOctaver); the level knob and board master
set final gain.
Wire into PedalType, the registry, and the pitch category; add to the
README pitch catalog. 12 tests: per-voice pitch (±1/±2 oct + unison) by
autocorrelation, swell neutral-vs-bloom, seeded determinism, a click-free
bypass flip at the real 512-sample block, knob labels, preset round-trip,
registry presence.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Add WhammyPedal: a rocking expression pedal (position, heel 0 → toe 1)
that sweeps pitch between two endpoints set by the selected mode, in the
three families the hardware groups — Whammy (wet-only pitch bend),
Harmony (dry note + morphing bent voice), and Detune (dry + near-unison
beating voice).
Each voice is a PitchShift SOLA stage; the three-octave Dive Bomb
cascades two stages (each -18 st) to clear a single stage's ±2-octave
ratio clamp. Harmony/Detune legs are attenuated 0.5 so the summed
dry+shifted output stays within the input peak. A fixed PRNG seed per
stage makes a given setting render identically (reproducible audio and
exact-pitch tests), with a distinct stage-2 seed so the cascade's grain
dispersion decorrelates.
Wire it into PedalType, the registry, and the pitch category; add it to
the README pitch catalog. Tests cover pitch at heel/toe, the Dive Bomb
cascade, harmony dry presence, seeded determinism, preset round-trip,
mode rebuild, registry presence, and a click-free bypass flip at the
real 512-sample block (guarding the audio-rate bypass fix).
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>
External-review findings for 3.1.0:
- A starter rig can no longer be overwritten in place. Saving over a loaded
starter previously stored the edited content under the rig's fixed factory
id, so the next starter-catalog update (or Restore Starter Rigs) would
silently revert it to the shipped version. The confirmation now offers only
Save as New Rig / Cancel — a starter is managed content, and the player's
changes are kept as their own rig (a new id) instead.
- restoreStarterRigs advances the seed-version marker only on success, matching
start(), so a failed manual restore no longer suppresses the next launch's
automatic catch-up seed.
- CHANGELOG: correct the starter-rig count (18, not 19).
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
- CHANGELOG: add the 3.1.0 entry (starter rigs, Mine/Starters sidebar, Vibe
and Sustain Fuzz pedals, Mutant Range/Sweep/Attack/Release, input-preserved
rig switching, shimmer defaults, overwrite guard, router persistence).
- README: correct the pedal count (36 -> 67, incl. 26 amp models), add the
Amp Model and Cabinet catalog rows and the new pedals, add a Starter Rigs
feature, and bump the Lyrebird requirement to 1.7.0+.
- Help: add a "Starter Rigs" topic and note that switching rigs keeps the
current input.
- Bump the iOS app MARKETING_VERSION to 3.1.0 to match macOS.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Switching between starter rigs prompted "save changes?" even when nothing
was edited. The unsaved-changes check compared full ShoeGazeState snapshots
(`captureState() != entry.state`), which include the live input source and
engine channel counts — and those legitimately differ from a factory rig's
saved values now that a rig switch preserves the player's current input
instead of adopting the rig's saved one.
Add ShoeGazeState.hasSameRigContent(as:) comparing only rig content (boards,
routers, MIDI map, tempo) and use it for the dirty check, so session/engine
settings no longer register as unsaved changes. Test added.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
- Seeding now (re)installs every starter by stable id, so a corrected rig
definition replaces the stale copy already in a library (save upserts by
id, keeping its position) — user rigs untouched. Bumped seedVersion to 2
so existing libraries pick up the two-board Garcia rig (the old router
version showed "No board at index 0" because the builder UI renders boards,
not routers, and the stale entry was never refreshed). "Restore Starter
Rigs" likewise refreshes all starters, not just missing ones.
- The Mine/Starters toggle now opens on the group containing the currently
loaded rig (Starters when a factory rig like Garcia is active, else Mine),
and follows the selection when the current rig changes.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
- Center the Mine/Starters toggle in the sidebar column.
- Garcia rig: build it as two plain boards (effects + clean) selected via
the multi-board Solo/Blend control, instead of a ChainRouter — the builder
UI renders boards, not routers, so the router version showed empty boards.
- Dreampop Chorus Cathedral: lower shimmer decay/feedback and delay feedback
so the octave-up regeneration no longer screeches into runaway feedback.
- Preserve the current input across rig switches: loadRig gains a
keepingCurrentInput flag (default false → file open / launch restore still
apply the rig's saved input; RigStore session-restore continuity intact),
and the rig-switch path (loadEntry) passes true so a live guitar isn't
snapped back to the test tone when changing rigs. Tests updated to cover
both directions.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
The factory-overwrite confirmation dialog pushed ShoeGazeBuilderView's
already-large presentation modifier chain past the Swift expression
type-checker's budget — it compiled under `swift build` but failed the
Xcode app build with "unable to type-check this expression in reasonable
time". Extract the first half of the chain into a `chromeWithPrompts`
computed property so each half type-checks quickly.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Two fixes so shipped starter rigs are actually reachable:
- Seeding no longer requires an empty library. On launch it installs any
factory rigs whose stable ids are missing, once per FactoryRigLibrary
.seedVersion (a per-device UserDefaults marker). Existing users therefore
receive the starters on their next launch; a starter the user later
deletes stays deleted (the marker has advanced); bumping seedVersion when
new starters ship re-runs catch-up for just the new ones. Idempotent by id,
so iCloud-synced devices never duplicate.
- Sidebar gains a segmented Mine / Starters toggle. "Mine" is the flat,
reorderable user list; "Starters" groups the shipped rigs by category. A
"Restore Starter Rigs" action (Starters empty-state button + library menu)
re-installs missing starters on demand via RigLibraryBootstrap.restoreStarterRigs.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
The rig-library sidebar now presents shipped starter rigs under their
FactoryRigCategory headers (Shoegaze Walls, Dreampop, Classic, Ambient,
Experimental) in fixed catalog order, with the user's own rigs under a
"My Rigs" header. Starter rows show a "Starter rig" subtitle and are not
reorderable; user rows keep drag-to-reorder and Move Up/Down (now scoped to
the user's own rigs). Grouping is presentational, so it stays correct
regardless of underlying library order.
Adds FactoryRigLibrary.category(for:) and rigs(in:) with tests.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
- Recall router state in applyState: the lightweight (no-rebuild) recall path
now positionally applies router branch pedal params and the splitter/merger
blend, instead of silently dropping them for routed rigs. Test added.
- Simplify first-run seeding: RigLibraryStore.save persists asynchronously
(best-effort, logged not thrown), so the previous per-entry rollback could
never fire for a real disk failure. Replaced with an honest best-effort
save + working-rig fallback, and a comment stating the semantics.
- Move FactoryRigBuild to its own file (one public type per file).
- Document that a router's output master gain is intentionally not persisted,
matching BoardState's treatment of board master gain.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
New "Sustain Fuzz": a mid-scooped, high-sustain fuzz distinct from the
single-stage Fuzz. Two cascaded soft-clip (softClipNormalized) stages
compress and stack harmonics for smooth violin-like sustain; a fixed
midrange scoop (RBJPeakingEQ cut at 750 Hz) hollows the mids; a tone
low-pass sets the top end. Sustain/Tone/Scoop knobs. Composed in effect(),
no new RT generator.
Registered in PedalType/PedalRegistry, enclosure colour, palette order.
Tests cover build+non-silent, each knob changing output, knob listing,
preset round-trip.
Adds two factory rigs: Comfortably Numb Lead and Doom Riff Wall.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
New "Vibe" pedal: a photocell-style vibe built as four staggered all-pass
stages swept by one shared sine LFO (unequal centre frequencies give the
uneven, vocal throb that distinguishes a vibe from a phaser). Speed and
Intensity knobs, Chorus/Vibrato mode switch (chorus blends dry+swept,
vibrato passes swept only). Composed from RBJAllPass in effect(), mirroring
PhaserPedal — no new RT generator.
Registered in PedalType/PedalRegistry, enclosure colour, and palette order.
Tests cover build+non-silent, each control measurably changing output, the
knob/switch listing, and preset round-trip.
Adds the Psychedelic Vibe Lead factory rig (Fuzz -> Vibe -> Delay -> Plate).
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Saving over a currently-loaded factory rig now shows a confirmation dialog
instead of silently replacing the shipped original: Overwrite (destructive),
Save as New Rig… (new id, keeps the original), or Cancel. The pending
follow-up (e.g. the Save & Clear clear step) is threaded through all three
paths.
Adds FactoryRigLibrary.factoryIDs / isFactory(_:) so the UI can tell a
shipped rig from a user rig by id, with a test.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Add a factory rig library: 8 curated starter pedalboard rigs seeded into
an empty rig library on first launch. Rigs are compile-checked builders
(construct concrete pedals, set typed @UIParam values, board.add) rather
than hand-written JSON, so a renamed pedal control is a build error, not a
silently corrupted preset.
Seeding builds each rig in a throwaway offline (never-started) engine,
captures a RigEntry with a stable per-rig UUID (idempotent re-seed), and
saves to the store. Bootstrap rolls back this run's saves if any store.save
fails, so a partial library can't freeze future seeding (gated on isEmpty).
Rigs are named/described by sound, not trademarked products or artists; a
test guards against brand names leaking into names/blurbs. Full ship-path
test loads and renders every rig to non-silent output.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Two new in-app Help topics for the 3.0 amp features:
- Amp Models: picking an amp, the 1–11 Gain taper, Master (power-amp drive)
vs Level (clean trim), analog soft-limiting, and the advanced pop-over
(Sag / Bias / Bias X) reached via the top-right sliders button.
- Cabinets & Microphones: an amp's built-in cab vs a standalone Cabinet
pedal ("None (direct)" + a Cabinet after the amp), cab/mic voicing, and
the mic-placement + dual-mic pop-over (Position / Proximity / Mic B /
Blend / Offset). Notes the models are original DSP, not captures.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Follow-up cleanup now that card width is content-derived. Redefine widthUnits
as the card's base width in knob columns (1 = 3-wide, 2 = 4-wide) — both the
knob-grid column count and the card's minimum width — with selector/switch rows
able to push wider. Values above 2 no longer do anything.
- Delete the now-misleading widthUnits 3/4 overrides on 11 amps; they inherit
AmpVoicePedal's 2 (all full-surface amps → the same tight 4-wide card).
- Remove Mutant's redundant override (2 knobs + 2 switches → 3-wide either way).
- Cabinet: keep widthUnits 2 so it's 4-wide like the amps — its Cab/Mic/Mic B
selector captions (voice names) need the room to stay readable (per request).
- Looper keeps widthUnits 3 (the one pedal still using the flat multiple for its
bespoke timeline/knobs/transport layout).
- Refresh the widthUnits docs (base + AmpVoicePedal + Cabinet); update the amp
tests' widthUnits assertions (3/4 → 2; Looper stays 3).
675 tests pass; no visual change to the amps, Cabinet now matches their width.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Cards were `220 × widthUnits` wide, so control-sparse multi-unit pedals sat
mostly empty (a 3-unit amp was 660px for a 4-knob row needing ~270; the
2-unit Cabinet was 440 for three selectors). Size the enclosure to its widest
actual row instead — knob grid (columns capped by widthUnits), inline
selectors, or switches — floored at the 3-slot Level·Bypass·Mix footer, and
still widened for a vertical-fader bank. New: Cabinet 440→252, Bluesbreaker
660→330, Boutique/Dual 880→330; 1-unit pedals ~252.
widthUnits now only sets the knob-column cap (≥2 packs 4 across), not raw
width, so all 4-knob amps land at the same tight width regardless of their
3/4 unit value. The looper keeps the flat multiple — its bespoke three-column
timeline/knobs/transport layout genuinely needs the wide card.
675 tests pass (view geometry; no logic change).
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
The Cabinet got its own category (row 1, effects) in the last change; move it
to the second row so the rig-structure blocks read left-to-right as
Routing | Cabinet | Amp Model. Split a cabinetGroup out of effectGroups and
render it between the Routing cards and the amp group in the horizontal picker.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
- Add a dedicated PedalCategory.cabinet (tweed tan), placed right after
Amp Model, and remap the Cabinet pedal to it (was buried in EQ & Filter).
Move "Cabinet" in the palette preferredOrder to just after the amps.
- CabinetPedal is now double-width (widthUnits 2): three selectors
(Cab / Mic / Mic B) crowded at single width, clipping the leading Cab
caption and overlapping dials (a drag near the Mic/Mic B boundary could
land on the neighbor's gesture — the "moving Mic moved Mic B" report).
- Harden the selector-row ForEach: key by the (unique-per-pedal) selector
label instead of the array offset, so each selector keeps a stable SwiftUI
identity across board rebuilds and can't inherit a sibling's drag state.
669 tests pass.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Phase 14a of cabinet mic modeling.
- MicVoice (No Mic / Dynamic / Ribbon / Condenser): broad-strokes synthesized
mic curves (our own MIT content, not captures) as CabIRStage biquad specs
(presence bump, low/high shelving) that CabinetIRFactory appends to the cab
cascade before baking — folded into the SAME single convolution IR, so mic
choice costs nothing at render time. MicVoice.off appends nothing → the IR
is byte-identical to the raw cab voice (backward compatible).
- CabinetIRFactory.makeIR gains a `mic:` param (default .off) + RBJ low/high
shelf offline biquads.
- CabinetPedal: Mic selector (rebuildsOnChange, append-only 2nd selector so
old presets still load with mic defaulting to off) + a tanh soft-limit →
Clip(±1) output stage, so a decoupled amp → cabinet chain can't clip the
DAC (a speaker cab is analog; clean signals pass at ~unit gain).
- Help acknowledgment notes the mic voicings are synthesized, not captures.
Tests: No-Mic IR byte-identical to raw cab; dynamic lifts presence, ribbon
darkens top, condenser adds air (peak-normalization-invariant tilt ratios);
mic changes output, round-trips; output stays within ±1 across cab×mic. 659
tests pass.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Addresses two blocking findings from the external review, both legacy
preset-compat (no RT/protocol issues were found):
- Rename compat: "Fullerton Princeton" → display "Fullerton Ivy League"
would silently drop the pedal from any rig saved under the old name
(displayName is the serialization key). Add PedalRegistry.legacyTypeAliases
resolved in makePedal (self-healing: loads, then re-saves under the new
name). Regression test asserts the old name still resolves.
- Knob-shift compat: moving Modern High-Gain's Sag off the face shrank its
effectKnobs by one, so an old 11-value knobValues array would misassign
Sag→Mix and Mix→Level on load. Add a targeted PedalState migration
(Pedal.legacyMigrated) that lifts Sag into advancedValues and keeps
Mix/Level in place. Regression test decodes a hand-built legacy preset
and asserts correct placement.
Also: drop the not-yet-built "Bias X" from a doc comment; de-brand "Vox"
from the Chime variants test names (ToneStackModel .vox enum refs kept).
643 tests pass.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Phase 11. Promote Sag from Modern High-Gain to a shared AmpVoicePedal
capability and add a Bias control, both surfaced in a new pedal-card
pop-over rather than on the amp face.
- AmpVoicePedal gains `sag` [0,1] (AmplitudeFollower gain-droop, clamped
[0.15,1] to prevent phase inversion) and `bias` [0,1] mapped to the
power-amp TriodeStage grid bias ([-0.25,0.25], neutral 0.5 → 0.0 so
existing voices are unchanged at defaults). Both applied in
preCabinetCore; new `applySag(_:)` + `powerAmpBiasInput` helpers.
- Modern High-Gain drops its bespoke sag (now inherited); keeps sag=0.3
default. Sag moves off its face into the pop-over.
- Pedal gains an `advancedKnobs` surface; PedalView draws a gear button
(top-right) presenting them in a popover, reusing the existing pattern.
- Advanced knobs round-trip through PedalState (new `advancedValues`,
backward-compatible decode) and are MIDI-CC-mappable (appended last).
De-branding (review nits): "Vox" removed from the Chime family's
user-visible summaries + docs; "Fullerton Princeton" renamed to display
"Fullerton Ivy League". Palette horizontal picker second row now shows
Routing before the Amp Model group.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
The horizontal pedal-picker strip put all 26 amp models at the head of the
PEDALS row, stretching it into a very long horizontal scroll. Split the .amp
category out (ampGroup / effectGroups) and render it on the second row beside
the ROUTING cards, so the effects row stays short. Vertical catalog sheet
(the on-demand full list with a filter) is unchanged.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Remove Neural Amp from PedalRegistry.builtIn and PedalPaletteView.preferredOrder
so it can't be added — the model loader's security-scoped file access is unresolved
(fails silently under sandboxing; flagged in external review). NeuralAmpPedal, its
neuralModelRow UI, PedalType/category/color mappings, and tests are all kept for
later iteration — re-add the two entries to re-enable. Help acknowledgment for the
GuitarML loader dropped (feature not user-reachable); registry test now asserts it
is not registered.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
New ModernHighGainAmpPedal: a BoutiqueAmpPedal on the .mesa stack (Clean/Lead +
Master + Presence/Depth) voiced as a hot modern rectifier. Two new controls:
- Sag — power-supply droop/bloom, built from AmplitudeFollower (envelope → gain
droop, slow release) in shapeVoice. No dedicated Lyrebird block needed, so no
1.7.3 release: sag = signal × (1 − sag·envelope), envelope of the post-power-amp
signal; louder → lower gain → recovers slowly.
- Tight switch — a pre-preamp high-pass whose corner sweeps 20→120 Hz (firms the
low end for fast riffing), live via inputShaping.
Registered across 6 sites as .amp. 7 tests (sag/tight change output, inherited
channel + rebuildsOnChange, ceiling at max with everything cranked, control
surface, round-trip, registry). Completes the amp-expansion plan.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Five character voices:
- Command (Hiwatt) — BritishCombo variant: loud hi-fi clean, high headroom.
- Citrus (Orange) — .marshall, fixed mid bump + a single Shape tilt control.
- Sixties Combo (Supro) — .fender, gritty early breakup + onboard tremolo (shared
tremolo helper + footswitch).
- Magna Vibrato (Magnatone) — .fender, TRUE pitch vibrato: a DelayLine whose delay
is swept by an LFO (Speed/Depth + footswitch), not amplitude tremolo.
- Anaheim (Music Man hybrid) — .fender, symmetric-bias (solid-state-flavoured)
preamp, huge headroom, Bright + Deep switches, and a built-in Limiter
(LookAheadLimiter, ceiling 0.5 when engaged, before the power amp). True
oversampled hard-clip SS shaper deferred to Lyrebird 1.7.x.
Registered across 6 sites as .amp. New CharacterAmpsTests suite (10 tests):
per-amp control/effect changes, Sixties tremolo bit-exact bypass, Magna vibrato
on≠off + fixed-delay-when-off, Anaheim switches + limiter engages hot, ceiling at
max for all five, tone-stack models, round-trip, registry.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
New CaliHiGainAmpPedal: a BoutiqueAmpPedal (Clean/Lead channel, Master, Presence,
Depth) with an onboard 5-band graphic EQ layered in shapeVoice — RBJ low shelf
(80) → peaks (240/750/2200) → high shelf (6600), each a dB fader via
effectSliders, cascaded after the base Presence/Depth shaping. Defaults to a mild
scooped "V" (the Mark-series signature). .fender tone stack (Mark lineage);
gain 6, hot Lead drive 16, British 4×12.
Registered across 6 sites as .amp. 7 tests (EQ bands change output, inherited
channel/master, ceiling with EQ + gain maxed, control surface incl. slider bank,
round-trip, registry).
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Add a shared BoutiqueAmpPedal base: a rebuildsOnChange Clean/Lead channel switch
(Lead cascades a stage set by Drive), a Master (via masterDrive), and Presence
(top-end high-shelf) + Depth (low-end low-shelf, RBJLowShelf) power-amp shaping;
widthUnits 4, 4× power-amp oversample.
- Boutique Lead — SLO-style aggressive super-lead (.marshall, hot Lead drive).
- Boutique OD — D-style smooth overdrive (.fender) with a Mid Boost switch
(RBJPeakingEQ peak scaled by the switch, identity when off) layered on the base
Presence/Depth shaping.
Registered across 6 sites as .amp. 10 tests (channel switch + rebuildsOnChange,
presence/depth, master drives power amp via RMS-normalized SSD, drive, ceiling on
lead channel, control surfaces, OD mid boost, round-trip, registry).
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Add a shared AmpVoicePedal.masterDrive(_:minDrive:maxDrive:) helper (Master knob
[0,1] → power-amp drive range) and route British's powerAmpDriveInput through it.
Two new BritishComboAmpPedal subclasses (Presence + Bright inherited):
- British Master — 800-series single-channel lead: preampStage cascades a second
gain stage (both driven by Gain) + Master + 4× power-amp oversample.
- British Dual — 900/DSL: rebuildsOnChange Clean/Lead Channel switch (Lead
cascades a stage set by Drive), Master, spring reverb; widthUnits 4.
Registered across 6 sites as .amp. 11 tests (Master drives power amp via
RMS-normalized SSD, cascaded-vs-Plexi, channel switch + rebuildsOnChange, drive/
reverb, ceiling on lead channel at max, control surfaces, round-trips, registry).
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Enabler:
- PedalSwitch.rebuildsOnChange (mirrors PedalSelectorKnob): a switch that changes
graph topology asks the host to rebuild. Wired through PedalSwitchView (onCommit
on a changed tap) and PedalView.switchRow → pedalRebuildAction.
- AmpVoicePedal.preampStage(_:) overridable hook (default: one TriodeStage at
Gain). preCabinetCore feeds it; a channel amp cascades an extra stage on its
drive channel. Named preampOversample constant (4).
Amps:
- Fullerton Drive — American two-channel combo: blackface Clean + an overdrive
channel (cascaded TriodeStage set by Drive), spring reverb, Bright. Channel
switch is rebuildsOnChange, so only the selected channel's stages are built.
- Jazz Clean — add the JC onboard Distortion channel (Clean/Dist switch + Drive
knob) via the same preampStage cascade; flows through its stereo wideEffect.
Registered Fullerton Drive across 6 sites as .amp. 22 tests across the two amps
(channel switch changes output, drive knob, rebuildsOnChange, ceiling on the
drive channel, control surface, round-trip, registry).
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Make ChimeAmpPedal open with a convenience init, then derive three AC-style Vox
voices that inherit its Cut control + .vox tone stack and differ by voicing:
- Chime 15 — 1×12 EL84 combo: power-amp drive 2.0 (earlier breakup), Bright cab,
gain 6.
- Chime Normal — AC30 non-top-boost channel: warmer/rounder (treble 0.5, more
Cut), American cab, base headroom.
- Chime Baby — tiny practice combo: drive 2.5 (breaks up earliest), Lo-Fi 1×8
cab, less bass.
Chime 15 / Baby override powerAmpDriveInput (fixed higher drive) + oversample 4;
Normal keeps the base. Registered across all 6 sites as .amp. 8 tests (Cut per
voice, inherited surface/.vox, breakup oversample, voices differ, ceiling,
round-trip, registry).
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>