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>
For a pedal that hides the Mix knob and publishes exactly one selector (the amps,
whose only selector is Cab), surface that selector in the bottom row's trailing
slot beside Level and Bypass — a compact "Level · Bypass · Cab" footer — instead
of a full-width selector row of its own. The rebuildsOnChange → pedalRebuildAction
wiring is preserved. Pedals that show Mix (e.g. Cabinet) keep Mix there and their
selector in the row; pedals with 0 or >1 selectors are unchanged. UI-only.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
- HelpView: scope the tone-stack acknowledgment to "tube-amp voice pedals"
(the genericized "amp pedals" wrongly implied Neural Amp, which is .amp but has
no tone stack, follows Yeh & Smith).
- BritishBluesbreaker: compose super.effectSwitches for the Bright switch instead
of re-declaring it, so it stays in sync with the base.
- Test: round-trip now also asserts speed.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Add a shared non-master British base and three voices. BritishComboAmpPedal
(open) provides the common surface: .marshall tone stack, Presence lift
(post-power-amp shelf), Bright switch (pre-preamp shelf), fixed power-amp drive
(loudness from Gain, no Master — distinct from the master-volume BritishAmpPedal).
- British Plexi — non-master Super Lead, higher gain, 4×12.
- British JTM — warmer, lower-gain JTM crunch, darker top.
- British Bluesbreaker — 2×12 combo crunch + onboard tremolo (Speed/Intensity +
Tremolo footswitch), widthUnits 3.
Registered across all 6 sites as .amp; Help tone-stack acknowledgment genericized
so it no longer needs editing per amp. 12 tests (Presence/Bright per voice,
non-master check, Plexi/JTM surface, voices differ, Bluesbreaker tremolo +
footswitch bit-exact bypass, ceiling, round-trip, registry).
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Make FullertonReverbAmpPedal open with a name-taking designated init, then derive
two lower-headroom blackface combos that inherit its reverb + tremolo + bright
control surface and differ only in voicing:
- Fullerton Deluxe — 1×12, power-amp drive 2.2 (earlier breakup than the Twin's
1.5), americanCombo cab, slightly less bass.
- Fullerton Princeton — 1×10, drive 2.6 (breaks up earliest), Vintage Dark cab,
least bass, a shade darker.
Both override powerAmpDriveInput (headroom via power-amp saturation) and
powerAmpOversample → 4 for the harder drive. Registered across all 6 sites as
.amp. 7 tests (variants differ from Twin + each other, inherited reverb/bright,
ceiling at max gain, inherited control surface + oversample 4, round-trip,
registry).
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Add an "Amp Model" PedalCategory and move the amps (California, British, Chime,
Fullerton Reverb, Jazz Clean, Chime Top Boost, Neural Amp) out of Gain into it.
Overdrive/Distortion/Fuzz/Volume stay in Gain. Purely a palette grouping /
filter-menu change (UI); no audio or pedal behavior. New amps register .amp.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Full-surface counterpart to the basic Chime voice, modeling the AC-style top-boost
combo. Reuses the AmpVoicePedal hooks:
- inputShaping: Brilliant switch (pre-preamp treble shelf, identity when off).
- onboardEffects: tremolo (Speed/Intensity), gated by a Tremolo footswitch. No
onboard reverb (always outboard on these amps).
- shapeVoice: the Cut control (post-power-amp low-pass swept 9k→2.5k).
ChimeTopBoostAmpPedal (.vox): Gain/Bass/Mid/Treble + Cut/Speed/Intensity knobs,
Brilliant + Tremolo switches, Cab selector (defaults to Bright 1×12); widthUnits 3.
Registered across registry/type/category/palette/enclosure; Help acknowledgment
lists its tone stack. 10 tests (Cut, tremolo intensity/speed, brilliant, tremolo
footswitch bit-exact bypass, ceiling with FX, control surface, round-trip, registry).
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Switches now lay out side by side (HStack). Polish so it degrades cleanly:
- PedalSwitchView caption: lineLimit(1) — no wrap → no height jitter between
switches sharing a row.
- switchRow: .top alignment so segment bars stay level; doc updated (no longer
"one per row").
- MutantPedal: widthUnits 2 so its Sweep (2-way) + Mode (3-way) switches sit
side by side without cramping in a single-width card.
UI-only; no audio/state changes.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Review fixes:
- chorusDepth was defaulted 0.3 with a 0..1 range, but the Chorus generator's
depth is a fraction of the delay time — that's ~30-300× the classic-chorus
band and produces pitch wobble, not lush chorus. Retune to default 0.005,
range 0.0005...0.015 (matching the ModulationPedal precedent).
- Tests now render the widener as true stereo (outputBusRight + split master),
asserting L≠R when the chorus is engaged and bit-exact L==R when bypassed, and
checking the ±1 ceiling on BOTH channels — the prior suite only exercised the
left channel.
- AmpVoicePedal base doc lists Jazz Clean.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
First stereo (widener) amp, modeling the JC-style ultra-clean combo whose
signature is a lush stereo chorus fed to two power amps / speakers.
Refactor AmpVoicePedal.effect() into two reusable, behavior-preserving pieces:
- preCabinetCore(_:) — inputShaping → preamp → tone → onboardEffects → power → shapeVoice (mono)
- cabinetAndLimit(_:) — selected cab convolver → tanh soft-limit → Clip(±1) (per channel)
effect() = cabinetAndLimit(preCabinetCore(dry)); the four existing amps are
unchanged (verified by their suites).
JazzCleanAmpPedal (widener, .fender): mono core (with spring reverb + bright)
→ Chorus (mono → stereo split) → per-channel cabinetAndLimit. Controls:
Gain/Bass/Mid/Treble + Reverb/Rate/Depth knobs, Bright + Chorus switches, Cab
selector; widthUnits 3; defaults to the Full-Range cab for a hi-fi voice. The
Chorus footswitch gates the wet mix to 0 (dry pass-through, Rate/Depth kept).
Registered across registry/type/category/palette/enclosure; Help acknowledgment
lists its tone stack. 10 tests (chorus rate/depth, reverb, bright, footswitch
bit-exact bypass, ceiling with FX, stereo/control-surface config, round-trip,
registry).
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
First combo amp with onboard effects, modeling the American blackface clean
voice. Adds two overridable hooks to AmpVoicePedal so an amp can insert stages
without touching the fixed chain:
- inputShaping(_:) — pre-preamp (bright switch here)
- onboardEffects(_:) — after tone stack, before power amp (reverb + tremolo here)
FullertonReverbAmpPedal (.fender):
- Spring reverb (SpringReverb) with a Reverb mix knob.
- Tremolo (unipolar sine gain LFO) with Speed + Intensity knobs; defaults off so
the amp opens as a clean reverbed platform. ("Vibrato" channel is really AM.)
- Bright switch: a pre-preamp high-shelf whose gain is scaled by the toggle, so
Off is a true identity and the switch is live (no rebuild).
- Full surface: Gain/Bass/Mid/Treble + Reverb/Speed/Intensity knobs, Bright
switch, Cab selector; widthUnits 3.
Registered across registry / type / category / palette / enclosure color; Help
acknowledgment lists its tone stack. 9 tests (FX effect, ceiling with FX on,
control surface, state round-trip, registry).
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
The cab selector was a Select over one ConvolutionReverb per CabinetVoice, and
Select evaluates every input each block — so all 8 voices' partitioned-FFT
convolvers ran continuously (7/8 discarded), per CabinetPedal and per amp voice.
Build only the selected voice's convolver. The cab selector is now
rebuildsOnChange: committing a new stop asks the host to rebuild the board
(same mechanism the Neural Amp model loader uses), which re-enters effect()
with the new voice. One convolver runs instead of N; cost moves to a brief
rebuild on cab switch (cabs are set-and-forget).
- PedalSelectorKnob: add rebuildsOnChange flag.
- PedalSelectorKnobView: fire onCommit on drag-end when the stop changed.
- PedalView: wire onCommit → pedalRebuildAction for rebuildsOnChange selectors.
- CabinetVoice.voice(atSelectorValue:): rounded/clamped index → voice.
- CabinetPedal + AmpVoicePedal: single ConvolutionReverb for the selected voice.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Replace the single AmpPedal (a model-selector pedal) with three dedicated
amp-voice blocks, each fixing one tone-stack model and adding a signature
control so the per-amp UI can be customized:
- AmpVoicePedal: open base — shared Gain/Bass/Mid/Treble/Cab chain
(TriodeStage preamp → ToneStack → TriodeStage power amp → shapeVoice →
ConvolutionReverb cab), overridable toneStackModel/summary/signatureKnobs/
shapeVoice.
- CaliforniaAmpPedal (.fender): Bright high-shelf, clean-leaning gain default.
- BritishAmpPedal (.marshall): Presence high-shelf, crunch gain default.
- ChimeAmpPedal (.vox): Cut low-pass, top-boost jangle.
Registered in PedalRegistry / PedalType / PedalCategory / palette order /
enclosure colors. Help acknowledgment updated for the three tone stacks.
12 new tests in AmpVoicePedalTests; removed AmpPedal + its tests.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
- AmpPedal: double-width (widthUnits 2) amp-head card so the four tone knobs +
Amp/Cab selectors + master aren't cramped. Uses the generic single-column
content (no greedy Spacers → no flow-canvas height issue).
- Neural Amp model loader: PedalView renders, for a NeuralAmpPedal, a "Load
Model…" picker (.fileImporter for .json) plus the loaded model's filename.
Picking sets Pedal.resourcePath and asks the host to rebuild the board so the
model applies live. Picker + AppKit stay in the UI layer (core imports none).
- New `pedalRebuildAction` environment value (@MainActor @Sendable), installed by
ShoeGazeBuilderView; it resolves the pedal's board via a new branch-aware
`ShoeGaze.board(containing:)` (finds pedals inside parallel / stereo-split
branches, not just the main chain) and rebuilds it via the live-safe
`rebuildBoard(_:from:)`.
Tests: AmpPedal widthUnits == 2; board(containing:) finds main + branch pedals
and returns nil for a stranger. Full suite 502. (SwiftUI loader flow needs
on-device visual QA.)
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>