Archilyzer · Source

archilyzer

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

commit 4be38e262fd8a2dc666f50d438682fdb52202419
parent e579610c89dfcd6fc8f3c86b73ccb0dd0057a70a
Author: I Mean I'm Just Saying <imeanimjustsaying@kiwifarms.st>
Date:   Thu, 12 Nov 2026 02:53:24 -0500

umtool: a take's window filters fx.glitch.clips only for a glitch on "clips" -- in another mode the list is not read, so it and the glitch are left as they were

Co-Authored-By: Claude <noreply@anthropic.com>

Diffstat:
Mumtool/lib/report/takeMaker.mjs | 4+++-
Mumtool/lib/report/takeMaker.test.mjs | 5+++++
2 files changed, 8 insertions(+), 1 deletion(-)

diff --git a/umtool/lib/report/takeMaker.mjs b/umtool/lib/report/takeMaker.mjs @@ -409,7 +409,9 @@ export function windowManifest(manifest, ids) { if (clips.length) fx[k].clips = clips; else delete fx[k]; } - if (isObj(fx.glitch) && Array.isArray(fx.glitch.clips)) { + // Only a glitch on "clips" reads its list (fx.mjs); in another mode the list is not looked at, so it is left + // alone -- and the glitch with it. + if (isObj(fx.glitch) && fx.glitch.on === "clips" && Array.isArray(fx.glitch.clips)) { const clips = fx.glitch.clips.filter((id) => isClip(id) && m.timeline[at.get(id) - 1]?.type === "clip"); if (clips.length) fx.glitch.clips = clips; else delete fx.glitch; diff --git a/umtool/lib/report/takeMaker.test.mjs b/umtool/lib/report/takeMaker.test.mjs @@ -602,6 +602,11 @@ test("windowManifest: an effect's clip list keeps the window's clips -- a glitch assert.deepEqual(validateFxEntries(none, { schedule: null }), []); // The full window keeps every one. assert.deepEqual(windowManifest(manifest, clipIds).render.chrome.fx, manifest.render.chrome.fx); + // A glitch in another mode never reads its list (fx.mjs): the window leaves it, and the glitch, as they were. + const byYear = { ...manifest, render: { ...manifest.render, chrome: { ...manifest.render.chrome, fx: { glitch: { on: "year", clips: ["k06"] } } } } }; + assert.deepEqual(windowManifest(byYear, ["k02", "k03", "k04"]).render.chrome.fx, { glitch: { on: "year", clips: ["k06"] } }); + const noMode = { ...manifest, render: { ...manifest.render, chrome: { ...manifest.render.chrome, fx: { glitch: { clips: ["k06"] } } } } }; + assert.deepEqual(windowManifest(noMode, ["k02", "k03", "k04"]).render.chrome.fx, { glitch: { clips: ["k06"] } }); // A pair cut by the window's edge is dropped, the other kept. assert.deepEqual(windowManifest(manifest, ["k03", "k04", "k05", "k06"]).render.chrome.fx.thenNow.pairs, [{ then: "k05", now: "k06" }]); });