RemotionUI

Audiogram Bars

Audio-reactive spectrum bar visualization.

PrimitiveData & mediaAdvanced

audiogram-bars30fps · 960×540
Install
$ npx remotion-ui@latest add audiogram-bars

Log-spaced spectrum bands with decaying peak caps, driven by visualizeAudio() from @remotion/media-utils.

Advanced. Installs @remotion/media-utils.

Agent notes

Install first, then import the copied source component locally. AI guide →

Import
@/remotion/primitives/audiogram-bars
  • Use when: audio-first videos, podcast clips, and waveform visuals.
  • Customize: src, height, barColor, barColorEnd, plus copied source for timing, layout, colors, and typography.
  • Rule: do not import this component from the remotion-ui npm package; it is copied into your project.

Usage

Example
import { AudiogramBars } from "@/remotion/primitives/audiogram-bars"; <AudiogramBars src={staticFile("podcast.wav")} height={120} />

API Reference

PropTypeDescription
src*stringAudio file URL or staticFile path.
heightnumberBar container height.
barColorstringBar fill color.
barColorEndstringSecond color for a gradient across the spectrum. Defaults to barColor.
barGapnumberGap between bars in px.
numberOfSamplesnumberFFT size used to sample the spectrum.
maxBarCountnumberLog-spaced bands drawn from the spectrum.
align"bottom" | "center"Grow bars from the baseline or mirror them around it.
showPeaksbooleanDraw the decaying peak cap above each bar.
showReflectionbooleanFaded mirrored copy below the baseline. Ignored when align is center.
framenumberFrame override — pass the parent frame inside a Sequence.

Related