Archilyzer · Source

archilyzer

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

commit 1ca0fc2463136ebe0049888f9f679f5ccaa41302
parent ab4c81380eb2033f5b9a2e233896792d38c6109a
Author: I Mean I'm Just Saying <imeanimjustsaying@kiwifarms.st>
Date:   Fri,  6 Nov 2026 01:14:29 -0500

umtool: the instruments' first state is up from the cut's first frame

A block shown from t 0 was a cue at its own start there -- opacity 0 -- so
frame 1 (and Play seeked to the cut's start) drew no readout. It is up in
init now (instruments.spec's Play test caught it at c01).

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

Diffstat:
Mumtool/report-to-video/chrome-instruments.mjs | 10+++++++---
Mumtool/report-to-video/instruments.test.mjs | 4++++
2 files changed, 11 insertions(+), 3 deletions(-)

diff --git a/umtool/report-to-video/chrome-instruments.mjs b/umtool/report-to-video/chrome-instruments.mjs @@ -87,9 +87,13 @@ function withDeck(L, schedule, render, k) { function blocks(L, list, key, { fade = INSTANT, shown = (x) => true } = {}) { list.forEach((x, j) => { const k = `${key}${j}`; - L.set(k, { autoAlpha: 0 }); - if (!shown(x)) return; - L.add(k, x.t, fade, { autoAlpha: 1 }, "power1.out"); + // A block from the cut's first instant is up in init: a cue at 0 is at its own start there (opacity 0). + if (!shown(x)) { L.set(k, { autoAlpha: 0 }); return; } + if (x.t <= 0) L.set(k, { autoAlpha: 1 }); + else { + L.set(k, { autoAlpha: 0 }); + L.add(k, x.t, fade, { autoAlpha: 1 }, "power1.out"); + } const next = list[j + 1]; if (next) L.add(k, next.t, INSTANT, { autoAlpha: 0 }); }); diff --git a/umtool/report-to-video/instruments.test.mjs b/umtool/report-to-video/instruments.test.mjs @@ -194,6 +194,10 @@ test("the dial's page: the needle swings on each stated weight and is keyed once assert.match(html, /dial:ready/); assert.match(html, />&gt;240<i>LB<\/i>/); assert.match(html, /HE SAYS HE WEIGHS/); + // The state before any weight is up from the cut's first instant (the dash's block in init). + const data = JSON.parse(/<script id="dial-data" type="application\/json">(.*?)<\/script>/s.exec(html)[1]); + assert.deepEqual(data.init.cv0, { autoAlpha: 1 }); + assert.ok(!data.cues.some((c) => c.k === "cv0" && c.to.autoAlpha === 1)); const frames = Math.round(schedule.total * FPS); const keys = frameKeys({ html, region: "dial", fps: FPS, frames, version: "t" }); assert.ok(keys, "the frame keys model the dial's page");