Fourier Transform Audio Visualizer
Pick a wave shape and see its harmonics as bars, then select Start to hear the tone or analyze your voice, an instrument, or any ambient sound through the microphone.
Frequency 440 Hz, volume 0.15, sine wave
Sine wave at 440 Hz, volume 0.15. A sine wave has only the fundamental, one frequency.
The wave panel always shows 10 ms between plus and minus 0.5. Bars share one scale from 0 to 0.65 and show harmonics 1 to 16 up to 20 kHz. The live spectrum below uses decibels, so quiet harmonics look taller there. The live analyser's peaks can read a little lower than these ideal bars, because the browser's built-in waves are not perfectly ideal.
Start plays the oscillator's tone at the volume you set.
Live analyser
Analysis
The yellow line on the live spectrum marks the loudest frequency. Change the wave shape while the tone plays to hear and see the harmonics change.
Reference Guide
The Fourier Transform
Any periodic signal can be decomposed into a sum of sines and cosines.
The browser uses the discrete fast Fourier transform (FFT) operating on short windowed buffers of the audio waveform.
Harmonic Series
Real instruments produce a fundamental plus integer-multiple harmonics
A square wave contains only odd harmonics. A sawtooth contains all harmonics. A pure sine has only the fundamental.
FFT Size and Resolution
The frequency resolution is the sample rate divided by the FFT size
A 2048-point FFT at 48 kHz gives ≈ 23 Hz resolution. Larger FFT = finer frequency detail but coarser time resolution. This is the time-frequency uncertainty principle.
Speech and Music
Human voices typically span 80 to 1000 Hz fundamentals plus harmonics out to 8 kHz. Vowels have characteristic formant patterns.
Concert A is 440 Hz. Doubling the frequency raises a note by one octave.
The spectrogram sits below the live spectrum. New columns enter on the right and scroll to the left, so it shows how the spectrum changes over time. It stays off when your device asks for reduced motion.