Sound as a row of moving boxes
Press start visualizer, allow microphone access, and make a sound. Thirty-two boxes rise and fall with the microphone's frequency levels while the row slowly rotates. A steady hum makes a pattern easier to follow than speech or a clap.
The depth is part of the drawing. It doesn't tell you where a sound came from. Each box stands for a frequency band, ordered from lower to higher across the row. Its color stays fixed; its height changes.
Keeping the boxes on the floor
The start button creates and resumes a Web Audio context. An analyser with an FFT size of 64 supplies 32 bins, one per box. On every animation frame, each box gets a height of its byte-valued level divided by 16, with a minimum of 1.
The code also moves the box's center up by half its height. That keeps the bottom on the baseline instead of letting it grow downward through the floor. Lights give the boxes their shading, and a small rotation each frame turns the whole scene.
Even silence leaves boxes on screen because of that minimum height. And one box doesn't mean one note: a single musical sound has harmonics across several bands, while nearby pitches can share a bin. With only 32 bins, this is a coarse picture.
There are no orbit controls, labeled frequency axis, or decibel calibration. The microphone and room affect the result. The stop visualizer button also doesn't fully release microphone access; close the tab or revoke the site's permission to end it.
The flat canvas version uses a larger FFT. MDN's AnalyserNode reference explains how FFT size changes the frequency data available to draw.