Opus Motion ★ Star on GitHub

Music · lyric-video

Lyric video (karaoke + beat)

Big lyric lines set left in a heavy variable grotesk; unsung words wait as hairline outlines and fill solid at the singer’s speed (syllable-aware), the current word lights hazard orange and creeps, the type breathes on every kick, a beat ruler and bar counter tick along the bottom.

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

Lyric video (karaoke + beat): three frames of the music visualizer, start, middle and end
Lyric video (karaoke + beat) — start, middle and end of the 17.0-second motion.

What Lyric video (karaoke + beat) is for

Lyric videos, word-synced song captions, music promos: pass `lyrics` (word timings) or just `lines` + `bpm`/`offsetSec`.

  • lyric video
  • karaoke
  • lyrics
  • song
  • music
  • beat
  • bpm
  • word timing
  • captions
  • sync
  • kinetic typography
  • variable font
  • treatise
  • music video
  • singalong

Details

Category
Music visualisers & audio graphics
Length
17.0 s (510 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, playful, editorial
Roles
subject

Use Lyric video (karaoke + beat) in Remotion, React or HTML

Remotion project

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

# render an mp4 (run in the library folder)
node cli/mgl.mjs render lyric-video --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-video --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-video"
  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-video"
  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-video",
      "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 video (karaoke + beat) props

14 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]]}}
beatsPerLine8when timing plain `lines`: beats per line (8 = two bars)
background"#0A0A0B"frame colour, or 'transparent' to lay the lyrics over footage
ink"#EEE9DF"bone type colour (sung words)
accent"#FF4D12"colour of the word being sung
unsung"outline"'outline' (hairline outline) or 'dim' (30 % ink) for words not yet sung
align"left"'left' (treatise default) or 'center'
beatReact1how hard the type and background react to the beat (0 = still)
showGridtrueshow the beat ruler + bar counter at the bottom
size118lyric size in u (auto-shrinks so the longest word fits)

Notes & credits

Technique sources:

  • pdoom-video docs/TREATMENT.md karaoke rules + engine/lyrics.ts (MIT)
  • pdoom-video plates fig02/fig12 (karaoke-fill look)