forge
Explore
Log in

Don't you dare go Hollow

Commits

Commits on ef5832fea151ca30db92b142c8de131c5f43fc49Filtered to crates/engine/src/eq.rsClear filter

2026-08-10

✨ feat(eq): the equalizer is a curve you drag, not five barsAhmet Kaan Gümüş · df00890
✨ feat(eq): the equalizer is a curve you drag, not five bars

The card now draws the clip's own frequency response across a log axis
(20 Hz - 20 kHz) with a handle per band on it: press anywhere in the box
and the nearest band follows the pointer up and down, and the curve
redraws on every sample of the drag, so the shape bends under the hand.
One undo step per gesture, as before -- the write is still the release's.

The curve is read from `EqParams::response_db`, which evaluates the very
biquad coefficients `EqState` filters with at z = e^jw. There is no
second copy of the maths, so a drawn curve cannot drift from what is
heard; a new test measures a sine through `process` at nine frequencies
and holds it to what the curve claimed, within half a dB.

The keyboard path is untouched: 1-5 pick a band, up/down move it, r
flattens, esc closes -- and a readout under the graph names the picked
band, which the sum of five curves cannot.