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>
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>
Factor the duplicated unipolar-sine tremolo block out of Fullerton Reverb,
Chime Top Boost, and British Bluesbreaker onboardEffects into one shared
AmpVoicePedal.tremolo(_:speed:depth:enabled:) — signal × LFO over
[1 − depth·enabled, 1], a bit-exact identity when depth·enabled == 0. The 0.5
depth scale is a single named constant on the base. Same expression tree as
before, so no behavior change — the footswitch bit-exact bypass tests and the
full 589-test suite stay green.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Review blocker: lightweight recall (ShoeGaze.applyState) detected topology change
only via Pedal.rebuildSelectorValues (effectSelectors), so a channel switch —
the first rebuildsOnChange *switch* — flipped during a scene recall wrote the
node value but never rebuilt, leaving the stale channel topology (wrong preamp).
- Rename/extend to Pedal.rebuildTopologyValues: folds in effectSwitches flagged
rebuildsOnChange alongside the selectors (both NaN-sanitized). Recall call sites
in ShoeGaze+Preset updated.
- FullertonDrive: rename channel constants to generic switchOff/On (used by the
Bright switch too).
- Test: applyStateRebuildsBoardWhenChannelSwitchChanges — recall flipping the
channel rebuilds the board and applies the recalled channel.
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>
- ChimeAmpPedal: move the "AC-style variants…" note above the - Parameters:
block so DocC renders it as its own paragraph (not folded into outputBus).
- Base-class doc no longer claims all variants differ by power-amp breakup (Chime
Normal keeps the base drive).
- Test: also assert Chime 15 ≠ Chime Baby (the 2.0-vs-2.5 drive pair).
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>
- AmpVoicePedal: powerAmpDriveInput / powerAmpOversample docs now cover the
lower-headroom-variant case (fixed higher drive), not just master-volume amps.
- FullertonReverbAmpPedal: drop the redundant override init(name:) — the class
inherits AmpVoicePedal's designated init, so the convenience init and the
subclasses' super.init(name:) resolve without it.
- FullertonDeluxe doc: correct "2×12 Twin"/"Master drives" wording (both share
the American cab; the difference is a higher fixed power-amp drive).
- Tests: explicit for-loop binding type annotations; accurate diff comment.
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>
- britishMasterDrivesPowerAmp now uses an RMS-normalized SSD so it proves Master
changes the *waveshape* (power-amp saturation), not merely level — a raw SSD
couldn't distinguish the two, and distinguishing them is the whole point vs
`level`.
- Add powerAmpOversample hook (default 2); British overrides to 4 so the higher
Master drive (up to 5.0 vs the fixed 1.5) has anti-alias headroom.
- British Master default 0.3 → 0.22 so it maps to ≈1.5 drive, keeping the amp's
out-of-box tone unchanged.
- Add a max-Master (gain 30 + Master 1.0) ceiling test; DocC no longer links the
private powerAmpDrive symbol.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Add powerAmpDriveInput hook to AmpVoicePedal: an overridable drive into the
power-amp TriodeStage, defaulting to the fixed powerAmpDrive so the five existing
amps are byte-for-byte unchanged. A master-volume amp overrides it with a live
knob mapped to a drive range — so Master pushes the power-amp stage into
saturation (real master-volume behaviour), unlike `level`, which only attenuates
the finished output post-cab/post-limiter.
British gains a Master knob (LinLin [0,1] → power-amp drive [0.5, 5.0]): crank
Gain for preamp grind, set Master for power-amp saturation. signatureKnobs now
[Presence, Master]. Other current amps are non-master (Fender blackface, Vox,
JC) and keep the fixed drive.
Tests: Master changes the power-amp tone (not just level), round-trips through
state; British control-surface updated.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Review nit: the base-class doc enumerated every subclass, needing an edit per
new amp. Describe the family generically instead.
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>
Review nits: rename the reverb-enable switch "Reverb" → "Reverb FX" so it no
longer collides with the "Reverb" level knob in the flat control surface
(clearer, better for VoiceOver). Note in the vibrato bypass test why the
differing speed between the two renders is intentional (depth gated to 0 makes
the LFO a constant regardless of frequency).
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Model the amp's two-button footswitch: Reverb and Vibrato switches that bypass
each onboard effect to a dry pass-through while preserving the knob positions.
Both gate live by scaling the wet amount to zero — reverb mix → 0 (SpringReverb
passes dry), tremolo depth → 0 (LFO collapses to a constant 1.0) — so Off is a
true identity and no rebuild is needed.
reverbEnabled / vibratoEnabled default on. Tests assert each footswitch-off is a
bit-exact pass-through (equals the knob-at-zero render) and differs when engaged;
state round-trip and control-surface exposure updated.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
- AmpVoicePedal class doc lists Fullerton Reverb as a subclass.
- Ceiling test exercises the tremolo path (intensity/speed set).
- amp-modeling-2.0-plan S2 notes the Fullerton Reverb full-surface block.
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>
Review follow-up: the tanh output stage soft-limits but does not strictly bound
output — its DC-blocker (Nyquist gain ~1.0025) and the halfband oversampling
filters can leave a sub-percent transient overshoot above ±1, which the DAC
would still clip. The prior "can never overshoot" doc claim was overstated.
Add a final Clip(±1) after the tanh: the tanh does the musical analog-style
soft-limiting, the clamp only catches the inaudible ripple residue, so the amp
stage provably never emits a sample past ±1. Docs corrected (soft-limit is a
digital safety ceiling placed after the cab, not literal circuit order; master
Level ≤ 1 carries the ceiling through). Ceiling test tightened 1.05 → 1.0+1e-4.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>