Physics · Lesson 14

Physics of Music

Oscillation Harmonics Scales & Ratios Equal Temperament

Music is not separate from physics. It is physics made audible: vibrating strings, pulsing air pressure, resonance, number ratios, and repeating patterns. From the first scales to equal temperament, humans have been tuning matter until the universe sounds organized.

From Noise to Notes

Sound begins as an oscillation. A string, reed, drumhead, vocal fold, or speaker cone moves back and forth, compressing and rarefying the air. Your ear turns those pressure waves into nerve signals, and your brain hears pitch, loudness, and tone color.

f = v / lambda lambda
L = n(lambda / 2) whole string length L fits half-waves

Pitch mostly follows frequency. A 440 Hz A vibrates 440 times per second. Loudness follows amplitude. Timbre, the reason a flute and guitar can play the same note but sound different, comes from the mixture of harmonics riding on top of the fundamental frequency.

See Sound: Oscilloscope and Spectrum Analyzer

Waveform shape is timbre made visible. A sine wave sounds pure because it has one strong frequency. A square wave sounds hollow because it emphasizes odd harmonics. A sawtooth sounds buzzy because it contains a full harmonic stack. Noise looks chaotic because its energy is spread across many frequencies.

Live Audio Workbench

Choose a waveform, press play, and compare the oscilloscope shape with the frequency peaks. The microphone mode draws your real room sound when browser permission is available.

Oscilloscopesine
Spectrumfrequency peaks
Fourier bridge: the oscilloscope shows pressure changing through time. The spectrum analyzer shows the same sound broken into frequency ingredients.

Harmonics: The Hidden Chord Inside One Note

A stretched string does not only vibrate as one whole piece. It can also vibrate in halves, thirds, fourths, and more. These standing-wave patterns create the harmonic series.

1st harmonicThe fundamental. The whole string vibrates once: f.
2nd harmonicTwo vibrating segments. Frequency doubles: 2f, an octave above.
3rd harmonicThree segments. Frequency triples: 3f, related to the perfect fifth.
4th harmonicFour segments. Frequency quadruples: 4f, two octaves above.
Standing wave rule: a string fixed at both ends can hold only wavelengths that fit exactly: L = n(lambda/2). That one constraint is why instruments produce stable notes instead of random sliding noise.

Harmonic String Lab

Change the string length and tension, then either isolate a pure harmonic or click-and-drag the string itself to pluck it. This string is a live finite-difference simulation of the wave equation, not a canned animation, and a pluck is voiced with the Karplus-Strong algorithm, the same physical-modeling technique real plucked-string synthesizers use.

Plucked String Simulator

Drag the string to pull it out of place, then release to pluck. Where you pluck changes which harmonics ring loudest, watch the bar chart react.

Live Harmonic ContentFourier decomposition of the string's shape
Fundamental220 Hz
Selected220 Hz
Wavelength140 cm
Mode1 loop

The string is 96 mass points integrated against the wave equation every frame. Plucks decay naturally in time and are voiced through a real Karplus-Strong delay-line synthesizer; isolated harmonics ring forever because they are exact eigenmodes of the simulated string.

Predict, Test, Correct

If the same string is shortened to half its length while tension stays the same, what should happen to the fundamental frequency?

Scales: Ratios You Can Hear

Ancient musicians noticed that simple frequency ratios sound especially stable. An octave is 2:1. A perfect fifth is 3:2. A perfect fourth is 4:3. These ratios were central to Pythagorean tuning, where a scale is built by stacking fifths.

But there is a catch: twelve pure fifths do not land exactly on seven pure octaves. The small mismatch is the Pythagorean comma. Tuning therefore involves compromise as well as discovery.

Equal temperament

Modern pianos usually use 12-tone equal temperament. The octave is divided into twelve equal frequency steps. Each semitone multiplies frequency by the same number:

Equal temperament slightly detunes the pure ratios so that instruments can play in every key. It trades perfect local purity for global freedom.

Comparative Listening

Each button plays two notes together. Listen for smoothness, roughness, and beating as the ratios shift.

Interference and Resonance

When two waves overlap, they add. Crest plus crest makes constructive interference. Crest plus trough makes destructive interference. Resonance happens when a system is driven near its natural frequency, so energy builds instead of canceling away.

Two-Wave Interference and Resonance Game

Move the phase slider to turn addition into cancellation. Then hunt for the resonant frequency where the response meter grows largest.

0%

Orange curve is the closed-form driven-oscillator response A = 1 / sqrt((1 - r^2)^2 + (2 zeta r)^2), with r = drive frequency / natural frequency. The white ring is a live numerical integration of an actual damped, driven oscillator (x'' + 2 zeta omega0 x' + omega0^2 x = omega0^2 cos(omega_d t)), so it visibly rings and settles toward the theory instead of snapping straight to it.

Sympathetic vibrationOne tuned object can make another vibrate without touching it, like an open guitar string responding to a matching note.
FeedbackA microphone hears a speaker, sends that signal back into the speaker, and resonance grows into a squeal.
Room acousticsWalls reflect waves. Some frequencies build up, some cancel, and every room gets its own tone color.
EQEqualizers reshape the spectrum by boosting or cutting selected frequency bands.

Two Ears, Two Tones: Binaural Beats

The beats in the interference lab above happen in the air: both tones reach the same ear and add into a loud–soft pulse. What if each tone goes to a different ear, so they never meet? Many listeners still hear a slow wobble at the difference frequency, made by the auditory system comparing the two ears.

Open the Binaural Beats lesson → Compare binaural, acoustic and same-tone conditions in a listening lab, then weigh the evidence behind claims that these sounds change brainwaves.

Real Instrument Physics

🎸
Guitar stringLength, tension, and mass set the pitch; the wooden body amplifies the air motion.
🎹
Piano hammerA felt hammer strikes a string, then escapes so the string can ring freely.
🎺
Brass columnLips buzz into a tube. Valves change tube length and select standing air waves.
🎷
Reed oscillationA reed opens and closes rapidly, chopping airflow into pressure pulses.
🥁
Drum membraneA circular skin vibrates in complex two-dimensional modes, not just one line.
🗣
Vocal foldsAir pressure from lungs drives folds into self-sustaining oscillation; mouth shape filters the spectrum.

Touchable Experiments

Rubber band shoebox guitarStretch bands over a box. Change length and tension, then predict pitch changes before plucking.
Water glass resonanceTap glasses with different water levels and compare pitch using your ears or a phone analyzer.
Tuning fork in waterStrike a fork and dip it in water to reveal invisible vibration as splashes.
Straw pan fluteCut straws to different lengths. Shorter air columns produce higher notes.
Desk-edge rulerLet more or less ruler hang off the desk. Predict pitch before flicking it.
Phone spectrum activityUse a spectrum analyzer app to compare voice, whistle, clap, instrument, and room noise.

Music in the Body

Cochlea mapThe inner ear is tonotopic: high frequencies peak near the base, low frequencies deeper inside.
BeatingClose frequencies interfere slowly, creating a pulsing loud-soft pattern your brain notices.
DissonanceRoughness often comes from partials that are close enough to beat but not close enough to fuse.
Binaural effectsYour brain compares timing and loudness between ears to locate sound in space. See Binaural Beats.
Bass feels physicalLow frequencies have long wavelengths and can move enough air to be felt through the body.
PsychoacousticsHearing is not a microphone. The brain predicts, groups, masks, and interprets sound.

History: Music Technology as Physics Knowledge

PythagorasSimple ratios connect string length, pitch, and consonance.
Gregorian chantModal systems organize melody before modern major-minor harmony.
Bach and well temperamentKeyboard tuning becomes flexible enough to move through every key.
Helmholtz acousticsResonators and physiology connect tone color, hearing, and harmonic content.
Fourier analysisComplex waves can be decomposed into simple sine components.
Analog synthesisOscillators, filters, and envelopes turn circuits into instruments.
Digital samplingSound becomes data: recorded, chopped, stretched, and transformed.
DAWs and FFTsModern studios display waveforms and spectra as everyday creative tools.
Engraving of Chladni acoustic nodal patterns on vibrating metal plates from 1787
Ernst Chladni's Acoustic Nodal Patterns (1787). Sand dusted onto vibrating metal plates bowed by a violin bow settles along nodal lines where vibration is zero, visualizing two-dimensional standing acoustic wave modes. Ernst Chladni / Wikimedia Commons · Public domain.
Set of brass spherical Helmholtz resonators in the Deutsches Museum
Spherical Brass Helmholtz Resonators (Deutsches Museum). Hermann von Helmholtz designed these tuned acoustic cavities to isolate and measure individual harmonic partials in complex musical tones, laying the groundwork for spectral audio analysis. Deutsches Museum / Wikimedia Commons · CC BY-SA 3.0.

Music of the Spheres

The ancient phrase music of the spheres did not mean planets literally made audible songs in space. It meant the cosmos seemed to obey the same deep logic as music: proportion, cycle, resonance, and ordered motion.

That idea still has scientific descendants. Planets orbit periodically. Atoms absorb and emit only certain frequencies. Stars ring with pressure waves that reveal their interiors. Gravitational waves are spacetime oscillations. Quantum fields are often described through modes, frequencies, and vibrations.

PulsarsRapidly spinning neutron stars produce clock-like pulses that can be shifted into audible rhythms.
Black hole sonificationX-ray and telescope data can be mapped into pitch and loudness so patterns become listenable.
Stellar oscillationsAsteroseismology studies star vibrations to infer size, age, and interior structure.
Gravitational wave chirpsMerging black holes create a rising frequency sweep as spacetime itself oscillates.
Big idea: the universe is full of oscillators. Music is one human-scale doorway into a much larger pattern: nature stores, moves, and transforms energy through waves.

Practice Problems

Easy1. A note at 220 Hz is raised one octave. What is the new frequency?

An octave has a 2:1 ratio, so double 220 Hz.

Easy2. A perfect fifth above 200 Hz has ratio 3:2. What frequency is it?

Multiply 200 by 3/2.

Medium3. In equal temperament, one semitone multiplies frequency by about 1.05946. About what is one semitone above 440 Hz?

440 x 1.05946 = about 466.16 Hz.

Hard4. A guitar string's fundamental is 110 Hz. If the string is shortened to two-thirds of its original vibrating length (same tension), what is the new fundamental?

Frequency is inversely proportional to length: f is proportional to 1/L, so shrinking L to 2/3 multiplies f by 3/2. 110 x 3/2 = 165 Hz.

Key Vocabulary

Fundamental
The lowest, loudest frequency a vibrating object produces; the 1st harmonic.
Harmonic series
The family of frequencies (f, 2f, 3f...) a fixed-length vibrator can sustain.
Timbre
The mixture of harmonic amplitudes that lets your ear tell instruments apart at the same pitch.
Resonance
Large-amplitude response when a driving frequency matches a system's natural frequency.
Beating
A slow loud-soft pulsing heard when two close frequencies interfere over time.
Equal temperament
A tuning system that divides the octave into twelve equal frequency ratios of 2^(1/12).
Consonance
A stable, pleasant-sounding interval, often tied to simple whole-number frequency ratios.
Fourier analysis
Breaking a complex wave into a sum of simple sine wave components.

Worked Example: Standing Wave Harmonics & Frequencies on a String

A string clamped at both ends (like on a guitar, violin, or piano) only supports standing waves that have displacement nodes (points of zero motion) at both ends. This boundary condition requires that an exact integer number \(n\) of half-wavelengths fit the vibrating string length \(L\):

\(L = n \frac{\lambda_n}{2} \quad \implies \quad f_n = n \frac{v}{2L} = n \cdot f_1\) where \(n = 1, 2, 3, \dots\) is the harmonic number, \(v\) is wave speed, and \(f_1\) is the fundamental frequency

Sample Problem: A concert classical guitar low E string has a vibrating scale length \(L = 0.65\text{ m}\) (\(65\text{ cm}\)) and is tuned to fundamental frequency \(f_1 = 82.4\text{ Hz}\).

  1. Calculate the transverse wave propagation speed \(v\) along the string.
  2. Calculate the frequencies of the 2nd harmonic (octave) and 3rd harmonic (fifth above the octave).
  3. Identify the physical node locations along the string for the 3rd harmonic.

Step 1: Calculate wave speed on the string.

For the fundamental mode (\(n=1\)), the wavelength is \(\lambda_1 = 2L = 2 \times 0.65\text{ m} = 1.30\text{ m}\).
Substitute into the wave equation \(v = f_1 \cdot \lambda_1\):
\(v = 82.4\text{ s}^{-1} \times 1.30\text{ m} \approx 107.1\text{ m/s}\).

Step 2: Calculate harmonic frequencies.

Harmonic frequencies are exact integer multiples of the fundamental:
• 2nd harmonic: \(f_2 = 2 \cdot f_1 = 2 \times 82.4\text{ Hz} = 164.8\text{ Hz}\) (E3, one octave higher).
• 3rd harmonic: \(f_3 = 3 \cdot f_1 = 3 \times 82.4\text{ Hz} = 247.2\text{ Hz}\) (B3, an octave plus a perfect fifth).

Step 3: Locate nodes for the 3rd harmonic (\(n=3\)).

The wavelength is \(\lambda_3 = \frac{2L}{3} = \frac{1.30}{3} \approx 0.433\text{ m}\). Nodes occur every half-wavelength (\(\lambda_3 / 2 = L/3 = 0.217\text{ m}\)):
Nodes are located at \(x = 0\text{ m}\) (nut), \(x = 0.217\text{ m}\) (\(1/3\) length, near 7th fret), \(x = 0.433\text{ m}\) (\(2/3\) length, near 19th fret), and \(x = 0.65\text{ m}\) (bridge). Lightly touching the string at one of these node points silences lower harmonics while letting the 3rd harmonic ring pure and clear!

Check your understanding: Where must a violinist or guitarist touch a string to isolate the 2nd harmonic (octave)?

At the exact center of the string (\(x = L/2 = 0.325\text{ m}\), right above the 12th fret). This forces a node at the midpoint, damping the fundamental while allowing the 2nd harmonic to vibrate in two loops with double the frequency (\(164.8\text{ Hz}\)).

Lesson Summary

Sound is oscillationVibrating matter pushes air into pressure waves; frequency gives pitch, amplitude gives loudness.
Standing waves make notesFixed-length vibrators only support wavelengths that fit L = n(lambda/2), which is why pitch is stable.
Ratios shape scalesSimple ratios (2:1, 3:2, 4:3) sound consonant; equal temperament trades purity for playing in any key.

1. Doubling a string's tension while keeping length and mass per metre fixed does what to the fundamental frequency?

2. Which waveform contains only odd-numbered harmonics?

3. Why does 12-tone equal temperament exist at all?