Replace the code-built Garcia with the user's hand-authored version,
transcribed verbatim as a ShoeGazeState: Board 1 (Bass Octaver, Mutant,
Overdrive, Graphic EQ, Phaser, Delay, Fullerton Reverb) and Board 2
(Overdrive, Graphic EQ, Compressor, Fullerton Reverb), preserving exact mix,
graphic-EQ slider, cab-selector and amp sag/bias values. Input source and
channel counts are omitted so the rig stays input-agnostic.
Adds a FactoryRigBuild.state case (and matching FactoryRig init) for rigs
shipped as a pre-captured state rather than a live builder, and bumps
seedVersion to 3 so existing libraries refresh Garcia to the new version.
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>
Add ChainRouter persistence so routed multi-board rigs survive save/load —
previously captureState/loadRig only handled plain boards, so any A/B router
rig was silently lost on save (a latent gap this fixes for user rigs too).
- New ChainRouterState (Codable): each router's two linear branches as
[PedalState] plus splitter branch levels and merger output levels.
- ShoeGazeState gains an additive `routers` field decoded with
decodeIfPresent (nil for old rigs) — no format-version bump; routerless
rigs stay byte-identical (nil, not []).
- captureState snapshots routers; rebuildAllBoards reconstructs each via
makeChainRouter/addTo{A,B}/finalize and restores the blend.
FactoryRig gains a session-scoped builder variant (FactoryRigBuild enum) so
a rig can create its own boards/routers; makeEntries branches on it.
Ships the Garcia OBEL Clean/Effects Split: an effects/lead board (octave,
envelope filter, overdrive, phaser, delay, amp) vs a clean direct board,
selectable via the router — showcasing the multi-board capability.
Tests: full router capture -> JSON -> load round-trip with structure and
branch-level assertions plus a render check, backward-compat (no routers
key when routerless), and the Garcia rig via the factory load+render suite.
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>
Extend the factory catalog from 8 to 14 using existing pedals: Funk
Envelope Clav, Nashville Clean Comp, Rockabilly Slapback (classic),
Post-Rock Crescendo, Dub Delay Throw (ambient), and Ring-Mod Texture
(experimental). All build/load/render green via the existing tests.
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>
Reported bug: a sustained note popped into a different tone mid-decay (~3.63s
in the user's recording). Root cause confirmed by rendering the user's rig with
their input file: the gate keyed off the raw guitar and, as a note decayed
through the threshold, snapped its gain 1.0 -> floor in ~10 ms (symmetric 10 ms
Lag). With heavy downstream gain (the rig's Fuzz, ~50x) amplifying that step,
the ~-9 dB duck read as an audible pop.
Fix: replace the symmetric Lag with an asymmetric LagUpDown — fast open (so a
note's attack isn't softened) / slow close (fades the gate shut and rides out
envelope chatter at the threshold). Verified against the user's input file: the
gate gain now fades 1.0 -> floor smoothly over ~70 ms, monotonic, no snap.
Feature (per request): expose Attack (open) and Release (close) time as knobs
in the advanced pop-over rather than a separate near-duplicate "Vari" gate.
Placed in advancedKnobs so they persist append-only in advancedValues — gates
saved before this load with the timing at defaults, no migration (verified by
test). Release default 0.08 = the smooth close; range 10 ms..500 ms.
Tests: gate close lingers longer with a longer Release and the default lingers
well past a fast close (guards the pop fix + the Release control); Attack/
Release exposed in the pop-over (not the face), round-trip through state, and a
legacy no-advancedValues preset defaults the timing. 675 tests pass.
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>
Every amp's Gain (and the boutique/drive-channel Drive) is now a 1–11 dial —
yes, it goes to eleven — instead of the raw 1–30 tube-drive number.
- New AmpVoicePedal.taperedDrive(_:) maps the 1–11 dial to the 1–30 tube drive
through an exponential LinExp taper, so 1 is nearly clean, 11 is full
saturation, and the useful grind spreads across the dial (fine at the bottom,
steep at the top) rather than bunching near the low end.
- Wired into the base preampStage and every override that feeds a drive:
Boutique / Fullerton Drive / Jazz Clean / British Dual (Drive channel),
Anaheim (SS preamp), British Master (cascaded stage).
- gainRange / driveRange → 1...11; every amp's default gain/drive reconverted
from drive-space to the equivalent dial value (dial = 1 + 10·ln(drive)/ln(30)),
so each amp's shipped voicing is preserved.
- No preset migration (nothing shipped — per product owner); all knob work
stays within ShoeGaze (no core Lyrebird change).
- Tests updated to the 1–11 scale; added range + exponential-taper assertions.
671 tests pass.
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>
Review follow-ups (all doc-only; DSP/RT/preset verified correct):
- The blendSecondMic insertion had detached applyPlacement's summary; give each
helper its own complete doc block again.
- Update the class-level signal-path diagram + ## Parameters list for micB /
micBlend / micOffset and the optional parallel second-convolver branch.
- micOffset: note it is a set-and-leave spacing control (live-sweeping it moves
the comb, a flanger-like effect) — keeps .linear interp so micOffset=0 is a
true zero-delay alignment.
- Correct the maxMicOffsetSeconds comment (1.5 ms ~ 0.5 m spacing, not "mic
diameters"; first notch near 330 Hz at full offset).
669 tests pass.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Phase 14c — the classic two-mic technique. When "Mic B" (a second mic-voice
selector, default No Mic) is engaged, a parallel convolver (same cab voice,
mic B's IR) is delayed by up to 1.5 ms (Mic Offset) and summed with the
aligned primary at the Mic Blend balance — the time offset between the two
coherent copies produces comb filtering (e.g. a 57 + 121 blend).
- Mic B: rebuildsOnChange selector; No Mic (default) builds NO second
convolver, so the single-mic path is bit-identical to before and costs one
convolution. Mic Blend / Mic Offset are live smooth knobs (advanced pop-over,
appended after Position/Proximity — append-only for advancedValues).
- Coherent (same-source) mics sum linearly: A*(1-blend) + Bdelayed*blend.
- The look-ahead limiter still bounds the summed output to ±1.
Tests: second mic changes output; with Mic B Off the blend/offset are inert
(single-mic path untouched); blend + comb offset both change output when
engaged; dual-mic round-trips through state; dual-mic stays within ±1. 669
tests pass.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Review follow-ups (no blockers):
- Update the CabinetPedal class doc signal-path diagram to show the full chain
(mic baked into the IR -> Position/Proximity shelves -> look-ahead limiter),
which had drifted to the original convolution-only form.
- Reword the placement "neutral defaults" test: it is a default-consistency /
determinism guard (explicit defaults == default render), not proof of 0 dB
shelf identity (both sides run the same shelves) -- that identity is the RBJ
property the reviewer verified. Add loud render-length assertions so a short
render fails instead of silently passing the guard.
664 tests pass.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Phase 14b of cabinet mic modeling. Two live, continuous placement controls in
the CabinetPedal advanced pop-over:
- Position [0,1]: on-axis (0, bright) -> cone edge / off-axis (1, dark), a live
RBJ high-shelf cut (0..-9 dB @ 3.5 kHz).
- Proximity [0,1]: distant (0, flat) -> close-mic'd (1), a live RBJ low-shelf
boost (0..+6 dB @ 150 Hz) modelling the proximity effect.
Both are LIVE post-convolution shelves (not baked), so they are smooth knobs
with no rebuild-on-change, and each maps its knob to 0 dB at 0 -> a bit-exact
identity at the defaults (existing cab presets sound unchanged). Placed in
advancedKnobs (advancedValues), append-only, so old CabinetPedal presets don't
shift Mix/Level positions. The look-ahead limiter still bounds output.
Tests: Position/Proximity change output; neutral (0,0) is a bit-exact identity;
advanced knobs exposed; round-trip through state; placement extremes stay within
the ±1 ceiling. 664 tests pass.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
External-review blocker: the tanh soft-limit (drive 1.0) is not unit gain at
realistic levels (tanh(0.5)=0.462, -7.6% plus harmonics), so it silently
colored and compressed EVERY signal through this general-purpose pedal, not
just peaks -- an always-on tone change to all existing CabinetPedal presets.
Replace it with LookAheadLimiter (maxAmplitude 1.0, 2 ms look-ahead, 50 ms
release): a true peak limiter that leaves below-ceiling signals untouched (no
coloration of clean material) and only pulls gain down for the brief peaks a
convolution can push past +/-1. Matches the requested "soft limiting" intent
(peak taming, not saturation); adds a short 2 ms delay.
Also (caveman nits): collapse the duplicate dB->amplitude divisor constant to
one shared name; the wet/dry mix is equal-power, so the doc no longer claims a
partial-mix +/-1 guarantee. 659 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>
Review follow-ups (no blockers were found):
- Rewrite Bias X docs: it's a power-amp bias-balance CHARACTER control that
re-shapes the saturation knee, not a literal push-pull even-harmonic model
(averaging two same-polarity bias-offset stages doesn't replicate push-pull
imbalance). Document that both halves are always built (2x power-amp cost
even at biasX=0 — chosen for a smooth live knob over a rebuild-on-change
fast path). Fix a public->internal DocC symbol link (plain code font).
- Add extremeBiasAndBiasXStayWithinCeiling: Bias hot + Bias X max drives a
half-stage bias to ±0.6 (tanh-bounded, outputLimit-clamped) — asserts
finite, ≤ ±1.
651 tests pass.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Phase 13. Add a shared power-amp Bias X control modelling push-pull tube
balance. powerAmpStage(_:) runs two TriodeStage halves biased at
powerAmpBiasInput ± (biasX·biasXMaxSpread) and averages them: at biasX = 0
both halves share the base bias, so the average is bit-identical to the
prior single stage (default, no re-voicing); turning it up spreads the
operating points, shifting the even/odd harmonic mix.
Deliberately a character control on the single-ended power model, not a
full push-pull topology rebuild — it reduces to the exact shipped tone at
biasX = 0 (monotonic imbalance amount, default 0). Appended to advancedKnobs
(Sag, Bias, Bias X) — append-only so Phase-11 presets (2 advancedValues)
still load with Bias X defaulting.
Tests: Bias X changes waveshape (RMS-normalized, not level), stays within
±1, is exposed in the pop-over, round-trips through state; neutral
Sag/Bias/Bias X is bit-exact identity. 650 tests pass.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
External-review blocker: a huge finite cab value (from a corrupted or
hand-edited rig JSON, restored unclamped via PedalState.selectorValues)
would trap Int(cab.rounded()) at board-build time. Clamp in Double space
first, mirroring CabinetVoice.voice(atSelectorValue:). Regression test
renders infinity / ±1e20 / NaN / out-of-range cab values without trapping.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Phase 12. Split AmpVoicePedal.cabinetAndLimit into cabinet(_:) (the
ConvolutionReverb, or a straight pass) + outputLimit(_:) (tanh soft-limit →
Clip(±1)). The output limit ALWAYS runs on the amp, so the per-amp ±1
guarantee survives cabinet removal.
- Cab selector gains a "None (direct)" stop (value = CabinetVoice.allCases
.count, appended last so existing preset cab indices stay stable).
isCabinetBypassed skips the convolver at that stop.
- With Cab = None the amp emits its limited, cab-less power-amp signal; the
player drops the existing standalone Cabinet pedal (shared CabinetVoice /
CabinetIRFactory, no DSP dup) after it as a real chain block. Default stays
cab-on (backward compatible).
Tests: None bypasses the convolver, None still limits to ±1 (limiter
survived), the None stop is exposed, and an amp(None) → standalone Cabinet
chain renders non-silent/finite. Note: a downstream cab can overshoot ±1
like any post-amp pedal — end-of-chain level is the board's stage, not the
amp's.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
The legacy-migration fix spliced private declarations between applyState's
doc comment and the method, so the doc silently reattached to the private
modernHighGainType constant. Move it back above applyState (and note the
legacyMigrated normalization + advanced-knob restore). Caught in re-review.
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>
- Note the sagGainFloor 0.15 rationale (~-16 dB, deepest droop before gating).
- Rename the sag test's metric to dotProduct (it's an unnormalized sign check).
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Review blocker: sag gain 1 - sag*envelope went negative because the envelope
follows the post-Presence/Depth-shelf signal, which exceeds 1 (shelves add up to
+8/+6 dB) — at high sag+presence+depth it phase-inverted loud content instead of
drooping (verified ~-1.0 correlation). Clamp the sag gain to [sagGainFloor(0.15),
1] so it always attenuates, never inverts. Doc/const nits fixed (per-const docs,
"switches" not "sweeps" for the binary Tight). Regression test asserts positive
correlation (no inversion) at presence/depth/sag maxed.
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>
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>
- MagnaVibrato depth doc: the LFO is bipolar (±maxSweepSeconds around base).
- Anaheim: note the LookAheadLimiter stays in-chain both states (only ceiling
changes), so its ~5 ms look-ahead latency is constant, not toggled.
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>
Review nit: document each graphic-EQ band @UIParam individually (freq + dB),
matching the GraphicEQPedal precedent.
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>
switchOffValue (0.0) / switchOnValue (1.0) were re-declared in six amp files and
leadBias (0.15) in two. Hoist all three onto AmpVoicePedal as internal `let`s so
every subclass inherits them; remove the per-file duplicates. Pure refactor — no
behavior change; 610 tests stay green.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
- BoutiqueAmpPedal: drop the duplicate signatureAmount range, use the inherited
AmpVoicePedal.signatureRange; make leadBias private (in-class only).
- BoutiqueLead: drop the redundant toneStackModel override (base is already
.marshall).
Filed a follow-up task to hoist the shared switchOff/On + leadBias constants onto
AmpVoicePedal (now re-declared across several amp bases).
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>
- BritishComboAmpPedal doc now covers the master-volume subclasses (was
"non-master only").
- Hoist the duplicated leadBias (0.15) constant into BritishComboAmpPedal;
British Master / Dual use the inherited one.
- Test: assert British Dual's powerAmpOversample == 4.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>