docs+test(amps): Modern High-Gain re-review nits
- 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>
This commit is contained in:
@@ -32,8 +32,9 @@ public final class ModernHighGainAmpPedal: BoutiqueAmpPedal {
|
||||
private let tightFreqHz: Double = 120.0
|
||||
/// Tight high-pass Q (Butterworth).
|
||||
private let tightQ: Double = 0.707
|
||||
/// Lowest the sag gain can droop to. Bounds sag depth and — crucially — keeps the gain strictly
|
||||
/// positive: the envelope tracks a post-shelf signal that can exceed 1, so an unclamped
|
||||
/// Lowest the sag gain can droop to (~-16 dB — the deepest droop before the tone reads as
|
||||
/// obviously gated rather than sagging). Bounds sag depth and — crucially — keeps the gain
|
||||
/// strictly positive: the envelope tracks a post-shelf signal that can exceed 1, so an unclamped
|
||||
/// `1 − sag·env` would go negative and phase-invert loud content instead of drooping.
|
||||
private let sagGainFloor: Double = 0.15
|
||||
|
||||
|
||||
Reference in New Issue
Block a user