A music video for the Omarchy anthem, made entirely in code.
Watch it on YouTube · 4K · 60 fps · 5:06 ·
github.com/TripleU613/OmarchThemeVideo
We Can Fix Everything (The Ultimate Machine) by Kevin Koontz / REARRANGED, as a five-minute film in the Tokyo Night look of omarchy.org.
There's no video editor, no stock footage and no generated imagery. It's 66 scenes of JavaScript drawing on canvas, rendered to video with HyperFrames:
- One idea per sung line. Every line gets its own visual metaphor, and the words are the material the idea acts on, never a caption.
- On the vocal. Every word lands on its sung onset, from forced alignment against the isolated vocal.
- On the drums. A shared edit camera punches, jolts and rolls on the drums measured on the song itself, and builds through the fills into each drop.
- Invisible cuts. Scenes hand off on agreed frames, so the film plays as one take.
song ──► analysis/ word timing, beats, drums lines.json, drums.json
lyrics ► lyrics-from-lrc your words on that timing lyrics.txt → lyrics.js
ideas ─► storyboard/ one idea per line IDEAS.md, scenes.json
► assemble scene windows and pages index.html, dev.html
► assets/scenes/ 66 scenes, one file each
► render HyperFrames, 4K at 60 fps renders/*.mp4
- Analysis (
analysis/, Python). Demucs isolates the vocal and a wav2vec2 forced aligner places every word on it (align.py,refine.py,finalize.py→lines.json).refine_events.pymeasures every kick, snare, fill and beat on the song at its attack (drums.json), andfeatures.pyprecomputes the spectrum the scenes react to. - Lyrics.
npm run lyrics:from <file.lrc|.srt|.ass>lays a word-by-word lyric file onto the aligned timing, andnpm run lyrics:buildturns it intolyrics.js. Scenes only ever reach the words throughOM.sung(id). - Ideas.
storyboard/IDEAS.mdholds the idea for every line, andstoryboard/scenes.jsonthe scene list. The three choruses escalate: one person and one machine, then a crowd and a city, then the world. - Assemble.
npm run assembleplaces every scene on the beat before its first word and writesindex.htmlfor rendering,dev.htmlfor the live player,play.htmlfor the public one, andSTORYBOARD.md. - Scenes. Each scene is a pure function of song time:
OM.scene({ id, build(el) { return { render(t, T) {} } } }). It runs its own camera and GLSL shader (assets/lib/post.js). Over all of them run two shared layers: the edit camera (end ofassets/lib/kit.js) and a border of frame effects (assets/lib/frames.js). - Check and render.
npm run verifychecks the repo, and CI runs it with the assemble and lint checks.npm run render:4krenders the final cut (about 18 minutes on one L40 GPU).
analysis/ song → timing data (Python)
music-video/ the HyperFrames composition
assets/scenes/ the 66 scenes, one file per line
assets/lib/ the engine: stage, kit, edit camera, post, frames, timing
assets/vendor/ three.js, GSAP
storyboard/ ideas, scene list, effects plan, agent briefs
scripts/ assemble, verify, timing, lyrics, render, checks
docs/ images for this page
LICENSES/ third-party license texts
git clone https://github.com/TripleU613/OmarchThemeVideo
cd OmarchThemeVideo/music-video
npm run serve # live player at http://localhost:3123/dev.html
npm run assemble # rebuild the pages after changing the storyboard
npm run verify # repo checks (CI runs these too)
npm run render:4k # final render, 3840x2160 at 60 fpsPlayer keys: space plays, arrows move 2 s, Shift+arrows jump scenes, , and . step a
frame, L loops the scene, M mutes. The time lives in the URL (#t=81.25).
- Put your song at
music-video/assets/audio/song.wavand run the analysis inanalysis/to getlines.jsonanddrums.json. npm run lyrics:from <your.lrc>, thennpm run lyrics:buildandnpm run timing.- Write your ideas, list your scenes in
storyboard/scenes.json,npm run assemble. - Build the scenes by hand or with agents (
storyboard/AGENT-BRIEF.md), watching them innpm run serve.AGENTS.mdhas the rules every scene follows. npm run verify, then render.
Made by TripleU613, with coding agents working from one shared brief. Song: We Can Fix Everything (The Ultimate Machine) by Kevin Koontz / REARRANGED. Omarchy by DHH. Built with HyperFrames, three.js and GSAP; type is JetBrains Mono.
The code is MIT. The song, its words and the Omarchy marks belong to their owners and aren't covered by it; see THIRD-PARTY-NOTICES.md.

