Sign in to save

Bookmark this page so you can find it later.

Sign in to save

Bookmark this page so you can find it later.

Build-a-Musical-Instrument Pitch Lab

Build three kinds of instrument and watch the standing wave and pitch update instantly. Stretch a string, size an open pipe, or pour water into a bottle, then press play to hear the note. Compare frequencies and read off the nearest musical note with its cents offset.

Guided Experiment: How does string length change pitch?

Predict what happens to the pitch when you make a string shorter while keeping tension and gauge the same. By how much does the frequency change if you halve the length?

Write your hypothesis in the Lab Report panel, then click Next.

Standing Wave

String fixed at both ends, fundamental: one antinode in the middle243.3 Hz B3 (-26 cents)

Controls

m
N

Pitch & Harmonics

243.3 Hz
B3 (-26 cents)
Harmonic series (all harmonics)
#FrequencyNote
1 (fundamental)243.3 HzB3
2486.5 HzB4
3729.8 HzF#5
4973.0 HzB5
51216.3 HzD#6

Data Table

(0 rows)
#InstrumentKey paramLength / air column (m)Frequency (Hz)Note
0 / 500
0 / 500
0 / 500

Reference Guide

Vibrating Strings

A string fixed at both ends vibrates with a node at each end. The fundamental fits one half wavelength along the length L. Its frequency depends on length, tension T, and the mass per unit length (linear density) μ.

f1=12LTμf_1 = \frac{1}{2L}\sqrt{\frac{T}{\mu}}

Shorten the string and the pitch rises. Tighten it and the pitch rises. Use a thicker, heavier string and the pitch falls. Halving the length doubles the frequency, which is exactly one octave higher.

Open and Closed Pipes

An open pipe (open at both ends) has an antinode at each end and carries every integer harmonic.

fn=nv2L,n=1,2,3,f_n = \frac{n v}{2L}, \quad n = 1,2,3,\ldots

A closed pipe (closed at one end, open at the other) has a node at the closed end and carries only the odd harmonics. Its fundamental is one octave below an open pipe of the same length.

fn=nv4L,n=1,3,5,f_n = \frac{n v}{4L}, \quad n = 1,3,5,\ldots

A bottle behaves like a closed pipe. Adding water shortens the air column L and raises the pitch.

Frequency to Note

Western music uses equal temperament with the reference pitch A4 at 440 Hz. Each octave is a doubling of frequency divided into twelve equal semitones.

n=12log2 ⁣(f440)n = 12\,\log_2\!\left(\frac{f}{440}\right)

Rounding n to the nearest whole number gives the closest note. The leftover fraction, scaled to 100, is the cents offset. A reading of plus or minus 50 cents means the pitch sits halfway between two notes.

Speed of Sound

The pipe and bottle frequencies use the speed of sound in air, about 343 m/s at room temperature. Warmer air carries sound faster, which slightly raises the pitch of a wind instrument.

For a string the relevant speed is the wave speed along the string itself, v=T/μv = \sqrt{T/\mu}, which is usually far slower than the speed of sound in air. That is why a short, tight string and a long pipe can sound the same note.

Related Content