Real-Time Harmonic Balance Analyzer
Watch the harmonic spectrum of a live signal in real time — H1 through H20 as a bar chart, odd vs even ratio, and automatic waveform-shape classification (sine / triangle / square / sawtooth) by matching the harmonic profile to canonical Fourier series. Use the built-in test signals to see the math, or feed in your own signal via mic.
Source
Result
Odd, Even & Why Tubes Sound Different
The harmonic balance of a signal — how its energy distributes across H2, H3, H4, etc. relative to H1 — is more perceptually meaningful than its single THD number. Two amplifiers can both measure 1% THD but sound radically different if one is even-harmonic-dominated (musically warm) and the other odd-harmonic-dominated (harsh / clipped).
The canonical waveforms
Each of the four standard waveforms has a specific Fourier-series harmonic profile:
- Sine — only H1. No harmonics, 0% THD by definition.
- Triangle — odd harmonics only, amplitudes 1/n² (very gentle high-end). Soft, almost-pure character.
- Square — odd harmonics only, amplitudes 1/n (∞ slope reaches all frequencies equally). Hollow, "buzzy" character.
- Sawtooth — all harmonics, amplitudes 1/n. Bright, "brassy" — the basis of subtractive synth bass.
The shape classifier
The tool normalises your live harmonic profile so H1 = 1, then computes the cosine similarity to each canonical profile. The match with the highest similarity (closest to 1.0) is reported as "closest waveform". Above 95% similarity is a strong match (likely that pure waveform); 85–95% is moderate (a distorted version of that shape); below 70% means the signal doesn't match any standard waveform well (could be a complex tone, voice, music, or an arbitrary distortion product).
Odd vs even — what your ear cares about
Even harmonics (H2, H4, H6…) sit on musically consonant intervals: H2 is exactly one octave above the fundamental, H4 two octaves, H6 two octaves + a fifth. Adding them to a signal sounds like the original, just bigger and warmer. That's the "tube sound" everyone chases.
Odd harmonics (H3, H5, H7…) sit on dissonant intervals: H3 is an octave + a fifth (consonant-ish), H5 is two octaves + a major third (consonant-ish), H7 is two octaves + a flat-7th (dissonant). H9 onwards becomes increasingly grating. Symmetric clipping in solid-state circuits produces predominantly odd harmonics — that's the "transistor harshness" people describe.
Asymmetry = even harmonics
Mathematically: if your distortion function f(x) is asymmetric (f(x) ≠ −f(−x)), it generates even harmonics. Symmetric clipping (f(x) = clip(x), top and bottom equally) is anti-symmetric and produces only odd harmonics. A class-A tube amp running into asymmetric saturation (because of the asymmetric voltage swing across the tube) produces even harmonics. A class-AB push-pull amp at clipping is symmetric and produces only odd. This is why a single-ended class-A tube amp is the holy grail of "musical distortion".
What you'll see in real signals
Voice and music are not standard waveforms — they're complex spectra with rich, signal-dependent harmonics. The classifier will usually fall below the 70% threshold and be flagged as a "weak match"; that's expected. Use the bar chart and odd/even ratio for the actual information.