forge
Explore
Log in

Don't you dare go Hollow

Commits

Commits on 978e6857d64772912559c8d8a4e6ee7cd309bdccFiltered to crates/app/src/timeline_math.rsClear filter

2026-08-20

✨ feat(ui): the room speaks and the loop closes at the end of the filmAhmet Kaan Gümüş · b333573
✨ feat(ui): the room speaks and the loop closes at the end of the film

The keys overlay showed eleven of seventy-one bindings behind a clipped
plate, so sixty commands lived on no surface at all — it scrolls the whole
list by category now, and it opens on ? as the contract names rather than
f1. It is held, not latched: press dims the room, release restores it.

Notices had nowhere to land in the darkroom, so arming loop-trim moved
zero pixels and the editor could not tell an armed loop from a dead key.
The ledger carries its real content — project identity, last action,
export progress, position — and notices rise above it as plates with a
severity spine, fed by the same queue the legacy room already writes to.

Loop-trim never wrapped when the window ended on the film's last frame:
the transport reached its end, halted, and the restart check found a
stopped clock. Reaching the end with either loop armed now restarts, and
the trim window's own start wins over the timeline's top.
✨ feat(ui): the cut becomes the subject and the dock fillsAhmet Kaan Gümüş · 14bd4a6
✨ feat(ui): the cut becomes the subject and the dock fills

DESIGN.md §12 steps 3 and 4. The cut grammar dispatches for real: , and .
walk the marked clip's cuts (shift strides ten), [ and ] trim its edges at
frame detents through the same engine door the mouse drag uses, / loops the
subject span while the transport pumps. The maths live as pure functions in
timeline_math.rs with their own tests.

The stance's own regions fill in: the spine carries its commands as ghost
glyphs wearing chords read live from the keymap, the screen draws the
picture through the same path the legacy room uses and puts OUT|IN plates
up when the playhead rests on a cut, the time band leads with timecode and
the cut odometer. The stance root now takes focus and reads keys — before
this it had none, so the chords were unreachable there.

The dock delegates to ui/dock_stance.rs: Sources reuses the library
assembly, Clip shows Speed, Colour, Transform and EQ as ghost verbs over
the existing param cards. No box in the dock; the only one is Export.

2026-08-19

merge audio-fades engine (edith 18) and wire fade drag stateAhmet Kaan Gümüş · 55dd056
merge audio-fades engine (edith 18) and wire fade drag state

Merges the fades/crossfade engine branch in, adds PlaybackSession
wrappers (fade_in_of/set_fade_in/fade_out_of/set_fade_out/crossfade)
and the FadeDrag gesture plumbing on the root (start/move/commit),
ahead of the drawing and keymap work.
✨ feat(engine): per-clip audio fades, adjacency crossfade, and edith 18Ahmet Kaan Gümüş · 6d0747c
✨ feat(engine): per-clip audio fades, adjacency crossfade, and edith 18

Clip carries fade_in/fade_out, an equal-power gain envelope mixed into
playback and export, a crossfade() op that sets both edges of two
adjacent audio clips, and split's rule that only the kept edge keeps its
fade. The project file format bumps to edith 18 to carry the two new
fields; a v17 (or older) file loads with every clip's fades at zero.

Fixes a stray fade_in/fade_out struct-literal fragment left outside any
Clip literal in Player::trimmed (crates/app/src/player/timeline_edit.rs),
which was a syntax error breaking the whole app crate's build.

Adds unit coverage for Fade::gain_at's boundary/midpoint curve, the
split edge rule, crossfade's adjacency refusal, the Clip size-lock
test (40 -> 48 bytes), and a v17-loads-zero-fades / v18-round-trips
edith.rs test.
🐛 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-15

✨ 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.
✨ 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): 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.
✨ feat(timeline): captions keep their own clock through a re-rateAhmet Kaan Gümüş · f8f5c46
✨ feat(timeline): captions keep their own clock through a re-rate

A placement's cues crossed the timeline one window-microsecond to one
timeline-microsecond, which is only the truth at unity: a group's
re-rate compresses the frames and leaves the window alone, so the plate
and the lane export drew the words falling behind their box, cue by
cue, and the tail past the end. The map now goes by the placement's own
proportion -- at unity every cue lands exactly where it always did, to
the microsecond, and at 2x the words cross in half the time.

A caption's box wears the rate its window plays at, derived off the
placement itself (so the badge survives the group coming apart), gated
past placement rounding; and the grade and the fit resolve a caption in
hand to the picture it was pinned to, saying so out loud when there is
none -- the speed, silence and equalizer cards' own rule.
✨ feat(timeline): ctrl-click multi-selection, manual groups, ctrl+aAhmet Kaan Gümüş · 66d5395
✨ feat(timeline): ctrl-click multi-selection, manual groups, ctrl+a

The app half of manual clip grouping: the timeline's selection becomes
a list of picks (Selection, click order kept, anchor = last), ctrl+click
toggles a pick on every clip box, caption box and edge strip, and a
right-click on a picked placement keeps the selection so the menu's
Group row acts on all of it — one pick keeps the span-partner flow.

SelectAll takes ctrl+a (every clip and caption, one selection) and
RemoveAudioLane moves to ctrl+q beside its own letter. The oracle
unhides Group and Detach over captions, words the one-clip-per-lane
refusal, and the caption menu grows the group rows. marked() lights
every pick and its link-mates — captions included — captions wear the
grouped border, trims preview each member by the drag's delta clamped
to its own room, deletes route a grouped caption through the group
door, and a drag's snap excludes the group it carries. The save-format
tests and every affected app suite updated with the new shapes.
✨ feat(timeline): a caption is taken off the lane by the same stroke and row a clip isAhmet Kaan Gümüş · 888f39d
✨ feat(timeline): a caption is taken off the lane by the same stroke and row a clip is

A placed caption could only be lifted by a ✕ that vanished on narrow
boxes. Captions are now marked by a click, lifted by x/delete and the
menu, and dragged — parity with every other thing on a lane.

The mark is keyed by a caption's start frame, so a refused drop, a
sorted insert or a removal cannot shift it onto the caption beside it.
With a caption marked the playhead actions stay live while its menu
carries only its own rows: the playhead's clip actions — split, rate,
grade, fit — would read as the caption's.

2026-08-14

✨ feat(app): the words get a track of their own, dragged and trimmed like everything elseAhmet Kaan Gümüş · eef3d5d
✨ feat(app): the words get a track of their own, dragged and trimmed like everything else

The subtitle strip under the lanes is gone and the subtitle lanes the engine
model landed are drawn as lanes: the same row, the same header, the same bed.
A palette row is dragged out of the Subtitles list onto one, a placement is
dragged along it or onto another subtitle track, either end is trimmed, and the
box's own × lifts it off -- a caption is not in the clip selection's index
space, so no stroke reaches it and a lane holding one may not be removed.

The row is `lane_row`, unbranched: a subtitle lane holds no `Clip` and every
other lane holds no `SubClip`, so the two lists are never both full and there is
no second kind of row to keep in step. Headers reorder and remove through the
machinery every lane already had.

An `Ok` is never a toast: `move_sub` and `trim_sub` answer a pick-up-put-back
and an edge stopped at a wall with `Ok` and no undo step, so only the refusals
are shown, in the engine's own words after the head. A subtitle lane refuses
media in `lane_refuses`, so the shadow is red on the way down.

Each lane's header carries its eye, on by default and dropped wholesale when a
lane is removed or reordered -- what reads it over the picture is the next
slice; nothing is saved yet either.
✨ feat(engine): subtitles become a third lane kind, placed like everything elseAhmet Kaan Gümüş · ec66e07
✨ feat(engine): subtitles become a third lane kind, placed like everything else

`LaneKind::Subtitle` joins the lane list, holding `SubClip`s -- a
`[in_us, out_us)` window of one of the project's subtitle tracks (the flat
`subtitles` list stays the palette) placed at a timeline frame. A caption is
therefore added, ordered, labelled `S1`, snapshotted, rippled, razored and
undone by the machinery every clip already goes through: an undo step is the
lane list, so subtitles joined the history without one of their own.

It carries no `Clip` at all, and that is what keeps the media paths free of it:
`Project::lane` hands back an empty slice, so trim/set_eq/set_color/set_fit/
set_speed/lift/delete_in refuse it by the bounds check they already had, the
composite and the mix never look at it, and the three doors that could still put
a picture on one -- `from_parts`, `place`, `append_clip` -- say so by name.

Ops: `place_sub` (refuses an overlap rather than overwriting -- words that lost
are simply gone), `move_sub`, `trim_sub`/`trim_sub_room` (clamped like a media
trim; the window follows the edge), `lift_sub`, and `sub_lane_cues`, which maps
a lane to cues clipped to each window and shifted onto the timeline -- the twin
of `export::timeline_cues` for a track that is placed rather than carried.

Ripple, paste-room, split and regroup cut the windows by *proportion*, so none
of that arithmetic needs a frame rate; only a trim and the mapping take one.

Not here, on purpose: persistence (`Parts` has no line for a `SubClip`, so a
save leaves the lanes out -- named at the filter) and any UI.
🐛 fix(app): the cue steps over the bar hanging off the pictureAhmet Kaan Gümüş · 0c26d06
🐛 fix(app): the cue steps over the bar hanging off the picture

A notice, the import line and the seek line hang off the bottom edge of
the picture region, and the cue plate sat at a fixed 8 px off that same
edge -- so every message was drawn across the line being read, and cost
the reader both of them.

The plate now sits above whatever those bars measured (`height_probe`
-> `sub_bottom`) and comes straight back down the frame they leave: the
no-notice position is unchanged to the pixel, which is the position
people are used to. A picture cue (PGS) is slid up by the same
measurement with cancelling top/bottom insets, so the disc's canvas
keeps the height -- and so the fit -- it had with nothing hanging
there, rather than being refitted into a shorter box.

Measured and not counted: a notice wraps to as many lines as the window
is narrow (31 px on one line, 43 on two), and any constant here would
be right at exactly one width. The probe asks for one more frame when
that height changes, because the window a notice arrives on may be
paused and never draw again by itself.

2026-08-13

🔧 chore(app): the window's file lets sixteen neighbourhoods keep their ownAhmet Kaan Gümüş · 963252a
🔧 chore(app): the window's file lets sixteen neighbourhoods keep their own

main.rs was 10,529 lines with every constant, every helper and the
window itself in one place. The geometry, the transport, the import
state, the menus, the export card, the oracle, the library rows, the
subtitles, the equalizer, the colour card, the viewport and the
timeline's arithmetic each move out to the module they belong to; the
Player and its two impls stay, which is what the file is for.

Pure motion: every line is the line it was, with pub(crate) added only
where a module boundary now stands between it and its caller.
Player::enable still delegates to the one oracle.