fix(amps): Phase 3 review nits — doc ordering, accuracy, test coverage

- 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>
This commit is contained in:
2026-08-03 12:51:30 -07:00
parent 818478ce1b
commit 8cd77ad984
2 changed files with 5 additions and 3 deletions
@@ -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
@@ -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 {