Skip to content

onbeat v0.2.0

Latest

Choose a tag to compare

@oronanschel oronanschel released this 15 Nov 07:03
· 7 commits to main since this release

Give your coding agent a song. Get back a beat-synced vertical lyric reel (1080×1920 MP4).

onbeat sprite dance

The demo reels are in the README. Turn the sound on.

Install

Any agent, one command (skills.sh):

npx skills add latent-spaces/onbeat

Claude 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@onbeat

Then ask: "Render the onbeat example." (needs Node 22+ and ffmpeg, no keys or accounts).

What's in it

  • Measured timing. timing.py finds 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; SpriteDance steps 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.sh and node --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) and smoke.sh on 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).