FFT spectrum

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

ready

node examples/fft.js
f1=<hz>
first tone
f2=<hz>
second tone
fft=<size>
analyser resolution
Graph
2 Oscillators → Analyser → AudioBuffer
Input
Signal, FFT size
Output
Spectrum bins, peaks

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.