Commits
Commits on
978e6857d64772912559c8d8a4e6ee7cd309bdccFiltered to crates/engine/src/limiter.rsClear filter2026-08-11
✨ feat(engine): an edit rebuilds what it dirtied, and nothing elseAhmet Kaan Gümüş · c2e62a3
✨ feat(engine): an edit rebuilds what it dirtied, and nothing else Every param change went through one funnel -- edit() -> seek() -- which flushed the audio ring, reopened every track, respawned the feeder and rebuilt the video decoder. Dragging a colour slider therefore cut the sound ~40 times across one gesture, and every restart re-anchored the clock onto an empty ring, so the silence of the restart was counted as timeline time: a permanent A/V offset, re-rolled by every edit made while playing (the resolution-change desync). Edits are classified by what they dirty now. A grade, a fit policy and the project resolution rebuild the picture where it stands and never touch a sample. An equalizer rebuilds the sound and never touches the picture. A fader and the master ceiling rebuild nothing at all: they live at the mix sum, so the running mixer picks them up between two blocks (MixControls), and the limiter is retuned rather than restarted so its delay line -- and the sample count the master clock is made of -- keeps running. Only a structural edit still reseeks both halves. And a restart no longer costs an offset: the feeder stamps the device position its first real sample was queued at, and the clock anchors there instead of on the first poll after the seek, so the silence before the content is never timeline time. Also: a span whose source will not open no longer presents the old channel's frames under the new mapping, and the feeder stops parking 10 ms on a ring that is merely waiting out a flush.
✨ feat(mix): every track has its own volume and the mix has a ceilingAhmet Kaan Gümüş · dc7d07d
✨ feat(mix): every track has its own volume and the mix has a ceiling A fader per audio track and one master limiter over the sum of them, both applied where the lanes are added and nowhere else -- so what an export writes is what the room heard, by construction rather than by two call sites agreeing. A track's fader moves everything on it, every frequency: it is not the equalizer (one take, one band) and not the panel's volume (this machine's monitoring, which no file carries). The limiter is lookahead, soft-knee and per sample: the peak of an exported file is a measurement, not a hope, and the hard clamp stays behind it as the backstop. Flat settings are still the bit-exact passthrough: one lane at unity with the limiter off never opens a mixer thread, and an mp4 of such a timeline is still a packet copy. A mixed one re-encodes, and the card says so before the export starts. Both belong to the project, so `.edith` is v9: `fps`, `limiter` and `gain` lines, every older dialect still loading flat. The rate line pays an old debt with it -- a timeline of nothing but stills and songs now comes back at the rate it was cut at instead of the one its scaffold implied. UI: the mix card (f, or an audio track's own header), rows with steppers and hold-to-run arrows, and the track's level on its header.