HomeLabHire Me
ml-ui10 components

Get started

IntroductionInstallation

UI

Dots

Dot CalendarNewDot CodeNew

Dither

Dither GlobeNew

Text

Ink PrintNew

Data viz

Dither

Dither MapNew

Media

Dots

Dot WaveformNew

AI

Diffusion ImageNew

Backgrounds

Koi PondNewMarigoldsNewWhite BlossomNew

ml-ui / Media

Dot Waveform

For a clip, a podcast or a recording. The waveform is read from the audio itself, each column as loud as the clip is there, lit in the accent up to the playhead and dim after, with the unlit dots of the panel faintly there. Point along it for the time; click anywhere to play from there, or drag to scrub; focused, the arrow keys skip and space plays. The demo is a made-up podcast that reviews the paperclip, voiced with ElevenLabs.

Needs: None. Web Audio decodes the file once to read its loudness.

Customize

Props

PropTypeDefaultDescription
srcstringrequiredThe audio file.
titlestring–What's playing, shown above the waveform.
heightnumber48Height of the waveform in px.
tonestring–The played part's colour. The page's accent by default.
pitchnumber3Size of one dot in px.
stepnumber5Seconds the arrow keys skip.
classNamestring–Class on the player. It fills its container's width.
styleCSSProperties–Style on the player.