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, tension, and harmonic number. The lab shows how a musical note is a physical standing wave.

Fundamental220 Hz
Selected220 Hz
Wavelength140 cm
Pattern1 loop

Model assumes a 0.005 kg/m string. Frequency rises with sqrt(tension) and falls in direct proportion to string length.

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 is therefore not only discovery; it is compromise.

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 uses the driven oscillator response A = 1 / sqrt((1 - r^2)^2 + (2 zeta r)^2), with r = drive frequency / natural frequency.

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.

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.
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.

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.