Physics · Lesson 14
Physics of Music
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.
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.
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.
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.
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.
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.
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
Touchable Experiments
Music in the Body
History: Music Technology as Physics Knowledge
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.
Practice Problems
Easy1. A note at 220 Hz is raised one octave. What is the new frequency?
Easy2. A perfect fifth above 200 Hz has ratio 3:2. What frequency is it?
Medium3. In equal temperament, one semitone multiplies frequency by about 1.05946. About what is one semitone above 440 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?
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\):
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}\).
- Calculate the transverse wave propagation speed \(v\) along the string.
- Calculate the frequencies of the 2nd harmonic (octave) and 3rd harmonic (fifth above the octave).
- 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
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?