Play n Tools

Free tools & games for everyone

Free · No sign-up · No accounts

Synth & filter lab

Play a small synthesizer and see how it works: waveforms, filter cutoff and resonance, ADSR envelopes and LFO wobble, with the filter curve and wave drawn.

Oscillators

Filter

Volume envelope (ADSR)

How to use

  1. Turn your sound down first, then press and hold a key on the on-screen keyboard (or the letters A, W, S, E, D, F, T, G, Y, H, U, J, K on a computer keyboard). Let go to hear the release.
  2. Pick a preset to hear a ready-made sound, then change one control at a time to hear what it does.
  3. Move the cutoff while you hold a note: the drawing shows which frequencies the filter lets through, and the wave picture shows how the shape of the wave gets smoother.
  4. Raise the resonance to add a peak at the cutoff, the classic squelchy synth sound.
  5. The filter envelope opens the filter at the start of each note; the LFO wobbles it up and down. The ADSR controls shape the volume of each note.

Keyboard and touch

A to K (white keys), W E T Y U (black keys)Play notes; hold to sustain (when no box has the focus)
Tab to a key, then hold Space or EnterPlay that note
Touch and hold a keyPlay it; several fingers play a chord
Arrow keys on a sliderChange it in small steps

Tips

  • Protect your hearing: start quiet, especially with headphones. Volume here is capped, but high resonance can make sharp peaks.
  • Sawtooth and square waves are full of harmonics, so the filter has plenty to shape. A sine wave has only one, so the filter just makes it quieter.
  • Detune wave 2 by a few cents for a thick, chorused sound, or by 1200 cents (one octave) for a fuller bass.
  • A slow attack and long release make pads and strings; a fast attack with zero sustain makes plucks and percussion.
  • Band-pass picks out a narrow slice and sounds nasal or like a telephone; notch cuts a slice out and sounds hollow.

About this lab

This is a subtractive synthesizer: start with a bright wave and take away (filter) frequencies. Notes use equal temperament with A4 = 440 Hz. Sound comes from your browser's Web Audio: two oscillators, a biquad filter and a volume envelope made of straight-line ramps. The filter envelope and LFO move the cutoff in octaves.

The filter curve is computed with the biquad formulas of the Audio EQ Cookbook (R. Bristow-Johnson), the same ones Web Audio uses; for low-pass and high-pass, Web Audio takes the resonance in decibels, so it is converted. The filtered wave is drawn from each wave's Fourier series (sawtooth 1/n, square odd 1/n, triangle odd 1/n²), with each harmonic scaled and shifted by the filter. Nothing is recorded and no microphone is used. Everything runs in your browser.

See you tomorrow!

A fresh daily puzzle every morning, and new tools added every month.

Browse every product