Explainer

How Binaural Audio Synthesis Works: VSTs to Web Audio API

Every binaural beats generator — from a free desktop utility to a $200 VST plugin to a tool that runs in a browser tab — is doing the same thing under the hood: creating two sine waves at slightly different frequencies and delivering one to each ear. This article takes the lid off that process, from the sample-level audio chain to the difference between native plugins and the Web Audio API, and why the browser has quietly become the best place to run it.

The evolution of binaural audio tools

Binaural beat generation is an old trick in new packaging. The phenomenon was described experimentally as far back as 1839, and the first consumer devices to generate it — bulky hardware boxes with a pair of tone generators — appeared decades before personal computers existed. Software changed everything: a binaural beat is such a simple signal that any machine with two audio channels can produce it, which means the field has always been more about the interface than the math.

The history of the tools falls into three generations. The first was desktop shareware from the 1990s and 2000s — small native applications like Gnaural and BrainWave Generator that ran on Windows and generated tones in real time. The second generation brought the VST plugin: the same synthesis logic packaged as a plugin for digital audio workstations, aimed at musicians and producers who wanted binaural layers inside their existing mixing environment. The third generation, the one we are in now, is browser-based: the Web Audio API made real-time synthesis possible in a plain web page, with no installation, no platform lock-in, and no reason to download anything. This article explains the synthesis itself, then maps how each generation implements it.

The digital audio chain, from oscillator to speaker

Digital audio is a stream of numbers. A device samples the amplitude of an audio signal thousands of times per second — 44,100 times per second on standard CD-quality audio — and each sample is a number representing the voltage of the signal at that instant. Playback reverses the process: the numbers drive a digital-to-analog converter that produces the continuous voltage that moves your headphone driver.

An oscillator is the synthesis primitive that generates these samples for a periodic waveform. A sine wave oscillator computes, for every sample, the value of a sine function at a phase that advances at a rate proportional to the desired frequency. A 200 Hz sine oscillator therefore produces exactly 200 complete sine cycles per second. In code this is a tight loop over a buffer of samples — cheap enough that a modern computer can run dozens of oscillators simultaneously without audible glitches.

Two parameters define an oscillator: frequency, which sets the pitch, and amplitude, which sets the loudness. In a stereo system, each channel — left and right — carries its own sample stream, and the two streams are interleaved in a single buffer. That interleaving is the whole basis of binaural audio: the left and right channels are physically separate paths, and whatever the synthesis writes to them is what reaches each ear independently.

How two tones become one beat (in the signal)

The signal-level story of a binaural beat is almost embarrassingly simple: you write a 200 Hz sine to the left channel, a 207 Hz sine to the right channel, and stop. The math — the 7 Hz difference — happens in the listener's auditory system, not in the audio. But the synthesis has to be careful about one thing: the two tones must be delivered separately, one per ear, with no acoustic mixing before they reach the cochlea. That single constraint is why every generator routes one oscillator to the left output and a different-frequency oscillator to the right output, and why headphones are mandatory for the effect.

There is a common confusion worth dispelling here. If you mix a 200 Hz and a 207 Hz tone into the same channel — both ears hearing both tones — you get an acoustic beat at 7 Hz, a real amplitude modulation of the sound in the air. It sounds superficially similar but engages a different neural pathway: the brainstem's binaural comparison never activates, because both ears received identical signals. Software that claims to generate binaural beats without headphones is, at best, generating acoustic beats, which entrain less reliably and are a different phenomenon entirely. A correct generator never mixes the two carriers into one channel.

Two synthesis details follow. First, the carrier frequency (the mean of the two tones) is an independent parameter from the beat frequency (their difference) — a 200 Hz/207 Hz pair and a 400 Hz/407 Hz pair produce the same 7 Hz beat at different pitches. Second, the beat is a property of the steady-state signal; there is nothing transient about it. That means a generator can compute the two oscillator frequencies as a simple sum and difference: left = carrier − (beat/2), right = carrier + (beat/2), which is exactly how modern tools let you dial in a target beat with a slider. Our binaural frequency guide covers what each beat value actually does once it reaches the brain.

From tone to session: layers, envelopes and noise

A bare pair of sine oscillators is technically a binaural generator, but it is a miserable listening experience for more than a few minutes — the ear adapts to steady tones and the result is thin and fatiguing. Real tools build a full audio graph around the two oscillators, and this is where the synthesis gets interesting:

None of these elements are binaural-specific; they are standard audio-graph building blocks. The binaural part is only the two separated oscillators. Everything else is session design — which is why the best generators are judged on their layer system and export quality as much as on the beat itself.

Desktop software and VST plugins

The desktop generation implements this same graph in native code. Shareware applications like Gnaural and TMSoft's BrainWave Generator run the oscillators on the CPU and stream samples to the sound card through the operating system's audio API — on Windows, historically WASAPI or DirectSound. They work, they are lightweight, and they have been around long enough to be reliable. Their limits are the limits of the era: Windows-centric, closed source in several cases, and tied to whatever machine has the installer.

The VST generation routes the same logic through the DAW. A VST (Virtual Studio Technology) is Steinberg's plugin format: compiled code that the host DAW loads and calls to produce or process audio. A binaural beats generator VST exposes its oscillators as plugin parameters, which means the DAW's automation lanes, MIDI controllers and mixer all act on the beat generator directly. For a producer who lives in Ableton or Reaper, that integration is genuinely powerful: you can ride the beat frequency with a MIDI knob, duck the beat under a voiceover with sidechain compression, or route the binaural track through reverbs and delays.

The cost of that power is a hard requirement: you need a DAW installed, a compatible plugin format (VST2, VST3, AU, CLAP), and the platform each one supports. The synthesis itself is identical to the free desktop tools; the difference is entirely integration.

The Web Audio API: synthesis in the browser

The Web Audio API is the W3C-standardized interface for processing and synthesizing audio in the browser. It implements a modular audio graph — nodes connected by edges — that maps directly onto the synthesis description above. Two OscillatorNodes, two StereoPannerNodes to hard-pan left and right, a GainNode for the envelope, a BiquadFilterNode for tone shaping, and a ConvolverNode or noise buffer for textures — all connected into an AudioContext that renders in real time at the device's sample rate. The specification is public and thoroughly documented, from the W3C specification to MDN's developer reference.

Three properties make the browser a genuinely better host for binaural generation than either prior generation:

There is no meaningful audio-quality penalty. The Web Audio API renders at the device's native sample rate with 32-bit float intermediate precision, and the oscillators are as accurate as anything in native code. What a browser tool lacks — automation lanes, MIDI, multi-track DAW routing — is only relevant to music producers, not to someone generating a focus or sleep session. We built neuralwave's studio on exactly this approach, and the VST vs browser comparison walks through the trade-offs in detail.

Desktop vs browser: the comparison

Desktop software, VST plugins and browser generators — the practical differences
Aspect Desktop utility VST plugin Browser (Web Audio API)
Installation Installer per OS Requires a DAW None — works in a tab
Platforms Usually Windows-only Depends on DAW + format Any device with a browser
Automation / MIDI Limited Full DAW integration Scriptable, timeline-based
Layering & textures Basic presets Full mixing chain Full layer system
Export WAV, sometimes MP3 Via DAW render WAV / MP3 directly
Open source options Gnaural, few others Several free plugins Many GitHub projects
Best for Simple desktop listening Producers in a DAW Most people, most sessions

Open source and the GitHub ecosystem

Because the core of a binaural generator is twenty lines of oscillator code, the open-source ecosystem around it is unusually healthy. The classic reference implementation is Gnaural, a cross-platform, GPL-licensed desktop generator that has been maintained on SourceForge for nearly two decades — still a fine way to see the native approach. On GitHub, the field splits into two groups: native utilities in C++, Rust and Python, and an expanding set of Web Audio projects in JavaScript and TypeScript.

The web projects are the ones moving fastest, for a structural reason: a Web Audio generator has no build or distribution problem — a single HTML file with a script tag is a complete product. That has produced a long tail of hobby generators, from single-page tone makers to full studio-style layerers. The quality bar is the audio graph itself: good projects handle click-free glides, offer offline rendering for export, and document their frequency logic rather than wrapping it in woo. Before trusting any generator — desktop, plugin or browser — check three things: whether it keeps the carriers truly separate per channel, whether its export is real audio or a screen recording, and whether its documentation distinguishes binaural beats from acoustic beats.

The unifying lesson across all three generations is that the synthesis is solved and has been for decades. Two separated oscillators, a difference frequency, some gain automation and a noise floor — that is the entire recipe, whether it runs as a Win95 shareware binary, a VST inside Ableton, or an OscillatorNode in a browser tab. What differentiates a great generator in 2026 is not the math; it is the session design on top of it: smooth glides, layered textures, proper export, and an interface that gets out of the way.

Try the modern approach

Rather than installing a desktop utility or wiring up a DAW, you can open the free web-based binaural beats generator from neuralwave and see the whole audio graph in action: set beat and carrier, layer pads, drone textures and brown noise, schedule bells on a timeline, program frequency glides, and export the result as a 320 kbps MP3 or WAV. Everything renders locally in your browser — no account, nothing uploaded.

Open the generator

FAQ

How are binaural beats generated in software?

A binaural beat generator creates two sine wave oscillators tuned to slightly different frequencies and routes one to the left channel and one to the right channel. The perceived beat is the difference between the two frequencies. In the Web Audio API this is done with two OscillatorNode instances, one StereoPannerNode for each ear, and a GainNode for volume, all connected into an AudioContext graph.

What is a binaural beats generator VST?

A VST is a plugin format used inside digital audio workstations like Ableton, FL Studio or Reaper. A binaural beats generator VST is a plugin that produces binaural beats from within the DAW, which allows automation, multi-track mixing and MIDI control. The trade-off is that it requires a desktop DAW to run at all, whereas a browser-based generator runs anywhere with zero installation.

Do binaural beats need a high sample rate to work?

No. The standard 44.1 kHz or 48 kHz sample rate used by every modern device is far higher than any frequency a binaural session needs — carriers usually sit between 100 and 500 Hz, and beats between 0.5 and 40 Hz. High-resolution formats like 96 kHz or 192 kHz change nothing about the binaural mechanism itself, because the beat is computed from the difference of the two carriers, not from ultrasonic content.

Is a browser-based binaural generator as good as desktop software?

For generating and exporting binaural sessions, yes. The Web Audio API runs oscillators, filters, gains and panning at the same precision as native audio code, and browsers can render and export the final mix to WAV or MP3. Desktop tools and VST plugins still win for deep DAW integration — automation, MIDI mapping, running the beat alongside other tracks — which matters for music producers but not for most people making focus or sleep sessions.