Musical Intervals & Frequency Ratios - Interactive Visualization

Interactive exploration of musical intervals, frequency ratios, and harmonics with real audio playback

Piano Keyboard

Root Note: C4 (261.63 Hz) Interval Note: G4 (392.00 Hz)

Interval Presets

Note Selection

7

Wave Type

Interval Information

Frequency Ratio

3:2 (1.500)

Cents

700.0

Interval Name

Perfect Fifth

Just vs Equal Temperament

+2.0 cents

Waveform Visualization

Root Wave (261.63 Hz)
Interval Wave (392.00 Hz)
Combined Wave (Sum)

Frequency Spectrum

Root Fundamental
Interval Fundamental
Harmonics

Harmonic Series Comparison

Harmonic Root Harmonic (Hz) Interval Harmonic (Hz) Ratio

Mathematical Foundation

Frequency Ratio

r = f₂/f₁
Ratio of interval frequency to root frequency

Equal Temperament

f = f₀ × 2^(n/12)
Frequency of note n semitones above f₀

Cents

¢ = 1200 × log₂(r)
Logarithmic measure of interval size

Common Intervals

Octave: 2:1 (1200¢)
Perfect Fifth: 3:2 (~702¢)
Major Third: 5:4 (~386¢)

What are Musical Intervals?

A musical interval is the distance between two pitches. When two notes are played together, they create a consonance or dissonance depending on their frequency ratio. Simple ratios (like 2:1, 3:2, 5:4) produce consonant, pleasant sounds, while complex ratios create more dissonant sounds.

Just Intonation vs Equal Temperament

Just intonation uses pure frequency ratios from the harmonic series (3:2, 5:4, etc.) for perfectly consonant intervals. However, this makes modulation between keys difficult. Equal temperament divides the octave into 12 equal semitones, allowing modulation but slightly compromising the purity of intervals (except the octave).

The Harmonic Series

When a note is played, it doesn't just produce its fundamental frequency. It also produces overtones at integer multiples: f, 2f, 3f, 4f, etc. These harmonics give each instrument its unique timbre and explain why certain intervals sound consonant—their harmonics align.

Real-World Applications

  • Music Theory: Understanding intervals is fundamental to melody, harmony, and chord construction in all musical traditions.
  • Instrument Design: Piano and fretted instrument manufacturers use equal temperament calculations to position strings and frets.
  • Tuning Systems: Different cultures and historical periods use various tuning systems (just intonation, meantone, well temperament, etc.).
  • Audio Engineering: Understanding harmonics helps with EQ, compression, and avoiding phase cancellation in mixing.
  • Choral Singing: Professional singers often drift toward just intonation for purer harmonies, even when starting from equal temperament.

Listening Guide

Start with Unison and Octave

The unison (1:1) and octave (2:1) are the most consonant intervals. Notice how the waves perfectly align.

Perfect Fifth (3:2)

This is the most stable interval after the octave. It's the foundation of most musical harmony and chord progressions.

Major vs Minor Thirds

Compare the bright, happy major third (5:4) with the sad, dark minor third (6:5). Notice how small ratio changes dramatically affect mood.