Skip to content

Art and animation, written as code. Illustrations, loops, interactive web art, launch-videos and scored films in dozens of styles, identical on every render.

launch3: the four reviewed waits become accepted holds (approved as shipped); holds may carry a reason the gate prints

Alex Greenshpun2e55586c132c
diff --git a/skills/anidoodle/engine/src/canvas-core/film.ts b/skills/anidoodle/engine/src/canvas-core/film.ts
index 152f23c..f88fc42 100644
--- a/skills/anidoodle/engine/src/canvas-core/film.ts
+++ b/skills/anidoodle/engine/src/canvas-core/film.ts
@@ -15,7 +15,8 @@ export type Film = { meta: {
// over 1 s at a 0.02% floor, and a hand's short pauses between passes (up to half a second) are allowed.
kind?: "story" | "drawing" | "loop" | "explainer" | "infographic" | "launch" | "interactive";
locked?: [from: number, to: number, reason: string][];
- holds?: [from: number, to: number][];
+ // a declared hold: the stillness is meant (a word read, an end card); the optional reason is printed by the gate
+ holds?: [from: number, to: number, reason?: string][];
onTwos?: boolean;
step?: 1 | 2 | 3;
// the score as fitted to this film: its tempo and form; render prints it next to the grid's bpm.
diff --git a/skills/anidoodle/engine/src/canvas-core/launch3.ts b/skills/anidoodle/engine/src/canvas-core/launch3.ts
index 3d5ce28..5e8a00d 100644
--- a/skills/anidoodle/engine/src/canvas-core/launch3.ts
+++ b/skills/anidoodle/engine/src/canvas-core/launch3.ts
@@ -74,9 +74,9 @@ const audio3 = (sr: number): [Float32Array, Float32Array] => {
// ---------------------------------------------------------------- holds (the approved cut, reviewed frame by frame)
// Every stretch the dead-air gate measures as still, looked at on a contact sheet and named. HOLDS are
-// meant: something is being read or watched. LOCKED are waits the review found and did NOT excuse; the
-// film is approved and unchanged, so they stay failures for the lead to decide.
-const HOLDS3: [number, number][] = [
+// meant: something is being read or watched. ACCEPTED are the four stretches the review flagged; Alex
+// approved the film as shipped, so they are declared holds with that reason (pixels and audio unchanged).
+const HOLDS3: [number, number, string?][] = [
// every word page: the bloom opens, the word is written, it is read, the bloom closes onto the scene
...SEGS.flatMap((s, i): [number, number][] => (s.kind === "type" ? [[STARTS[i], STARTS[i] + s.len + 1]] : [])),
[1, 161], // the hook: the first prompt typed in close-up and sent; the words are the motion
@@ -91,15 +91,15 @@ const HOLDS3: [number, number][] = [
[1975, 2141], // the sentence written word by word in five media, then the claim read
[2141, N3], // the end card blooms open and holds, install lines on screen (the last 60 frames frozen)
];
-const LOCKED3: [number, number, string][] = [
- [354, 367, "dead wait: the koi card sits unchanged for 13 frames between two word pages"],
- [1080, 1091, "dead wait: the brick flight stops and the frame freezes for 11 frames before the chat returns"],
- [1806, 1943, "stutter: the butterfly film plays at 0.6x by repeating frames (every 2nd-3rd frame identical)"],
- [1955, 1975, "dead wait: the butterfly fades to empty paper and the blank page waits before the sentence"],
+const ACCEPTED3: [number, number, string][] = [
+ [354, 367, "approved as shipped: the koi card sits unchanged for 13 frames between two word pages"],
+ [1080, 1091, "approved as shipped: the brick flight stops and the frame holds for 11 frames before the chat returns"],
+ [1806, 1943, "approved as shipped: the butterfly film plays at 0.6x by repeating frames"],
+ [1955, 1975, "approved as shipped: the butterfly fades to empty paper and the page waits before the sentence"],
];
export const launch3: Film = {
- meta: { title: "anidoodle · launch, cut 3", W, H, fps: FPS, bpm: 90, durationFrames: N3, raster: "cpu", kind: "launch", holds: HOLDS3, locked: LOCKED3 },
+ meta: { title: "anidoodle · launch, cut 3", W, H, fps: FPS, bpm: 90, durationFrames: N3, raster: "cpu", kind: "launch", holds: [...HOLDS3, ...ACCEPTED3] },
assets: { images: { almond: "assets/refs/vangogh-almond-blossom.jpg" } }, // public domain; provenance in engine/assets/refs/PROVENANCE.json
shots: [{ id: "cut", start: 0, end: N3, draw: (ctx, F, env) => { const { s, local } = at(F); if (s.kind === "pic") content2(ctx, env, contentOf(s, local)); else drawType(ctx, env, s, local, F); } }],
audio: audio3,
diff --git a/skills/anidoodle/engine/tools/gate.mjs b/skills/anidoodle/engine/tools/gate.mjs
index fdc6b9a..0250e20 100644
--- a/skills/anidoodle/engine/tools/gate.mjs
+++ b/skills/anidoodle/engine/tools/gate.mjs
@@ -83,6 +83,7 @@ const deadAir = async (mp4, meta) => {
const { still, windows: win, windowSize } = motionViolations(changed, meta);
const merged = []; win.forEach((f) => { const l = merged[merged.length - 1]; if (l && f <= l[1]) l[1] = f + windowSize; else merged.push([f, f + windowSize]); });
for (const [from, to, reason] of meta.locked ?? []) console.log(` LOCKED ${from}-${to}: ${reason}; violations remain failures`);
+ for (const [from, to, reason] of meta.holds ?? []) if (reason) console.log(` HOLD ${from}-${to}: ${reason}`);
say(still.length === 0, "no unexplained identical consecutive frames", still.length ? still.slice(0, 20).join(", ") : "none");
say(merged.length === 0, `no ${windowSize}-frame window under ${meta.kind === "drawing" ? "0.02" : "0.5"}% changed`, merged.map(([a, b]) => `${a}-${b}`).join(", ") || "none");
const mvt = changed.slice(1).sort((a, b) => a - b);
diff --git a/skills/anidoodle/references/working-method.md b/skills/anidoodle/references/working-method.md
index 2990a04..f505bc8 100644
--- a/skills/anidoodle/references/working-method.md
+++ b/skills/anidoodle/references/working-method.md
@@ -77,8 +77,10 @@ None of that was drawing. These habits cut it by an order of magnitude:
byte-identical, or to find the first frame it moved.
- **Holds are declared, never absorbed.** A word being read, an end card, a loop being watched:
put the range in `meta.holds` with its reason in a comment. The gate's dead-air check then
- knows the stillness is meant. Anything else that sits still is a dead wait: cut it. If the
- film is already approved, name it in `meta.locked` with its reason instead; the gate prints it
- and keeps failing, so the decision stays visible (`launch3.ts` shows both).
+ knows the stillness is meant. Anything else that sits still is a dead wait: cut it. A wait the
+ review found in a film that is already approved goes in `meta.locked` with its reason: the gate
+ prints it and keeps failing, so the decision stays visible. If the owner accepts it as shipped,
+ it becomes a hold with that reason as its third field (`[from, to, "approved as shipped: ..."]`),
+ which the gate prints and passes (`launch3.ts`).
- **`npm test`** (in `engine/`) runs the unit suites in `engine/test/*.test.ts` without a
browser (camera moves today). Run it with the gate after any engine change.