🎛️

Multi-Frequency Mixer

This multi-frequency mixer — also usable as a multi-tone generator — runs a four-oscillator engine with independent frequency, amplitude, and waveform per channel, 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 tone 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

Share or embed this tool

Free to use on your own website — WordPress, Wix, or any platform. Paste one line and it works instantly, resizing to fit.


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. As a chord generator, 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. If you want to verify a generated chord by ear, pair this tool with the FFT frequency analyzer to see exactly which partials are present.

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. A 7th chord adds a fourth pitch a minor or major 7th above the root, giving jazz and blues their characteristic color.

Beat frequencies and psychoacoustics

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. The same principle underlies phasing and tremolo effects in audio production.

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. To decode DTMF from a recording rather than generate it, use the DTMF decoder.

Harmonic series and additive synthesis

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. By adjusting individual oscillator amplitudes you are performing additive synthesis by hand, which is how vintage digital synthesizers like the Yamaha DX series built complex timbres from sine wave building blocks.

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. Compare these peaks against your expected frequencies with the single-tone generator as a reference.

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.
How can I use this tool to understand additive synthesis?
Load the "Harmonic series @ 110 Hz" preset and then mute and unmute individual oscillators. Osc 1 = 110 Hz (fundamental), Osc 2 = 220 Hz (2nd partial), Osc 3 = 330 Hz (3rd partial), Osc 4 = 440 Hz (4th partial). Adjust each oscillator's amplitude to sculpt the timbre — boosting upper partials brightens the sound, just as it does in any additive synthesizer. Switching an oscillator from sine to sawtooth adds that oscillator's own entire harmonic stack on top.
What frequency range do the oscillators cover?
Each oscillator spans roughly 20–5000 Hz on a logarithmic slider. The lower end covers sub-bass fundamentals; the upper end reaches well into the presence range but stays below the typical 20 kHz audibility ceiling. This range is sufficient for all standard DTMF tones (697–1633 Hz), musical notes (A0 = 27.5 Hz through D#8 ≈ 4978 Hz), and beat-frequency demonstrations.
Can this tool generate test tones for acoustic room measurement?
It can play pure sine or other waveform test tones, but it is not a dedicated room measurement tool. For sweeps that excite a room across a full frequency range, a frequency sweep generator is better suited. This mixer is more useful for spot-checking specific frequency combinations or verifying speaker behavior at two or three simultaneous tones.