From 8cd77ad9848d7baa75e1bb86e19f6702cb81cca5 Mon Sep 17 00:00:00 2001 From: Joshua Parmenter Date: Mon, 3 Aug 2026 12:51:30 -0700 Subject: [PATCH] =?UTF-8?q?fix(amps):=20Phase=203=20review=20nits=20?= =?UTF-8?q?=E2=80=94=20doc=20ordering,=20accuracy,=20test=20coverage?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 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 --- Sources/LyrebirdShoeGaze/Pedals/ChimeAmpPedal.swift | 7 ++++--- Tests/LyrebirdShoeGazeTests/ChimeVariantsTests.swift | 1 + 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/Sources/LyrebirdShoeGaze/Pedals/ChimeAmpPedal.swift b/Sources/LyrebirdShoeGaze/Pedals/ChimeAmpPedal.swift index dd4792c..fb1806e 100644 --- a/Sources/LyrebirdShoeGaze/Pedals/ChimeAmpPedal.swift +++ b/Sources/LyrebirdShoeGaze/Pedals/ChimeAmpPedal.swift @@ -12,7 +12,7 @@ import LyrebirdUI /// /// A ``AmpVoicePedal`` fixed to the chime tone stack. The base of the Vox-voiced family — the /// AC-style variants (Chime 15 / Chime Normal / Chime Baby) subclass it and differ by gain, cab, -/// tone defaults, and power-amp breakup. +/// and tone defaults (and, for the smaller combos, an earlier power-amp breakup). open class ChimeAmpPedal: AmpVoicePedal { /// Cut amount in [0, 1]: `0` = fully open/bright, `1` = darkest. Maps to a low-pass cutoff @@ -33,11 +33,12 @@ open class ChimeAmpPedal: AmpVoicePedal { /// Creates a Chime amp. /// + /// The AC-style variants call the inherited `AmpVoicePedal.init(name:inputBus:outputBus:)` to set + /// their own name while inheriting the shared Cut voice. + /// /// - Parameters: /// - inputBus: Audio bus index to read the dry input from. Defaults to `0`. /// - outputBus: Audio bus index to write the processed output to. Defaults to `0`. - /// The AC-style variants call the inherited `AmpVoicePedal.init(name:inputBus:outputBus:)` to set - /// their own name while inheriting the shared Cut voice. public convenience init(inputBus: Int = 0, outputBus: Int = 0) { self.init(name: "Chime", inputBus: inputBus, outputBus: outputBus) gain = 5.0 diff --git a/Tests/LyrebirdShoeGazeTests/ChimeVariantsTests.swift b/Tests/LyrebirdShoeGazeTests/ChimeVariantsTests.swift index 9a64ac8..da1d5b2 100644 --- a/Tests/LyrebirdShoeGazeTests/ChimeVariantsTests.swift +++ b/Tests/LyrebirdShoeGazeTests/ChimeVariantsTests.swift @@ -93,6 +93,7 @@ struct ChimeVariantsTests { let baby: [Float] = try render({ ChimeBabyAmpPedal() }, configure: cfg) #expect(windowedSSD(fifteen, normal) > 0, "Chime 15 and Normal should voice differently") #expect(windowedSSD(normal, baby) > 0, "Chime Normal and Baby should voice differently") + #expect(windowedSSD(fifteen, baby) > 0, "Chime 15 and Baby should voice differently") } @Test func stayWithinCeilingAtMaxGain() throws {