FFT spectrum

Render a two-tone signal and inspect its frequency-domain peaks.

npx web-audio-api fft
f1=<hz>
first tone
f2=<hz>
second tone
fft=<size>
analyser resolution
ready

This is an FFT spectrum analyzer example: a two-tone signal is rendered offline and inspected with an AnalyserNode to find its frequency-domain peaks. Run it from the Node CLI, or open it in the browser to render and inspect the same spectrum.