Opus Motion ★ Star on GitHub

Music · lyric-timing

Lyric timing lane (word + syllable sync)

A DAW-style lyric lane: every word is a block sized to its sung duration scrolling past a playhead on a beat grid, filling as it is sung (split at syllables, dashed when estimated), with line brackets, confidence bars, a word readout and the current line lighting word by word above.

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

Lyric timing lane (word + syllable sync): three frames of the music visualizer, start, middle and end
Lyric timing lane (word + syllable sync) — start, middle and end of the 10.0-second motion.

What Lyric timing lane (word + syllable sync) is for

Show / check word timing for karaoke and captions, “how the lyric video is synced” explainers, music-tech UI; doubles as a QA view for your lyrics.json.

  • lyrics
  • karaoke
  • word timing
  • syllables
  • alignment
  • timeline
  • daw
  • music
  • captions
  • sync
  • subtitles
  • whisper
  • qa
  • treatise

Details

Category
Music visualisers & audio graphics
Length
10.0 s (300 frames at 30 fps)
Formats
16:9, 1:1, 9:16
Weight
light
Transparent overlay
yes
Seamless loop
no
Text props
lines
Colour props
background ink accent
Mood
nature, editorial
Roles
subject

Use Lyric timing lane (word + syllable sync) in Remotion, React or HTML

Remotion project

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

# render an mp4 (run in the library folder)
node cli/mgl.mjs render lyric-timing --props '{"lines":["Turn the city lights up one more time","Every heartbeat lands right on the line","Hold the signal, never let it fade","We are louder than the noise we made"],"background":"#0A0A0B","ink":"#EEE9DF","accent":"#FF4D12"}'

# or export for apps / editors: mp4 | webm-alpha | prores-alpha | gif | png | poster
node cli/mgl.mjs export lyric-timing --as webm-alpha --props '{"lines":["Turn the city lights up one more time","Every heartbeat lands right on the line","Hold the signal, never let it fade","We are louder than the noise we made"],"background":"#0A0A0B","ink":"#EEE9DF","accent":"#FF4D12"}'

React / Next.js

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

<MotionPlayer
  motion="lyric-timing"
  props={{
    lines: [
      'Turn the city lights up one more time',
      'Every heartbeat lands right on the line',
      'Hold the signal, never let it fade',
      'We are louder than the noise we made',
    ],
    background: '#0A0A0B',
    ink: '#EEE9DF',
    accent: '#FF4D12',
  }}
  playOnView
  loop="auto"
/>

Plain HTML / WordPress

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

<opus-motion motion="lyric-timing"
  props='{"lines":["Turn the city lights up one more time","Every heartbeat lands right on the line","Hold the signal, never let it fade","We are louder than the noise we made"],"background":"#0A0A0B","ink":"#EEE9DF","accent":"#FF4D12"}'>
</opus-motion>

Compose spec (multi-scene video)

json
{
  "width": 1920,
  "height": 1080,
  "fps": 30,
  "scenes": [
    {
      "motion": "lyric-timing",
      "props": {
        "lines": [
          "Turn the city lights up one more time",
          "Every heartbeat lands right on the line",
          "Hold the signal, never let it fade",
          "We are louder than the noise we made"
        ],
        "background": "#0A0A0B",
        "ink": "#EEE9DF",
        "accent": "#FF4D12"
      }
    }
  ]
}

Lyric timing lane (word + syllable sync) props

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

PropDefaultWhat it does
lines["Turn the city lights up one more time","Every heartbeat lands right on the line","Hol…plain lyric lines (used when `lyrics` is empty): timed onto the beat grid, words on eighth notes
lyrics[]timed lyrics: [{text, start, end, words?: [{text, start, end, syl?:[[a,b]]}]}] in seconds; words without times are estimated
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]]}}
window5seconds visible across the lane
background"#0A0A0B"frame colour or 'transparent'
ink"#EEE9DF"type / block colour
accent"#FF4D12"current word + playhead colour
showLinetrueshow the current line above the lane, lighting word by word

Notes & credits

Technique sources:

  • pdoom-video app/src/engine/lyrics.ts wordProgress/lineCharProgress + data/lyrics.json schema (MIT; no lyric content used)