🎛️

Multi-Frequency Mixer

Four simultaneous oscillators with independent frequency, amplitude, and waveform — mixed into a single output. Built-in presets for chords, musical intervals, DTMF telephone tones, beat-frequency demos, and the harmonic series. Live combined waveform and spectrum plots show the sum in both domains so you can see beats, harmonic relationships, and DTMF signatures in real time.

Oscillators

Osc 1 261.63 Hz C4 +0c
Amplitude 40 %
Osc 2 329.63 Hz E4 +0c
Amplitude 40 %
Osc 3 392.00 Hz G4 +0c
Amplitude 40 %
Osc 4 523.25 Hz C5 +0c
Amplitude 40 %

Master

Per-osc amplitudes sum into the master; 4 oscs at 40% each with master 30% is well clear of clipping.
Idle — press Play.

Presets

Picking a preset overwrites all four oscillator slots immediately. Unused slots get muted.

Live readouts

Active oscs
unmuted + amp > 0
Sample rate
AudioContext.sampleRate
Combined time-domain waveform (analyser live)
Combined spectrum — log frequency, peak per bar

Multi-Frequency Mixing — Concepts and Uses

A multi-frequency mixer sums several simultaneous tones into one signal. Three of audio's most important phenomena — musical chords, beats, and complex timbres — live in this combination layer. Four independent oscillators is enough to cover triads, 7th chords, two-tone DTMF, beat-frequency demos, and the first four partials of a harmonic series.

Chords and intervals

A chord is two or more pitches sounding together. Western music's primary triads (major and minor) come from stacking specific musical intervals: a major triad is root + major 3rd + perfect 5th; a minor triad swaps the major 3rd for a minor 3rd. The preset list above contains the canonical chord shapes in the key of C so you can hear each one back-to-back. Switch the waveform from sine to sawtooth to hear how the same notes acquire timbre — more harmonics, brighter sound.

Beat frequencies

Two close-but-not-equal tones produce beats: a slow amplitude modulation at the difference frequency. Sum 440 Hz and 442 Hz and the combined waveform "breathes" at 2 Hz — you can see this clearly on the waveform plot. Beats are the basis of how piano tuners tune in unison (slowing the beat until it stops) and how psychoacoustic phenomena like binaural beats are constructed.

DTMF telephone tones

A telephone keypad encodes each digit as the sum of two specific sine tones — one from a "row" frequency (697 / 770 / 852 / 941 Hz) and one from a "column" (1209 / 1336 / 1477 / 1633 Hz). When you press "5", the phone sends 770 + 1336 Hz simultaneously; the central office decodes by FFT. Apply the DTMF presets to hear and visualise these classic two-tone signals.

Harmonic series

The harmonic series at a fundamental f₀ consists of integer multiples: f₀, 2f₀, 3f₀, 4f₀, etc. Acoustic instruments produce close approximations of this series (with each harmonic at a slightly different amplitude). The "Harmonic series @ 110 Hz" preset puts the first 4 partials in your ears at equal amplitude — the synthetic timbre that results is the building block of all additive synthesis.

Reading the plots

  • Time-domain waveform — the analyser's last 4096 samples of the combined output. For two close frequencies you'll see the slow beat envelope; for a major triad you'll see a complex periodic pattern that repeats once per LCM of the periods.
  • Spectrum — log-frequency bars showing the FFT peak per bar. Each unmuted oscillator's fundamental shows as a tall bar; if you use a non-sine waveform you'll also see that oscillator's harmonics at integer multiples.

Frequently Asked Questions

Why does the combined waveform look messy when I play a major triad with sawtooth waves?
A sawtooth wave contains every integer harmonic. Three sawtooths at C-E-G means three fundamentals plus their (already dense) harmonic series mixing together. The result is a rich, complex waveform that's still periodic but whose period is the least common multiple of the three sawtooth periods — visually noisy, but musically that's exactly what a "fat chord" sounds like.
Where's the phase control?
It's not implemented in this version — Web Audio's standard OscillatorNode doesn't expose a phase parameter, so setting it precisely requires a custom PeriodicWave per oscillator. For chord and DTMF use cases, phase differences between oscillators at different frequencies don't affect the long-term sound (they just shift where the beat pattern starts visually). For same-frequency phase comparisons you'd need a more specialised tool.
Why can I still hear something for a fraction of a second after pressing Stop?
The master gain ramps from its current value to zero over 50 ms (a click-free fade-out), and the actual oscillator nodes are torn down 70 ms after that. The total ~120 ms is intentional — an abrupt zero would produce a sharp click at the stop instant.
Why are the DTMF tone presets only digits 1, 5, 9, and 0?
Just to keep the preset list short. The four chosen demonstrate the four row × four column DTMF grid (1 = row1+col1, 5 = row2+col2, 9 = row3+col3, 0 = row4+col2). Once you've heard the pattern you can build the others by adjusting the two oscillator frequencies directly.
Can I save and reload my own mixes?
Not in this build. State is in-page only and resets on reload. If you find a configuration you want to revisit, jot the four frequency / amplitude / waveform settings down — or open a feature request.
Why does my browser sometimes need a click before audio starts?
Modern browsers (Chrome, Safari, Firefox) require a user gesture before allowing audio playback to prevent autoplaying ads. Pressing the Play button is that gesture — once the AudioContext has resumed, all subsequent slider movements take effect immediately.
Will summing four oscillators at high amplitude clip?
If you push every per-osc amp to 100% AND the master volume to 100% AND all four oscillators are unmuted, you can reach a summed peak of ~3.4, which the destination will hard-clip at ±1. The default 40% per osc and 30% master gives plenty of headroom. Watch the time-domain plot — flattening peaks indicate clipping.
Does changing waveform mid-play produce a click?
A tiny one, yes — Web Audio doesn't interpolate between waveform types, so the switch is sample-accurate but discontinuous. For most uses the click is below perception. If you want a perfectly clean transition, stop, change waveform, then play again.