06.28 · 3D & Advanced

Audio Visualizer

Bars dance to the music, from bass to treble. Best for music players.

Watch it

It moves to a built-in beat, in silence. Press Hear it to play the beat out loud.

Try it

Change a setting and see the difference as it moves.

Style

Wave draws the sound's shape instead of its pitches.

Number of bars

Fewer read better when small.

How bars fall

Slowly sinks like an old stereo.

More optionsFewer options

A small mark holds each bar's highest point for a moment.

Colors

The colors from the bottom of each bar to its top, or along the wave.

Copy the prompt

Paste it into an AI assistant such as ChatGPT, Claude or Cursor to build this in your own project.

Add an audio visualizer to [your music player, podcast card or hero section]. Connect the playing audio to an analyzer that reports, many times a second, how loud each band of pitches is, and draw the bands on a canvas from bass to treble, in the style the settings choose, each sized by its loudness. Give higher bands wider slices of pitch, as hearing does, so the whole row moves. Let bands jump up at once and sink back as the settings choose. Start sound only when the visitor presses play, never use the microphone without asking, and draw fewer bars on phones. If the visitor has reduced motion turned on, keep the bars still until they press play. Match the settings listed below.

Replace the words in brackets with your own element. Your settings are added at the end.

Free and open source. If this helped, a star on GitHub helps other people find it.

Star on GitHub

What it is

The full explanation is in README.md.

Good for

  • Music players
  • Podcast pages
  • Radio and DJ sites
  • Voice notes

Avoid on

  • Pages without sound
  • Reading pages