Archilyzer · Source

archilyzer

Archilyzer
git clone https://archilyzer.pages.dev/source/archilyzer.git
Log | Files | Refs | README | LICENSE

commit 687dd44992c86efb182b46f270293c4f3be90384
parent e8326cafd975f69dad2996b0995b71b481c4eb6c
Author: I Mean I'm Just Saying <imeanimjustsaying@kiwifarms.st>
Date:   Mon, 19 Oct 2026 17:31:23 -0400

report-to-video: the push smears with nine half-spaced taps (no stepped copies on sharp edges); default grain 2

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>

Diffstat:
Mplans/FACTS.md | 4++--
Mumtool/docs/report-video.md | 4++--
Mumtool/report-to-video/transition.mjs | 15+++++++++++++--
Mumtool/report-to-video/transition.test.mjs | 2+-
4 files changed, 18 insertions(+), 7 deletions(-)

diff --git a/plans/FACTS.md b/plans/FACTS.md @@ -11027,8 +11027,8 @@ parsed to 0 cues, indexing the video textless) is CLOSED by `200a3105` (transcri `[data-look-room-tail]`, `[data-look-room-head]`. - **The blur slide** (`transitionStyle: "blurslide"`; the operator's "way quicker, tactile, subtle" revision replaced a012e9ff's full-width slideright + gblur): xfade `transition=custom:expr='…'` from `pushExpr(render, D)` — P 1→0; - ease-out cubic e; A sampled at X − travel·W·e, B at X + travel·W·(1−e); 5 taps (1,2,3,2,1)/9 spaced + ease-out cubic e; A sampled at X − travel·W·e, B at X + travel·W·(1−e); 9 taps (1..5..1)/25 at half of blur·3·travel/(D·fps)/2·W·(1−t)² ; smoothstep crossfade over t∈[0.1,0.7]; per plane via `PLANE` (a0/a1/a2, b0/b1/b2 — - a0 alone is luma). `render.slide {travel 0–0.5 (0.08), blur 0–2 (0.5), grain 0–20 (3)}` (`SLIDE_DEFAULTS`, + a0 alone is luma). `render.slide {travel 0–0.5 (0.08), blur 0–2 (0.5), grain 0–20 (2)}` (`SLIDE_DEFAULTS`, `validateSlide` inside `validateTransitionStyle`; `slide` is a LOOK_KEY). Grain: `noise=alls=<grain>:allf=t+u` on the D/2 nearest the seam of each plain-join edge (`blurSlideEdges`, the segment's own `t`). diff --git a/umtool/docs/report-video.md b/umtool/docs/report-video.md @@ -1347,11 +1347,11 @@ again. The Look panel's **Room at the clips' edges** sets `render.room`. "blur slide"): a quick, eased push — the outgoing clip nudges right by `render.slide.travel` of the width while the next settles in from the left (cubic ease-out: fast, then a soft landing), the two crossfading under a -smoothstep; the picture is smeared along the motion by five taps spaced by the +smoothstep; the picture is smeared along the motion by nine taps spaced by the moment's speed (most at the start, none as it lands), and the frames nearest the seam take a light temporal grain. One xfade custom expression (`transition.mjs` `pushExpr`) plus the grain on each clip's edge, in the clip's -own time. `render.slide` = `{travel: 0.08, blur: 0.5, grain: 3}` by default +own time. `render.slide` = `{travel: 0.08, blur: 0.5, grain: 2}` by default (travel 0–0.5 of the width, blur 0–2, grain 0–20; 0 turns either off); the length is `render.transition` (the seed's 0.22 s). A dip, a THEN/NOW wipe and a whip keep their own look. With room at both edges the slide runs over muted picture. diff --git a/umtool/report-to-video/transition.mjs b/umtool/report-to-video/transition.mjs @@ -20,7 +20,7 @@ export const transitionStyleOf = (render) => render?.transitionStyle ?? "fade"; // The push's knobs (`render.slide`): travel = fraction of the width the // pictures move; blur = motion-smear strength (0 none, 1 = a frame's travel); // grain = noise strength on the seam's frames (0 none). -export const SLIDE_DEFAULTS = Object.freeze({ travel: 0.08, blur: 0.5, grain: 3 }); +export const SLIDE_DEFAULTS = Object.freeze({ travel: 0.08, blur: 0.5, grain: 2 }); const SLIDE_BOUNDS = Object.freeze({ travel: [0, 0.5], blur: [0, 2], grain: [0, 20] }); /** The push's knobs, the defaults filled in. */ @@ -45,7 +45,18 @@ export function pushExpr(render, D) { const pl = (c, x) => `if(eq(PLANE,0),${c}0(${x},Y),if(eq(PLANE,1),${c}1(${x},Y),${c}2(${x},Y)))`; const A = (o) => pl("a", `X-ld(2)${o}`); const B = (o) => pl("b", `X+ld(3)${o}`); - const taps = (f) => (k > 0 ? `(${f("-2*ld(4)")}+2*${f("-ld(4)")}+3*${f("")}+2*${f("+ld(4)")}+${f("+2*ld(4)")})/9` : f("")); + // Nine taps, triangle-weighted (1..5..1)/25, half the spacing of five: the + // same smear without stepped copies on sharp edges (text, UI). + const taps = (f) => { + if (!(k > 0)) return f(""); + const t = []; + for (let j = -4; j <= 4; j += 1) { + const w = 5 - Math.abs(j); + const o = j === 0 ? "" : `${j < 0 ? "-" : "+"}${Math.abs(j) / 2}*ld(4)`; + t.push(w === 1 ? f(o) : `${w}*${f(o)}`); + } + return `(${t.join("+")})/25`; + }; return [ "st(0,1-P)", "st(1,1-pow(1-ld(0),3))", diff --git a/umtool/report-to-video/transition.test.mjs b/umtool/report-to-video/transition.test.mjs @@ -53,7 +53,7 @@ test("transitionStyle: blurslide is a quick eased push (one custom xfade) with g assert.match(x[0], /a1\(X-ld\(2\)/); // every plane read, not just luma // Grain on the half-join nearest the seam, each clip in its own time. const edge = (i) => g.parts.find((p) => p.endsWith(`[p${i}e]`)); - assert.equal(edge(0), "[0:v]setpts=PTS-STARTPTS,noise=alls=3:allf=t+u:enable='gte(t,9.890)'[p0e]"); + assert.equal(edge(0), "[0:v]setpts=PTS-STARTPTS,noise=alls=2:allf=t+u:enable='gte(t,9.890)'[p0e]"); assert.match(edge(1), /enable='gte\(t,11.890\)\+lt\(t,0.110\)'/); assert.match(edge(2), /enable='lt\(t,0.110\)'/); assert.ok(g.parts.includes("[p0a][p1a]acrossfade=d=0.22:c1=tri:c2=tri[a1]"));