Opus Motion ★ Star on GitHub

Music · beat-grid

Beat grid (music clock HUD)

A deadpan music clock: a huge BPM readout, four bar squares that flash on each beat, a beat/bar phase dial, and a scrolling ruler of beats and eighths with section blocks and kick/snare/hat lanes lighting as they cross the playhead — the beat grid every music motion in the library syncs to.

A free, MIT-licensed music visualizer from the Opus Motion Library — 616 motions for Remotion, React and plain HTML.

Beat grid (music clock HUD): three frames of the music visualizer, start, middle and end
Beat grid (music clock HUD) — start, middle and end of the 8.0-second motion.

What Beat grid (music clock HUD) is for

Music-production / DJ / metronome visuals, “how the edit is cut to the beat” explainers, a beat HUD overlay; feed it your song’s `beats` analysis to check sync.

  • beat
  • bpm
  • metronome
  • music
  • tempo
  • bar
  • downbeat
  • rhythm
  • hud
  • timeline
  • sync
  • kick
  • snare
  • dj
  • music video
  • treatise

Details

Category
Music visualisers & audio graphics
Length
8.0 s (240 frames at 30 fps)
Formats
16:9, 1:1, 9:16
Weight
light
Transparent overlay
yes
Seamless loop
no
Text props
—
Colour props
background ink accent
Mood
hud
Roles
accent

Use Beat grid (music clock HUD) in Remotion, React or HTML

Remotion project

terminal
# copy this motion into your Remotion project
node cli/mgl.mjs add beat-grid --to ../my-app/src

# render an mp4 (run in the library folder)
node cli/mgl.mjs render beat-grid --props '{"background":"#0A0A0B","ink":"#EEE9DF","accent":"#FF4D12"}'

# or export for apps / editors: mp4 | webm-alpha | prores-alpha | gif | png | poster
node cli/mgl.mjs export beat-grid --as webm-alpha --props '{"background":"#0A0A0B","ink":"#EEE9DF","accent":"#FF4D12"}'

React / Next.js

tsx
import {MotionPlayer} from 'opus-motion-library/web';

<MotionPlayer
  motion="beat-grid"
  props={{background: '#0A0A0B', ink: '#EEE9DF', accent: '#FF4D12'}}
  playOnView
  loop="auto"
/>

Plain HTML / WordPress

html
<script src="opus-motion.element.js" defer></script>

<opus-motion motion="beat-grid"
  props='{"background":"#0A0A0B","ink":"#EEE9DF","accent":"#FF4D12"}'>
</opus-motion>

Compose spec (multi-scene video)

json
{
  "width": 1920,
  "height": 1080,
  "fps": 30,
  "scenes": [
    {
      "motion": "beat-grid",
      "props": {
        "background": "#0A0A0B",
        "ink": "#EEE9DF",
        "accent": "#FF4D12"
      }
    }
  ]
}

Beat grid (music clock HUD) props

9 parameters — change any of them to make the motion yours.

PropDefaultWhat it does
bpm120tempo used when `beats` has no beat list
offsetSec0.5time of the first beat in seconds (aligns the grid to your song)
beats{}beat data: {bpm, offsetSec, beatsPerBar} or a list of beat times (s), or a full analysis {beats, downbeats, sections, onsets:{kick,snare,hat:[[t,strength]]}}
sections[{"name":"intro","start":0,"end":2.5},{"name":"verse","start":2.5,"end":6.5},{"name":"c…song sections [{name, start, end}] in seconds (used when `beats` has none)
background"#0A0A0B"frame colour or 'transparent' (HUD overlay)
ink"#EEE9DF"type / tick colour
accent"#FF4D12"hit colour
window4seconds of music visible on the ruler
lanestrueshow kick / snare / hat onset lanes (synthesised from the grid when no onsets are given)

Notes & credits

Technique sources:

  • pdoom-video app/src/engine/audio.ts beatAt/barAt/hit/section + data/audio.json schema (MIT)