Sound Wave Visualizer

Interactive simulation โ€” adjust parameters and watch the visualization update in real time.

How it works

Live waveform (pressure vs time) and a bar spectrum from your microphone using the Web Audio API. Speak, clap, or play music โ€” peaks in the spectrum show which frequencies carry energy.

Key equations

Bin i โ‰ˆ i ยท (sampleRate / FFT size) Hz up to Nyquist f_N = sampleRate / 2