Repository navigation
Give your coding agent a song. Get back a beat-synced vertical lyric reel (1080×1920 MP4).
The demo reels are in the README. Turn the sound on.
Install
Any agent, one command (skills.sh):
npx skills add latent-spaces/onbeatClaude Code plugin:
/plugin marketplace add latent-spaces/onbeat
/plugin install onbeat@onbeat
Codex plugin:
codex plugin marketplace add latent-spaces/onbeat
codex plugin add onbeat@onbeatThen ask: "Render the onbeat example." (needs Node 22+ and ffmpeg, no keys or accounts).
What's in it
- Measured timing.
timing.pyfinds the beats, bars, kick sections and level envelopes of a song, and optionally the start and end of each sung word. - Two clocks. Decoration moves on the beat clock and lyrics on the voice clock. Every time in the scene comes from the measured data, not typed seconds.
- Sprite dancers, not a video model. An image model draws one 4×4 sheet of 16 poses once;
SpriteDancesteps through the poses on the beat with a hop on every beat. Each character stays consistent, and a re-render is free. - Creative checkpoints. The agent agrees a concept, shows rough looks and a short dancing draft with sound, then extends it to the full reel.
- Sync check. An overlay draws beat ticks, bar numbers and word marks under the playhead.
- A bundled example that renders as it is, plus
smoke.shandnode --test tests/. - One self-contained skill folder for Claude Code, Codex and other agents.
Known limitations
- The beat tracker assumes one fixed tempo and four beats per bar. Tempo changes, unusual meters and weak percussion need closer review.
- Word alignment is the less tested route. Suno often doesn't sing the lyrics as written, and Whisper mishears vocoder voices. Estimated words are marked and should be disclosed.
- The Higgsfield sprite route is untested and only prints its commands.
- Broad genre coverage, a fresh word-alignment install and a with/without-onbeat comparison have not been verified yet.
- Image generation can cost credits with your provider. The skill asks first and never publishes anything.
Verified for this release
node --test tests/(8 passing) andsmoke.shon a fresh clone; the rendered MP4 has audible sound.- Clean installs from GitHub of the Claude Code plugin, the Codex plugin and
npx skills add. From the clean Claude Code install, a headless agent rendered the example on its own. - The bundled example's beats now come from its own audio.
MIT licensed. The sprite-sheet approach is adapted from page-mascot (MIT).