Halloween Pumpkin Keyboard Animation

By @leohuanfang. Made with Claude Opus 5.5. Watch the original post.

Prompt

Make a 17-second vertical (1080x1920, 30 fps) Halloween animation with sound, using only code. No video model, no image model, no audio samples.
Draw every pixel on an HTML canvas, synthesize every sound in Python (numpy), render frame by frame with a headless browser, mux with ffmpeg at -14 LUFS.
Core rule: every sound must be caused by something you can see.
- A ghost hops from pumpkin to pumpkin. Each landing lights that pumpkin's face and plays its note. 9 pumpkins = 9 pitches like a keyboard: 7 orange in front (A3 B3 C4 D4 E4 G4 A4), 2 white behind (Bb3, D#4). Note names under each pumpkin.
- From ~3 s: three tombstones jump on every beat = bass.
- From ~6 s: the moon pulses = kick; bats beat their wings = hi-hat.
- Chorus: lightning = clap; 8 more ghosts burst out of the graves and land on the chord's pumpkins = organ chord stabs.
Music: Grieg, "In the Hall of the Mountain King" (1875, public domain), A minor. Play the 4-bar theme twice as one accelerando (eighth note 0.22 s -> 0.12 s), then a snare roll + riser,
then 0.75 s of near silence (screen goes dark, the ghost hangs mid-air, caption "WAIT…"). Chorus at ~2/3 of the video: flash, crash, full organ chord, pumpkins catch fire. End on one big A-minor hit with all 9 ghosts landing at once.
Loop it: after the final hit the other ghosts fly off and the first ghost jumps back onto pumpkin A, landing exactly on frame 0.
Captions (top third): first frame "A GHOST PLAYS / THE PUMPKINS / Claude Opus 5.5 wrote every frame and every note" with sound at 0.0 s; then "THE GRAVES ARE THE BASS", "BATS = HI-HAT / MOON = KICK", "WAIT…", "EVERYBODY OUT!", "HAPPY HALLOWEEN / name the song?".
Compute all events in Python first, save them to JSON, and make the canvas a pure function renderAt(t) of that JSON, so picture and sound can never drift apart.

Browse all 1008 videos