Web Audio API

Synth Lab

Oscillators, filters, ADSR, delay, and real-time visualization. All synthesized in the browser.

Waveform (Time Domain)

Spectrogram (Time × Freq)

Frequency Spectrum (FFT)

Oscillator

440 Hz
50%

Filter

1000 Hz
1.0

ADSR Envelope

0.01s
0.1s
70%
0.3s

Delay

0ms
30%
0%

Keyboard — click or use keys A S D F G H J K L (white) W E T Y U O (black)

OscillatorNode → BiquadFilter → GainNode → DelayNode → AnalyserNode → Destination

Everything is generated in real-time by the Web Audio API. The oscillator produces a waveform. The biquad filter shapes the harmonics (lowpass, highpass, bandpass, notch). The ADSR envelope controls how the gain changes over time — attack, decay, sustain, release. The delay feeds the signal back on itself with configurable time and feedback. The analyser captures data for all three visualizations: time-domain waveform, FFT spectrum, and a scrolling spectrogram.