forge
Explore
Log in

Don't you dare go Hollow

Commits

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

2026-11-10

2026-10-23

🚚 edith moves to git.tahinli.comAhmet Kaan Gümüş · b02f499
🚚 edith moves to git.tahinli.com

The working tree as of 2026-10-23, as one commit on top of the last one
here. It carries the work up to that date plus the test-slimming work:
integration tests merged into one binary per crate, nextest config,
doctest = false, debug line tables only, perf tests behind --ignored,
and faster generators, reverse, undo, subtitle-export, hevc, stabilise
and hear tests.

2026-09-30

🔀 merge(edithloader): the .edith door bounds the caption window, band gain and transform positionAhmet Kaan Gümüş · 2c809fd
🔀 merge(edithloader): the .edith door bounds the caption window, band gain and transform position

# Conflicts:
#	crates/engine/src/project.rs
fix(engine): clamp a band's gain, the one field Coeffs::new left openAhmet Kaan Gümüş · 1b0fbe8
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.

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.