fix(engine): clamp a band's gain, the one field Coeffs::new left open
`Band`'s doc states the invariant for the whole struct: out-of-range
values are clamped when coefficients are built, so a deserializer can
hand this over unchecked. `Coeffs::new` clamped three of the four
fields -- `fs`, `f0`, `q` -- and computed `a = 10^(gain_db/40)` from the
fourth with nothing at all.
That is not a magnitude, it is a pole placement. For a peaking section
`|pole| = sqrt(a2/a0)` walks toward 1 as `a` grows: at 200 dB the radius
is 0.9999993 and the section rings for ~32 seconds, and past a few
hundred dB the f32 rounding puts the poles *exactly* on the unit circle.
Nothing upstream stops it -- `edith.rs`'s `band()` takes any parseable
field, its `float()` refuses only inf/NaN, `Project::set_eq` refuses
only `!finite`, and the UI's 12 dB is a card decision rather than a
project guarantee. The device clamp and the export's own [-1, 1] then
turn the result into a hard-clipped full-scale square for the whole
clip, in monitoring and in the exported file alike, and with the limiter
on the overflow is folded into its gain and colours every later sample.
Clamped at the same site as the other three, so the documented invariant
is true. `MAX_BAND_GAIN_DB`/`MIN_BAND_GAIN_DB` are +/-40 dB: far past
any card (deliberately -- a project may be more extreme than the control
that set it) while keeping `a` a linear gain of 100, comfortably inside
f32. Clamped rather than refused, because the struct's contract is that
a deserializer may hand this over unchecked: a project saying +400 dB
gets +40 dB, not a project that will not open.
Witness (arithmetic, not an audibility claim -- nothing here says what
the filter sounds like, only that it is stable): the poles of
`z^2 + a1 z + a2` solved off the normalized coefficients, asserted
strictly inside the unit circle, plus a full-scale 1 kHz burst whose
peak stays at the ceiling's own gain. Pre-fix, +10000 dB produced
`b0: inf` and +100 dB sent a full-scale burst to 62773.