fix(cab): keep modernStack breakup in-band; doc + test follow-ups

Review fixes:
- modernStack.breakupHz 4500 → 3800 so the cone-breakup peak sits below the
  4000 Hz low-pass (was the only voice with breakup > lowPass, which rolled off
  most of the intended boost).
- CabinetIRFactory class doc: list the full 7-stage chain (breakup + notch were
  missing).
- Tests: add loFiIsDarkerThanFullRange and breakupPeakLiftsUpperMid for
  per-voice differentiation; drop the hard-coded voice count in
  voiceNamesAreUnique.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
2026-08-02 18:54:45 -07:00
parent ec4e7dc5a4
commit 8a266a33dc
3 changed files with 21 additions and 3 deletions
@@ -15,7 +15,8 @@ private let cabinetPeakingGainDivisor: Double = 40.0
/// Synthesizes a short cabinet impulse response for a ``CabinetVoice`` by running a unit
/// impulse through a cascade of RBJ biquads (high-pass → two-stage low-pass → low-mid body
/// peak → presence peak) and capturing the result into a mono ``LyrebirdBuffer``.
/// peak → presence peak → cone-breakup peak → mid notch) and capturing the result into a mono
/// ``LyrebirdBuffer``.
///
/// This runs **off the RT thread** (at pedal build time), so it uses plain `Double` math with
/// no allocation constraints. The produced buffer is a normal IR consumed by `ConvolutionReverb`.
@@ -130,7 +130,7 @@ public enum CabinetVoice: String, CaseIterable, Sendable {
case .americanCombo: return 4200.0
case .britishStack: return 3800.0
case .vintageDark: return 3500.0
case .modernStack: return 4500.0
case .modernStack: return 3800.0
case .boutiqueOpen: return 5000.0
case .brightCombo: return 5200.0
case .fullRange: return 6000.0