DevTools Logo

Web Audio Modular Synthesizer & Sound FX Generator

About this tool

The Synth Studio is a complete subtractive-synthesis voice designer that runs entirely in your browser. Start from the oscillator — sine, saw or triangle for classic tones, a square wave with genuine pulse-width (PWM) duty control for chip-music bite, or white, pink and brown noise for percussion and atmosphere. Shape it with a four-stage ADSR envelope you can see as a curve, sculpt it through a resonant biquad filter (lowpass, highpass, bandpass or notch), and animate it with an LFO routed to pitch (vibrato), cutoff (wobble) or amplitude (tremolo).

An effects chain finishes the voice: tanh-curve overdrive for warmth and grit, a stereo ping-pong delay with crossfeed between channels, and a Schroeder-style reverb built from damped feedback combs. Every parameter is live — drag a slider mid-note and hear the change.

Playing is whichever way suits you: click the two-octave keyboard, use the printed computer keys in the classic tracker layout (A W S E D F T G Y H U J K O L P), or plug in a physical MIDI keyboard through Web MIDI (Chrome and Edge; the button simply doesn't appear in unsupported browsers). While you play, a live FFT spectrum shows the harmonic content and a scrolling waterfall spectrogram paints its evolution over time — the visual confirmation that narrowing the cutoff really does shave the highs.

Six retro game SFX one-shots — jump, laser shot, coin pickup, powerup, explosion and UI click — are rendered by the same shared engine that powers the exports, one click to audition them for your game.

Export works both ways: download your current patch as a WAV rendered offline at 8, 16 or 24-bit PCM (bit-identical to what you heard), or copy the dependency-free Web Audio JS function that rebuilds your exact voice — oscillator, PWM PeriodicWave, filter, ADSR, LFO and all three effects — ready to paste into any page, engine or prototype. MP3 and OGG encoders arrive with the pending encoder decision.

How to use this tool

  1. Pick a preset or start from saw

    The studio presets (Saw Lead, Warm Pad, PWM Bass, E-Piano) are curated starting points; every control is yours after that.

  2. Shape the voice

    Choose a waveform (square unlocks the PWM duty slider), draw the ADSR, tune the filter cutoff and resonance, pick an LFO target and depth.

  3. Add effects

    Enable overdrive, stereo delay and reverb — each with its key parameters; the signal flows in that order.

  4. Play

    Mouse the two-octave keyboard, use the printed tracker keys, or connect a MIDI controller (Chrome/Edge).

  5. Watch the FFT

    The spectrum and waterfall update live — sweep the cutoff and watch the harmonics fall away.

  6. Export

    Download WAV (8/16/24-bit) of the current patch, or copy the paste-ready Web Audio code / patch JSON.

Use cases

Game sound design without a DAW

Design the voice, audition it against your game feel, export WAV or paste the JS directly into your engine — no install, no license.

UI and notification sounds

Coin, click and powerup one-shots plus your own patches give apps audible feedback with zero asset pipeline.

Learning synthesis

Every subtractive concept — PWM, filter resonance, LFO routing, ADSR — has a slider and a live FFT to prove what it does.

Prototyping Web Audio code

Design by ear, then copy the generated function instead of hand-writing node graphs and envelope scheduling.

Common mistakes

Mistake:Comparing loudness at different gains

Fix:Match perceived loudness (gain at ~50% is a fair baseline) before judging filter or effect changes — louder always sounds 'better'.

Mistake:Full wet delay or reverb

Fix:Keep effect mixes under ~40% in a mix; 100% wet is a special effect, not an enhancement.

Mistake:High resonance + high gain

Fix:A resonant filter can add 12-18 dB at cutoff; pull gain back or the export clips (the WAV path soft-clips to protect you).

Mistake:Expecting MIDI on Safari

Fix:Web MIDI works in Chrome/Edge (and behind flags elsewhere); the connect button is hidden rather than broken where unsupported.

Frequently asked questions

Does the WAV export sound exactly like the keyboard playback?

Yes. Both paths run the same deterministic offline renderer — oscillator, ADSR, filter, LFO and all three effects — so the file you download is sample-for-sample the sound you auditioned. The same engine also powers the retro SFX one-shots and the Algorithm Arena sonification, which is why they share a character.

How does the PWM duty control work on the square wave?

Web Audio's built-in square is fixed at 50% duty, so the studio synthesizes other duties from the Fourier series of a pulse wave (as a PeriodicWave in the exported code, and directly in the offline renderer). Narrow duties sound thin and nasal; near 50% they open up; sweeping the duty is the classic chip-music 'hollow' effect.

Can I use my MIDI keyboard?

In Chrome or Edge, yes — press Connect MIDI and grant access. Note-on and note-off messages drive the same voices as the on-screen keys. Safari doesn't implement Web MIDI, so the button is hidden there rather than broken (per the tool's accessibility policy). Velocity affects nothing at the DSP level but is wired through the handler for future use.

What are the computer keyboard mappings?

The tracker layout printed on the keys: whites A S D F G H J K L ; ' and blacks W E T Y U O P, covering two octaves from C4. It's the layout trackers (FastTracker, Renoise) and DAWs inherited, so muscle memory transfers.

Why does the FFT show fewer harmonics after I lower the cutoff?

That's the lowpass doing its job — a filter removes harmonics above its cutoff, and the spectrum makes it literal. Set a high resonance Q and you'll also see a peak right at the cutoff frequency, which is the characteristic squelch of acid-style patches.

What do pink and brown noise sound like, and when do I use them?

White noise has equal energy per Hz and sounds like static; pink has equal energy per octave and sounds balanced (rain, wind); brown runs -6 dB/octave and rumbles (waterfalls, thunder). Kick drums, snare washes and cymbals usually start from pink; explosions from brown.

Is the exported JS code really dependency-free?

Yes — it builds the voice with raw Web Audio nodes (OscillatorNode, BiquadFilterNode, WaveShaperNode with a generated tanh curve, DelayNode with feedback, ConvolverNode with a generated impulse response) and schedules the ADSR with AudioParam ramps. Paste it in any page and call the function; no libraries, no bundler assumptions.

When do MP3 and OGG exports arrive?

They're stubbed behind an explicit encoder decision (ADR pending) because in-browser MP3/OGG encoding means picking a WASM encoder with size and licensing tradeoffs. WAV at 8/16/24-bit covers lossless needs today; watch the changelog once the ADR lands.

References & standards