Archilyzer · Source

archilyzer

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

commit 9933f757baa3610ff886dc286d6881ddda937b55
parent df4a4f6912fc6b806abab1bc82b7dc85e9d9b136
Author: I Mean I'm Just Saying <imeanimjustsaying@kiwifarms.st>
Date:   Tue, 27 Oct 2026 05:12:24 -0400

chrome frame keys: a moved clip's fuse keys as it did

The Huck trim proof captured 11,116 deck frames where 2,586 changed: the
fuse's burn is timed between two segments' starts, each stored to the
millisecond, so in a cut moved by 59 frames it ran a millisecond longer or
shorter -- and its restated transformOrigin, a string, was keyed with the
burn's length on every frame. The fuse's length now comes from its ends
on the cue grid, and a string a cue does not change is keyed as itself.

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

Diffstat:
Mumtool/report-to-video/chrome-deck.mjs | 5++++-
Mumtool/report-to-video/frame-keys.mjs | 2++
Mumtool/report-to-video/frame-keys.test.mjs | 24++++++++++++++++++++++++
3 files changed, 30 insertions(+), 1 deletion(-)

diff --git a/umtool/report-to-video/chrome-deck.mjs b/umtool/report-to-video/chrome-deck.mjs @@ -279,7 +279,10 @@ export function deckCues(schedule, render) { for (let k = 0; k < pips.length - 1; k += 1) { const a = arrive.get(k), b = depart.get(k); if (a === undefined || b === undefined) continue; - add("fuse", a, b - a, { scaleX: frac(k + 1), transformOrigin: "0% 50%" }, "none", `fuse ${pips[k].id}`); + // Its length from its ends on the cue grid: two segments' starts, each + // stored to the millisecond, would make it a millisecond off in a cut + // moved by a number of frames -- and every frame of its burn a new key. + add("fuse", a, cueTime(b, fps) - cueTime(a, fps), { scaleX: frac(k + 1), transformOrigin: "0% 50%" }, "none", `fuse ${pips[k].id}`); } } diff --git a/umtool/report-to-video/frame-keys.mjs b/umtool/report-to-video/frame-keys.mjs @@ -212,6 +212,8 @@ export function frameKeys({ html, region, assets = [], fps, frames, version }) { if (typeof from === "number" && typeof to === "number") { return `r${gsapRound(from + (to - from) * ease(cur.ease)(u))}`; } + // A string that does not change (a transformOrigin restated) is that string. + if (from === to) return `e${repr(to)}`; // A string in flight: the cue and its own clock, to the microsecond. return `x${JSON.stringify([from, to, cur.ease, cur.dur])}@${(t - cur.at).toFixed(6)}`; }; diff --git a/umtool/report-to-video/frame-keys.test.mjs b/umtool/report-to-video/frame-keys.test.mjs @@ -67,6 +67,30 @@ test("frame keys: the moved frames of a longer opening key as they did", () => { assert.notEqual(A[400], A[700]); }); +test("frame keys: a cut moved by frames keys as it did when its times are stored to the millisecond", () => { + // The schedule stores seconds to 3 places (deck.mjs): a move of 59 frames + // (not a multiple of 3) moves each start by 59/30 s give or take a millisecond. + const r3 = (v) => Math.round(v * 1000) / 1000; + const at = (introFrames) => { + // Clips of uneven frame counts, so their starts fall on every third of a frame. + const frames = [introFrames, 301, 242, 391, 180]; + const s = schedule(0); + let t = 0; + s.segments = s.segments.map((x, i) => { + const d = frames[i] / 30; + const seg = { ...x, start: r3(t), duration: r3(d), end: r3(t + d) }; + t += d - 0.5; + return seg; + }); + s.total = r3(t + 0.5); + return s; + }; + const A = keysOf(at(160)), B = keysOf(at(160 + 59)); + let same = 0, n = 0; + for (let f = 200; f < A.length; f += 1) { n += 1; if (B[f + 59] === A[f]) same += 1; } + assert.equal(same, n, `${n - same} moved frames keyed differently`); +}); + test("frame keys: a changed title changes every frame (it is in the page); a changed value only where it shows", () => { const A = keysOf(schedule(0)); const T = keysOf(schedule(0, { c02: "Another sanctuary" }));