fix(amps): Phase 1 review nits — docs, redundant init, test style

- 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>
This commit is contained in:
2026-08-03 12:02:32 -07:00
parent 8a08264fb4
commit 690030a4c5
4 changed files with 24 additions and 29 deletions
@@ -55,7 +55,7 @@ struct FullertonVariantsTests {
]
@Test func bothBuildNonSilentFinite() throws {
for v in variants {
for v: (name: String, make: () -> FullertonReverbAmpPedal) in variants {
let s: [Float] = try render(v.make)
#expect(hasNonSilentOutput(s), "\(v.name) produced silence")
#expect(s.allSatisfy { $0.isFinite }, "\(v.name) produced non-finite output")
@@ -63,7 +63,7 @@ struct FullertonVariantsTests {
}
@Test func variantsDifferFromTwinAndEachOther() throws {
// Same knob settings, different voicing (power-amp drive + cab) → different output.
// Same knob settings, different voicing (power-amp drive; plus cab for Princeton) → different output.
let cfg: (FullertonReverbAmpPedal) -> Void = { $0.gain = 6.0; $0.reverb = 0.3 }
let twin: [Float] = try render({ FullertonReverbAmpPedal() }, configure: cfg)
let deluxe: [Float] = try render({ FullertonDeluxeAmpPedal() }, configure: cfg)
@@ -84,7 +84,7 @@ struct FullertonVariantsTests {
@Test func stayWithinCeilingAtMaxGain() throws {
let ceilingEpsilon: Double = 1.0e-4
for v in variants {
for v: (name: String, make: () -> FullertonReverbAmpPedal) in variants {
let hot: [Float] = try render(v.make) { (pedal: FullertonReverbAmpPedal) in
pedal.gain = 30.0
pedal.bass = 1.0
@@ -99,7 +99,7 @@ struct FullertonVariantsTests {
}
@Test func inheritFullControlSurface() throws {
for v in variants {
for v: (name: String, make: () -> FullertonReverbAmpPedal) in variants {
let pedal: FullertonReverbAmpPedal = v.make()
#expect(pedal.effectKnobs.map { $0.label }
== ["Gain", "Bass", "Mid", "Treble", "Reverb", "Speed", "Intensity"], "\(v.name) knobs")