Opus Motion ★ Star on GitHub

Music · audio-spectrum

Audio spectrum (bars / circle / wave / scope)

Audio-reactive visualiser: rounded gradient bars with peak-hold caps, a circular spectrum around a pulsing disc, a layered mirrored wave, or a green-phosphor oscilloscope, driven by the real soundtrack (64-128 log-spaced bins, release smoothing, peak hold) or by a synthetic beat when no file is given. Exports useAudioEnergy() to drive other motions.

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

Audio spectrum (bars / circle / wave / scope): three frames of the music visualizer, start, middle and end
Audio spectrum (bars / circle / wave / scope) — start, middle and end of the 8.0-second motion.

What Audio spectrum (bars / circle / wave / scope) is for

Music promos, podcast and audiogram clips, DJ / event ads, lyric-video backdrops; pass the same soundtrack path the composition plays.

  • audio
  • spectrum
  • equalizer
  • visualizer
  • visualiser
  • waveform
  • oscilloscope
  • bars
  • music
  • beat
  • reactive
  • audiogram
  • podcast
  • dj
  • sound
  • fft
  • peak hold
  • circular

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
no
Seamless loop
no
Text props
title caption
Colour props
colors background
Image props
src
Mood
—
Roles
subject

Use Audio spectrum (bars / circle / wave / scope) in Remotion, React or HTML

Remotion project

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

# render an mp4 (run in the library folder)
node cli/mgl.mjs render audio-spectrum --props '{"title":"Night Signal","caption":"LIVE MIX","colors":["#7CF5C8","#5B8CFF","#FF6FB5"],"background":"#0A0C16","src":""}'

# or export for apps / editors: mp4 | webm-alpha | prores-alpha | gif | png | poster
node cli/mgl.mjs export audio-spectrum --as mp4 --props '{"title":"Night Signal","caption":"LIVE MIX","colors":["#7CF5C8","#5B8CFF","#FF6FB5"],"background":"#0A0C16","src":""}'

React / Next.js

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

<MotionPlayer
  motion="audio-spectrum"
  props={{
    title: 'Night Signal',
    caption: 'LIVE MIX',
    colors: ['#7CF5C8', '#5B8CFF', '#FF6FB5'],
    background: '#0A0C16',
    src: '',
  }}
  playOnView
  loop="auto"
/>

Plain HTML / WordPress

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

<opus-motion motion="audio-spectrum"
  props='{"title":"Night Signal","caption":"LIVE MIX","colors":["#7CF5C8","#5B8CFF","#FF6FB5"],"background":"#0A0C16","src":""}'>
</opus-motion>

Compose spec (multi-scene video)

json
{
  "width": 1920,
  "height": 1080,
  "fps": 30,
  "scenes": [
    {
      "motion": "audio-spectrum",
      "props": {
        "title": "Night Signal",
        "caption": "LIVE MIX",
        "colors": [
          "#7CF5C8",
          "#5B8CFF",
          "#FF6FB5"
        ],
        "background": "#0A0C16",
        "src": ""
      }
    }
  ]
}

Audio spectrum (bars / circle / wave / scope) props

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

PropDefaultWhat it does
src""soundtrack path under public/ (or URL); empty = synthetic beat
playAudiofalsealso play the file in this layer (leave false if the composition already plays it)
mode"bars"'bars' | 'circle' | 'wave' | 'scope'
bins64number of frequency bands (32-128)
smoothing0.72release smoothing 0.5-0.9 (attack is instant)
peakHold8frames the peak caps hold before falling
sensitivity1input gain multiplier
bpm118tempo of the synthetic beat (and the scope readout)
mirrorfalsebars: grow up and down from the centre line
colors["#7CF5C8","#5B8CFF","#FF6FB5"]gradient colours across the spectrum (scope uses the first)
title"Night Signal"title text
caption"LIVE MIX"small caption
background"#0A0C16"background colour
seed3synthetic beat seed

Notes & credits

Technique sources:

  • prompt-corpus research: audio-spectrum (13 cases, ideas only; original implementation)