Commits
Commits on
e3392c8daecb9842008bcbe01512f645f78036d72026-08-19
🐛 fix(app): the preview gets a pulse and export results get the frontAhmet Kaan Gümüş · e3392c8
🐛 fix(app): the preview gets a pulse and export results get the front The render tick only reached the timeline session, so a preview's clock never advanced and its picture froze on frame 0. Export outcome notices now push to the queue front instead of waiting behind progress lines.
🐛 fix(app): an export's own result cannot get buried in the queueAhmet Kaan Gümüş · 601dec3
🐛 fix(app): an export's own result cannot get buried in the queue push_notice queued strictly oldest-first, so an EXPORT DONE landing behind a PROXY READY and a caption notice sat three dismissals deep -- the one line a person started the export to read was the one they never saw. Export outcomes (done or failed) now jump to the front of the queue instead of the back.
🐛 fix(app): a library preview finally has a pulseAhmet Kaan Gümüş · 397bd83
🐛 fix(app): a library preview finally has a pulse render() ticked only the timeline's own session, never the preview one -- so a preview's audio-driven clock never advanced, pump() saw the same target every frame, and the picture sat frozen on frame 0 however long play ran. Ticks now go through active_session_mut(), the same preview-first routing pump/transport already use.
✨ feat(app): subtitle cue font and size are the user's to chooseAhmet Kaan Gümüş · dd4bbea
✨ feat(app): subtitle cue font and size are the user's to choose A subtitle-style file beside the theme holds a family and a size (10-28, default 14); the cue plate reads them live and the line height scales on the stock ratio. New card lists every system family plus the platform default, opened from the inspector's Font control or y. A file the format could not have written falls back whole to the defaults.
✨ feat(app): project settings live before the first importAhmet Kaan Gümüş · 79d189b
✨ feat(app): project settings live before the first import Resolution and frame rate no longer wait for a first file to exist.
✨ feat(app): resolution and rate are choosable before any file opensAhmet Kaan Gümüş · dc9a2c2
✨ feat(app): resolution and rate are choosable before any file opens A pick made on an empty player waits in pending_settings and lands on the next session the moment it is built, the same way a saved project's own numbers do. The inspector rows and the Resolution keystroke work with nothing open; a .edith's saved settings still win over a stale pre-import pick. Engine test proves a later import never touches an explicit resolution or rate.
🐛 fix(app): the keys search matches whole keys, not substringsAhmet Kaan Gümüş · 803b8e6
🐛 fix(app): the keys search matches whole keys, not substrings Searching f1 dragged in Fullscreen's F11 because chords matched by contains. Chords now match on whole keys (split on space and +), with the full-chord substring kept for needles that spell a combination.
✨ feat(app): fullscreen, library preview, and frame screenshotsAhmet Kaan Gümüş · fbdd221
✨ feat(app): fullscreen, library preview, and frame screenshots F11/toolbar fullscreen via gpui toggle_fullscreen; a per-row play button previews any library file over the timeline without touching the edit (separate preview session, escape restores); w/toolbar saves the current frame as PNG under ~/Pictures/edith with no-clobber suffixes and a notice naming the file.
🚀 perf(engine): playback above 1x skips the pictures nobody will seeAhmet Kaan Gümüş · 490568c
🚀 perf(engine): playback above 1x skips the pictures nobody will see Clip speed threads into the decode worker; frames a faster playhead supersedes skip tone-map/convert/send while still bitstream-decoding for references. The late-drop escape valve always fires. Export path unchanged (always Speed::NORMAL). Measured: 4K SW decode at 1x p99 frame gap 1131ms->76ms, resyncs 5->2; OBS-class stays at 0 resyncs.
✨ feat(app): the current frame saves as a PNG with a keystrokeAhmet Kaan Gümüş · 7a82c20
✨ feat(app): the current frame saves as a PNG with a keystroke Bare w (free by hand-scan of the default keymap), or the toolbar's own "Shot" button, write whatever is on screen -- timeline or a preview -- to ~/Pictures/edith as stem-timecode.png, never clobbering an earlier shot of the same second. Blocked during export like every other one-shot action (oracle.rs's allow-list already covers this).
🐛 fix(engine): the late-drop escape valve survives the speed skipAhmet Kaan Gümüş · 43ff2f2
🐛 fix(engine): the late-drop escape valve survives the speed skip
run() and run_hw() checked abort.late(due) && skipped < LATE_RUN as one
condition, so once LATE_RUN pictures in a row had been dropped for
lateness, the branch fell through to skip_for_speed -- and if that also
said skip (which it does on every other frame at >1x), the escape valve
that is supposed to guarantee one picture in LATE_RUN reaches the screen
never fired. A machine falling behind at speed could go fully silent.
Reordered so lateness is decided first and completely: still-within-run
skips for being late, past-run sends unconditionally (skipped=0), and
skip_for_speed only gets a say once lateness has already said "send".
Measured with a throwaway probe (deleted) against two real files, SW
decode (this box has no HW decode path), 15s per run, same machine
before/after:
a large 4K H.264 mp4 (the falling-behind, worst-case class the
escape valve exists for):
1.0x 219->322 shown, 5->2 resyncs, p99 1131.8ms->75.8ms
1.5x 173->165 shown, 7->7 resyncs, p99 1049.6ms->1113.4ms (noise)
2.0x 134->141 shown, 7->7 resyncs, p99 1055.7ms->970.6ms
a small screen-recording mp4 (keeps up, never hits abort.late): 0
resyncs before and after at all three speeds, numbers unchanged --
the reorder does not touch a file that was never late.
Net: better or a wash everywhere measured, no regression on the class
the bug actually bites.
Adds a deterministic unit test for skip_for_speed's alternation at 2x
and its never-skip guarantee on a span's last frame.✨ feat(app): a library row previews its file over the timelineAhmet Kaan Gümüş · 5231711
✨ feat(app): a library row previews its file over the timeline A row's ▶ button (and esc, or the banner's own Stop) opens the file in place of the picture without touching the edit's own playhead or undo stack: PlaybackSession::open already builds exactly this session, so the pump, transport, seek, step, volume and end-of-stream handling all route through a new active_session()/active_session_mut() that reads the preview while one is up and the timeline otherwise.
✨ feat(app): the export card leads with presetsAhmet Kaan Gümüş · e6a4f45
✨ feat(app): the export card leads with presets Primary pane: destination, Web / Small file / Master / Audio only / Custom presets (keys v/l/t/u, refusal-aware rows), and an Advanced fold (s) holding the full codec matrix and machine notes. Master writes HEVC/High so its re-editing promise stays true; default state lands on Web.
🎨 style(app): subtitle lanes go thin and library subtitles get real groupsAhmet Kaan Gümüş · 2efce0f
🎨 style(app): subtitle lanes go thin and library subtitles get real groups SUB_LANE_H=24 (WCAG hit-target floor) with per-kind lane math restores the thin caption look f85f4db lost; lane remove moves to right-click on the eye. Library subtitle group headers are always on when several sources exist, foldable per source, with tint and track count.
🚀 perf(app): silence levels warm up in the background at importAhmet Kaan Gümüş · 3fe48b0
🚀 perf(app): silence levels warm up in the background at import Whole-source silence scan starts from cache_media the moment a source is seen, landing under a sentinel key the silence card slices per clip. Card opens warm; cold opens fall back to the on-demand scan unchanged.
✨ feat(app): a library full of subtitles reads as its films againAhmet Kaan Gümüş · 791ea9f
✨ feat(app): a library full of subtitles reads as its films again Group headers in the Text tab used to vanish under sub_headers_fit's viewport gate, which was the one thing carrying "whose tracks these are" once a window got short -- so a short window left every track looking like it belonged to whichever film happened to be scrolled into view. The row list already scrolls past SUB_ROWS_H, so the gate was solving a problem the scrollbar had already solved: headers are now drawn whenever there is more than one source, full stop. Each header now also says how many tracks it holds and folds its rows shut on a click (Player::sub_folded, session-lifetime, never saved) -- a plain toggle and not the click-cycling pattern this codebase has already thrown out once. Its hit target moved up to HIT_MIN to earn the click. A standalone .srt was already its own named group (by its own filename) rather than a sourceless catch-all, so no "External" bucket was needed for it.
🐛 fix(app): the export card's presets pick their own bundle, not the codec row's leftoversAhmet Kaan Gümüş · 4b92704
🐛 fix(app): the export card's presets pick their own bundle, not the codec row's leftovers Six judge-confirmed defects in one pane: a refused preset click still wrote a quality (checked the refusal after the write, not before), refused presets rendered bright and clickable with no reason shown, the card opened on Custom because the launch default (Mp4, Auto) matched no bundle, the five preset rows were pointer-only, and the status line still advertised g/r after they moved into Advanced. Master now bundles HEVC/High instead of H.264/High, so its own "for re-editing later" detail (intra-only, every frame a cut point) is true of what it actually writes.
⚡ perf(app): the silence scan starts at import, not at the cardAhmet Kaan Gümüş · 99d87d4
⚡ perf(app): the silence scan starts at import, not at the card Moves the whole-source RMS decode engine::silence::levels_with_progress was only ever asked for when the silence card opened (Player::start_silence_scan) into Player::cache_media, the same per-repaint "unseen sources" door the waveform, proxy and stream probes already run through. The scan is now landed under a whole-source sentinel key (full_scan_key, out_frame = u32::MAX) in the very silence_levels map the card reads, so scan_silences slices a clip's own [in, out) window out of it (slice_whole_levels) before ever falling back to the on-demand per-clip scan the card used to start unconditionally. silence_bg tracks scans in flight per (path, stream): its presence is the dedupe against a re-add of the same source, and remove_source / close_session cancel it via the same Progress::cancel flag start_silence_scan already used, so a source that leaves mid-decode does not write levels into a library that no longer holds it. Caveat: the background decode is still O(file length) -- ~1700x realtime per engine::silence::levels' own doc comment, so a several-hour file is still seconds of background work, just no longer on the card's critical path, and a card opened before that finishes still falls back to its own on-demand scan.
🐛 fix(app): the caption strip is thin again, and the header still fits its own doorsAhmet Kaan Gümüş · 0a5590f
🐛 fix(app): the caption strip is thin again, and the header still fits its own doors f85f4db drew subtitle lanes as full LANE_H media rows and kept only a 4px cue band -- SUB_LANE_H (== HIT_MIN, 24px) undoes that: a caption lane's row, its box and its bed all draw at it now, branched off `lane.kind` at the one place a row's height is set. A thinner header has no room for two stacked HIT_MIN targets, so the subtitle lane's remove control moves off its own row onto the right button of the show/hide eye -- the same door a caption's own box already answers to. 20px, the other harness candidate the task asked for, was never shippable: the eye button is the row's one surviving hit target and fills the whole row, so anything under HIT_MIN there is a WCAG 2.5.8 target shrunk to chase a pixel count. lanes_h_mixed/lanes_shown_mixed/rows_below_mixed generalise the panel's overflow math off each lane's own height instead of assuming every row is LANE_H, so a caption track in the stack does not throw off the "N more below" affordance. The uniform lanes_h/lanes_shown/rows_below and their pinned tests are untouched.
✨ feat(app): the player goes fullscreen from the toolbar or F11Ahmet Kaan Gümüş · 1ac24b8
✨ feat(app): the player goes fullscreen from the toolbar or F11 gpui Window::toggle_fullscreen wired as ActionId::Fullscreen (View category, always enabled — window-level, touches no edit list). Player::act grows a window parameter to reach the API; topbar gets a state-reflecting Fullscreen / Exit fullscreen button beside Save/Export.
♻️ refactor(app): the export card opens on a preset, not fifteen rowsAhmet Kaan Gümüş · 0d1aa32
♻️ refactor(app): the export card opens on a preset, not fifteen rows The card used to open flat: destination, seven format rows, container, five quality rows, sound, encoder, subtitles, two display switches and two machine notes, all on screen at once. Restructured around the decision flow instead -- a primary pane (destination, four named format+quality bundles plus Custom, the Export button) with everything else -- codec, container, quality, sound, encoder, subtitles, the layout switches, this machine -- behind one "Advanced" row, closed by default and driven by its own key (s) exactly as every other row is. No row was deleted, only relocated; every existing key and click still does what it did.
🐛 fix(engine): the proxy tests take turns over their one filmAhmet Kaan Gümüş · 31449fc
🐛 fix(engine): the proxy tests take turns over their one film
Both proxy tests proxy test_av.mp4, and a proxy job is one per film:
run in the same binary, whichever asked second was refused ("a stand-in
for this film is already being made") and a cancel in one deleted the
file the other was asserting about -- the rotating failure this binary
has shown all sweep, misread as starvation until the panic named it.
A shared mutex serializes the pair; everything else still runs wide.✅ test(engine): the long export waits ride out the binary's own loadAhmet Kaan Gümüş · c319ba2
✅ test(engine): the long export waits ride out the binary's own load A software-seat export here costs up to ~130 s alone and the binary runs its tests together; the 120/180/300 s completion budgets rotated through starvation failures, a different proxy test each run. 600/900 s now -- hang guards, the same law as the AV1 and subtitle budgets. The short waits stay: 5-60 s there is stop-latency semantics under test, not completion.
✅ test(engine): the subtitle exports get the same hang guard, not a stopwatchAhmet Kaan Gümüş · 8cbcb15
✅ test(engine): the subtitle exports get the same hang guard, not a stopwatch Each software-seat export here costs ~70 s alone (71.5 s at the parent commit too -- the cost is old, not a regression), and the binary runs all nineteen together: 300 s per test was arithmetic that could never hold under its own siblings, 16 of 19 tripping at once. 1800 s now, the same law the AV1 and proxy budgets took this sweep.
✅ test(engine): the proxy's opening window rides out its siblingsAhmet Kaan Gümüş · 2c8bd01
✅ test(engine): the proxy's opening window rides out its siblings The encoder opens in under a second alone, but the binary's other exports can starve the worker for minutes -- 120 s tripped three times this sweep, twice under suite load and once under the binary's own. 600 s now: a hang guard, not a speed claim, same law as the AV1 budget.
✅ test(engine): the AV1 export budget is a hang guard, not a stopwatchAhmet Kaan Gümüş · a670b0a
✅ test(engine): the AV1 export budget is a hang guard, not a stopwatch The software encode alone costs ~270 s for 30 frames on the machine of record; a 300 s ceiling left every software-seat export one co-running test away from a timeout, and the full suite tripped it. 900 s now -- three times the measured floor, still catching a genuine hang.
🧹 fix(engine): the inverse admits its hole, the scale law lives onceAhmet Kaan Gümüş · 47c08dd
🧹 fix(engine): the inverse admits its hole, the scale law lives once invert fabricated an answer for the frames a shift-right piece never produces -- the hole between the identity run and the piece's own image -- against its own doc. It answers None there now, and a test walks the hole asserting so. The caption scale law lived twice, one copy clamped and one not, the exact duplication that drifted a frame before: scaled_caption_frame is now the single fn both write_speed and speeded_playhead call. The successor guard saturates instead of overflowing at the clamp ceiling, and the ungrouped-layer arm of whole_take is pinned by its own test again -- a layer is lifted, never rippled.
🐛 fix(playback): a captions-only group delete clamps the playhead tooAhmet Kaan Gümüş · b980282
🐛 fix(playback): a captions-only group delete clamps the playhead too Since a grouped caption delete ripples every member's own sub lane, a caption grouped only with other captions can shrink timeline_frames() -- and the branch that said such a delete "moves nothing that plays" skipped the one clamp mechanism there is. Grouped-ness for a caption is its link alone, so the dispatch now asks that, and the caption-only group takes the Dirty::Both path like its clip-anchored kin. Cue text itself was never stale: subtitle overlay is pull-rendered every paint.
✅ test(engine): the sweep says what it covers, and asserts what it saysAhmet Kaan Gümüş · 3e1c94d
✅ test(engine): the sweep says what it covers, and asserts what it says Two asserts were disjunctions under comments claiming conjunctions -- either half passing hid real failures. One was a true conjunction (single's V1 and A1 are linked from creation, the span leaves both); the other papered over two genuinely different per-shape outcomes, now a match asserting each shape's exact state. The header claimed every mutating op and swept 8 of 37. Six new sweeps take ripple_delete, cut_regions, lift, lift_sub, move_sub, trim_sub, place, place_take, place_sub, delete, set_speed_live and retime through the laws; the ops that move no placement -- group bookkeeping, lane and source tables -- are scoped out by name instead of silently missing. retime costs no undo step by design and is swept order-only.
🐛 fix(engine): a merged group stays one placement per laneAhmet Kaan Gümüş · b1724e2
🐛 fix(engine): a merged group stays one placement per lane group_all folded pre-existing links into the new id transitively with no check on what the merge produced: two captions on one sub lane, each grouped with a different picked clip, both took the id -- a state links_are_consistent only debug_asserts against, where group_of sees the first and delete_members orphans the second. The merge is now counted per lane before anything mutates and refused by name when a lane would carry two, the same refusal remove_lane speaks.
🐛 fix(engine): the captions of a re-rate go through the map itselfAhmet Kaan Gümüş · 675eb6f
🐛 fix(engine): the captions of a re-rate go through the map itself write_speed re-timed a group's captions with its own ratio formula, round(frames * new/old) -- one frame adrift from the TimelineMap that speeded_playhead answers with (92 divergent cells over a length x rate grid; a 90f clip at 2x landed its caption's last frame on 48 while the playhead was sent to 47). The write now builds the same per-caption map and takes start and end from apply(), one source of truth. Two coverage holes closed: the caption arm of speeded_playhead (a playhead in a caption's overhang past its clip) had never been exercised; the write-vs-playhead agreement is now pinned over the grid, exact for compression, containment for expansion where apply() answers the start of a frame's new block by construction.
🐛 fix(engine): a shifted piece walks forward, a point collapse is realAhmet Kaan Gümüş · 84be3e4
🐛 fix(engine): a shifted piece walks forward, a point collapse is real A piece whose new run started before its old one collided with the identity run in front of it: apply(29)=29 then apply(30)=15, thirty frames of the domain not invertible -- against the module's own law. piece() now prepends an anchor knot at min(old.lo,new.lo), folding the band between the two los into the same collapse a removal makes, so apply stays one non-decreasing walk. new.lo==new.hi used to be refused as identity while the docs called it the removal shape; only an empty OLD run is identity now, and a literal point collapse is constructible. Docs rewritten to the truth: knots strictly increase on old, non-decreasing on new; one map per member; invert is a linear walk. The shape test now checks monotonicity and inversion over every shape: expansion, compression, both shifts, point collapse.
🐛 fix(timeline): a grouped clip is a whole take from any laneAhmet Kaan Gümüş · b1daa98
🐛 fix(timeline): a grouped clip is a whole take from any lane whole_take answered false for any clip on an added row before it ever asked whether the clip was grouped, so Delete on a grouped clip on V2/A2 routed to lift_clip and left the group's caption behind with an orphan link -- the same one-law-from-every-anchor class cdc53a6 closed on the caption side. The pairing check now comes first; the ord gate only catches genuinely ungrouped layers, which are still lifted. One existing test had the bug baked into its assertion (!whole_take on a grouped V2 take) and now asserts the law instead.
2026-08-16
🧹 fix(engine): the map's law is real, its inverse honest, its docs trueAhmet Kaan Gümüş · d2ac4e7
🧹 fix(engine): the map's law is real, its inverse honest, its docs true The sweep's survivor-continuity cell built its TimelineMap out of the playhead's own answer and then discarded it -- a law claimed and never asked. The map now comes from the member's own old geometry (old span, source length over the new rate) and the law is the clip's landed span against the map's ends, non-circular. invert() walked into a shifted piece's lerp from the wrong end below its first knot -- frames under min(old lo, new lo) are identity outright, and the shifted-piece test pins the whole run both ways. And the delete docs and one old test name still told the caption-lift story the ripple replaced; they tell the one-law story now.
✅ test(engine): restore the playhead's own scene assertionAhmet Kaan Gümüş · 734c321
✅ test(engine): restore the playhead's own scene assertion The probe teardown dropped the commit path's assertions by accident; the live path's stayed and passed, which is why nothing went red. Back in: the same source frame under the playhead after the write, and the minute moved with it.
✅ test(engine): the re-timing sweep, every op against the lawAhmet Kaan Gümüş · 5832d81
✅ test(engine): the re-timing sweep, every op against the law A table-driven property suite over every mutating op (delete from each anchor kind, speed at 2x and half, split, regroup, move, trim, paste) against four project shapes (ungrouped, grouped clips, aligned group with caption, the offset group) under the universal laws: links consistent, every lane sorted and disjoint on both its lists, the playhead's scene within the frame a rate can hold, and the undo round-trip byte-identical at one snapshot per op. Two harness findings on the way in, both of the harness and not the engine: a two-op cell must capture its pre-state between the ops, and a stretch the neighbours refuse is a valid cell -- the refusal names its wall and changed nothing. Paste is the named exception the suite pins directly: media lanes ripple, the words never move. TimelineMap's invert and the total shift answer the laws today and are gated test-only until the delete/paste migrations consume them in a build path.
🐛 fix(timeline): a caption deleted with its group closes its laneAhmet Kaan Gümüş · ac71b75
🐛 fix(timeline): a caption deleted with its group closes its lane The offset rewrite made a grouped delete ripple each media member's span out of its own lane but still LIFT the caption members -- so the sub lane kept the hole while every other lane closed, and the captions after the deleted one never slid up with the rest. One law now, from whichever member the delete was clicked on: a caption deleted WITH its group goes by the same span-out-of-its-own-lane ripple its clip siblings take, and a caption deleted alone keeps the lift that leaves a gap, exactly as before. ripple() is the one mechanism -- the same law the scoped cuts already apply to sub lanes.
🐛 fix(playback): the playhead follows the re-rate through the same mapAhmet Kaan Gümüş · 6d8f3a1
🐛 fix(playback): the playhead follows the re-rate through the same map A speed change left the playhead at its own timeline position while write_speed re-timed the group under it, so the scene changed with the rate -- at 2x from the middle of a clip the cursor jumped a clip's worth of content. Both the commit and every live sample of the bar now map the playhead through a TimelineMap built from the group's own old geometry: each clip member by its old rate against the new one about its own head, each caption member by the held clip's proportion about the held clip's head, and a playhead outside every member unmoved -- nothing ripples, so the difference is the gap's to absorb. TimelineMap (engine/src/map.rs) is the one piecewise-affine answer the re-timing ops will share; this is its read-side consumer, with the laws pinned (monotone, exact on the ends, invertible on the image) and the playhead its first user. The delete and paste migrations land next; until they do, invert and the total shift answer the laws tests alone.
2026-08-15
🐛 fix(timeline): the strips are their own mouse regions, and a jump is a proportionAhmet Kaan Gümüş · 640189f
🐛 fix(timeline): the strips are their own mouse regions, and a jump is a proportion The lane stack's strip lay over the beds as painted pixels and as nothing else: a press fell through to the clip beneath it -- selected it, started its drag, opened its menu -- and a notch over it scrolled the stack twice, once by the strip's own handler and once by the column's native scroll behind it. The strip now occludes: gpui's hit test stops at it, so nothing under it hears a button or a wheel, and the wheel it answers with is the column's own unit (pixel_delta, a line a notch) so a notch there moves the stack exactly as far as a notch over the names does. An occluder is also deaf itself to the root that follows every drag, so the thumb's two listeners ride on the strip exactly as drag_scrim's do -- a vertical thumb drag never leaves the strip's own 14 px, and a drag that does is picked up by the root's copies without a seam. The time axis's strip takes the press and the wheel for the same reason: its row sits over nothing today, but a gesture it drew was not its to share. The time axis's click-beside-the-thumb jump was worked out in pixels at the view's own pps, which lands at span-over-duration of the target -- the first drag sample, read through the track's proportion like every other, then snapped the view to where the hand had not put it. The jump now goes through that same proportion, so the thumb centres on the press, at its own width and at its floor width alike, and the drag that carries on from the press lands exactly where the jump left the view.
✨ feat(engine): a speeded clip keeps its pitchAhmet Kaan Gümüş · 475f10c
✨ feat(engine): a speeded clip keeps its pitch The tape effect is gone: a speeded clip's audio was resampled at its speed, so its pitch moved with its rate. The resample is now only what it always should have been -- the rate conversion, reading a source written at another sample rate at the ratio of the two rates, pitch- true by construction -- and the time the Speed asks for is taken by a WSOLA stretch behind it: windows overlap-added at a different hop, each placed where it best continues the one before it, so the timeline compresses or stretches while every period of the signal keeps its own length. The beep stays a 1 kHz beep at 2x, the words stay spoken. Hand-rolled, no new dependencies: N=1024 Hann windows, 512-frame synthesis hop, ±512 search on the first channel by normalized cross- correlation against the natural continuation, one offset for every channel so a stereo pair stays coherent. A silent continuation is placed nominally -- nothing to match -- and a segment too short to prime a window passes through as the decoder read it. Both halves of the chain pace the timeline's promise to the frame, which is the A/V sync invariant the speed suite pins. Measured, not felt: the stretch's own tests put a 440 Hz sine through 2x and 0.5x and read 440 back by Goertzel with the octave gone; the sync fixture's 1 kHz beep plays at 1 kHz at 2x and 0.5x through the real open path (the tape effect's ladder peak read 1350 Hz there), and a 2x WAV export carries the same 1 kHz back out.
🐛 fix(engine-hw): a forward reposition replaces the skip, never adds to itAhmet Kaan Gümüş · 1077f5f
🐛 fix(engine-hw): a forward reposition replaces the skip, never adds to it pump's one law is 'the picture delivered is position + skip': position advances for every handle popped, dropped ones included, so a forward reseek to a target ahead of the decoder must leave skip = ahead -- exactly the distance still to walk. The landed code added to whatever skip was still standing, so a second forward reseek before the first drained (rapid small seeks on the kept worker, or a flush whose RAP skip was undrained when a forward span was asked) delivered ahead frames past its target -- silently, because the pictures kept coming. forward_skip() is the seam the law lives in, with a pinning test for the stacked-forward and flush-then-forward shapes (red on the add, green on the replace).
✨ feat(timeline): the scrollbar is only there while there is somewhere to goAhmet Kaan Gümüş · dd77ab0
✨ feat(timeline): the scrollbar is only there while there is somewhere to go Zoomed out to the whole timeline the horizontal strip was furniture for a view that cannot move: a dim full-width thumb under the lanes, holding its row whether anyone could use it or not. The strip now vanishes at the fit -- and its row goes with it, out of every budget at once. The budget grew a door: timeline_fixed_h(scroll) answers the region (timeline_h), the fold the lanes are laid out against and the seam's drag floor together, so the three cannot disagree about whether the strip is there, and the lanes keep exactly the room they had at either side of the zoom that crosses the line. The share stays sized for the taller, strip-bearing floor -- the one the clamp would otherwise overrule at the 640x360 floor. The lane stack gets its own bar too, over the beds' right edge -- over and not beside, because a gutter would take its width off the bed and the ruler above would stop pointing at the moment the lanes are drawn at. The thumb is the visible share of the rows, read straight off the column's own scroll handle -- box, fold and how far down it has been taken are all the handle's to know, so nothing about the stack is a second truth -- and a drag is followed on the root like every gesture that outlives its strip. Names and beds are one column, so they move together; the wheel over the strip scrolls the stack a notch's share of what it is showing, and with the whole stack on screen there is no strip at all.
🐛 fix(bench): the cutloop timeline is the keeps aloneAhmet Kaan Gümüş · 4bd886f
🐛 fix(bench): the cutloop timeline is the keeps alone The freeze metric's harness, corrected on its first live runs: the holes are the odd clips of the cut list and the tail past the last keep is the last one, deleted from the far end down so no delete moves an index still to be named (repeatedly deleting index 1 alternated hole, keep, hole, keep); V1 names each hole and the group takes the A1 half of the take with it; the end of the last keep is cut so the run plays the keeps and not the rest of the film; and a shape guard refuses a timeline that is not the keeps it asked for. The spans before and after the deletes go to the log as provenance.
🐛 fix(timeline): the scrollbar strip is panel furniture, not lane pixelsAhmet Kaan Gümüş · 27b5f78
🐛 fix(timeline): the scrollbar strip is panel furniture, not lane pixels f69ba33 stood the new strip under the lanes as one more flex_none row of the panel but left TIMELINE_FIXED_H describing a panel without it, and every lane-height decision reads that number: the region's own height (timeline_h), the fold the column is laid out against (lanes_box), and the seam's drag floor. The region came out 22 px short of its furniture, the flex_1 lane column paid the difference, and the last lane slid under the fold cut to 28 of its 48 px -- the lane-header-cut-in-half class again, now at the default size, with the affordance silent because the prediction still said the lane fit. The strip's row (SCROLL_HIT_H and its gap) now rides in TIMELINE_FIXED_H beside the ruler's, and TIMELINE_SHARE grows to the floor that yields: 171 px of the 360 at the 640x360 floor, where the old 0.42 (151 px) is smaller than the floor and the clamp made the floor the answer anyway -- the share said the panel took less of a short window than it did. The pixels at that floor do not move; the two constants agree again.
🐛 fix(playback): a silence cut's boundary decodes forward, not flushAhmet Kaan Gümüş · e045b5e
🐛 fix(playback): a silence cut's boundary decodes forward, not flush Cutting silences leaves a timeline of same-file micro-clips, and every boundary reseeked the worker the expensive way: decoder FLUSH, demuxer seek to the RAP, skip-decode RAP->clip-start (up to a GOP of VCN work, the GPU spikes), then a re-prime whose ~178ms ttff at 4K outlasts the 0.15-0.65s clips -- so the picture starved while the continuous audio feeder played on (the freeze), and LATE_RESYNC answered the starved picture with another flush storm every RESYNC_GAP. - engine-hw: seek_to reaches a target ahead of the decoder, within FORWARD_SECS (0.5s) of it, by decoding forward and dropping through the existing skip path -- no flush, no RAP seek, no re-prime; behind, past the reach, and past EOF keep the flush. Decision extracted as the pure reposition() + tests; position tracked per popped handle. - playback: the session reports picture_priming() -- owed from span start until its first frame -- and the player's resync waits out a prime instead of restarting into it (resync_due, constants kept). - bench cutloop: the freeze metric -- an N-region cut timeline played end to end, displayed/dropped per second, restarts and resyncs.
✨ feat(timeline): a scrollbar under the lanesAhmet Kaan Gümüş · c707e9d
✨ feat(timeline): a scrollbar under the lanes The time axis was the one dimension the panel scrolled with no bar to scroll it by -- only the wheel and the keys reached it. A strip under the lanes now carries a thumb that is the visible share of the drawn duration at its own place on the track: read off the very Scale every box is drawn through, so a wheel notch, a zoom about the pointer and the follow of the playhead all move it, because they all move the one state. Drag the thumb and the view follows live (the pointer leaves the 6 px strip at once, so the gesture is followed on the root like a scrub); press beside it and the view jumps to the press and carries on from there; the wheel still works over it. The strip is its own mouse region -- a press there never reaches a lane -- and with nothing to scroll the thumb fills the track and dims.
🐛 fix(timeline): an arriving clip never touches the captionsAhmet Kaan Gümüş · a3dc07c
🐛 fix(timeline): an arriving clip never touches the captions The rippling paste -- the door a video arriving on the timeline goes through, and the clipboard's own -- opened room on the subtitle lanes too, splitting a caption the landing fell inside and sliding the rest behind the new clips. On a timeline of words alone, adding a video cut the caption in half and pushed its tail to the video's end, which no hand asked for. A paste inserts media; the words keep their own clock. A caption that should travel with a clip is what a group is for, and a group moves as one. The razor still cuts captions with the picture, and a cut region still removes the words over it -- those are cuts, and this was an add.
🐛 fix(timeline): a caption's unity gate is measured in framesAhmet Kaan Gümüş · 71b7468
🐛 fix(timeline): a caption's unity gate is measured in frames The badge's unity gate was two permille, but placement rounding is an absolute error: frames_of_us leaves a short track up to half a frame off real time, which is sixteen permille of a one-second window — most palette drops under two and a half seconds badged, one of them a self-contradicting 1.00x. Unity is now 'the window lands within a frame and a half of the span', in the timeline's own frames; the permille survives only as the rate the badge shows.