---
title: Pipes and standing waves
heading: Resonances of pipes open at both ends and closed at one, end corrections, why a closed pipe has only odd harmonics, designing a pipe for a pitch, the vocal tract as a quarter-wave resonator with its formants, and how temperature tunes a wind instrument
eyebrow: S16 · Lesson 23 · Pipes and standing waves
xp: 50
---

::: hook
An organ pipe, a flute, a clarinet and the human vocal tract are all columns of air whose length sets which frequencies they resonate at. A pipe open at both ends behaves like the string of lesson 3, with every harmonic; close one end and only the odd ones survive, which is why a clarinet sounds hollow and an octave lower than a flute of the same length. The open ends aren't quite where they look, either: the air just outside an open end moves with the column, so the pipe acts slightly longer than it is.
:::

::: play
- The resonance frequencies of a pipe of effective length L: open at both ends, $f_n = nc/2L$ (all harmonics), and closed at one end, $f_n = (2n - 1)c/4L$ (odd harmonics only, starting an octave lower).
- The stems show the first eight resonances of each.
- Halving the length doubles every frequency.
:::

```sim plot
view: graph
x: n = 1..8
y: f = 0..3000
slider: L = 0.1..2 step 0.01 = 0.5
plot: n*343/(2*L) | stems | label: open–open resonances, Hz
plot: (2*n - 1)*343/(4*L) | stems | color: ch3 | label: closed–open resonances, Hz
readout: open–open fundamental, Hz = 343/(2*L) | digits: 4
readout: closed–open fundamental, Hz = 343/(4*L) | digits: 4
```

::: predict
## A pipe 1 m long and 3 cm in radius is open at both ends. Including end corrections, what's its fundamental frequency in air at 20 °C?

- [ ] 343 Hz
- [ ] 171.5 Hz
- [x] About 165 Hz
- [ ] About 84 Hz

::: reveal
Each unflanged open end adds about 0.61a = 1.8 cm, so the effective length is 1.037 m and $f_1$ = 343/(2 × 1.037) = 165.4 Hz, 4% below the 171.5 Hz the bare length predicts. Closing one end would leave one correction and halve the frequency: 84.2 Hz.
:::
:::

::: nameit
## Open and closed ends

An open end is nearly a pressure node (the air outside holds the pressure at atmospheric); a closed end is a pressure antinode and a velocity node. So:

- **open at both ends**: $f_n = \dfrac{nc}{2L_\text{eff}}$, n = 1, 2, 3, …, every harmonic;
- **closed at one end**: $f_n = \dfrac{(2n - 1)c}{4L_\text{eff}}$, only odd harmonics, with a fundamental an octave below the open pipe's.

## End corrections

The air just beyond an open end moves with the column, so the pressure node lies a little outside. For a pipe of radius a, the effective length grows by about 0.61a at an unflanged end and 0.85a at a flanged one (an end set into a large baffle).

## Designing for a pitch

An open pipe of radius a for frequency f needs a physical length $L = c/2f - 2(0.61a)$. Since $c \propto \sqrt{T}$, a wind instrument's pitch rises with temperature: about 29 cents (0.29 semitone) for 10 °C near room temperature, while string instruments go flat as their strings expand.

## The vocal tract

From the glottis (nearly closed) to the lips (open), the vocal tract is roughly a 17.5 cm closed-open tube. Its resonances, the **formants**, near (2n − 1)c/4L = 490, 1470 and 2450 Hz for a neutral vowel, shape the spectrum of the buzz from the vocal folds; moving the tongue and lips changes the tube's shape and shifts the formants to make different vowels (lesson 44).
:::

::: example
## What length should an open pipe 1 cm in radius have to sound 440 Hz? And what happens to the 1 m pipe's 165.4 Hz pitch if the air warms from 20 to 30 °C?

::: solution
1. **Length for 440 Hz.** With an end correction of 0.61a at each end:
   $$\begin{aligned} L &= \frac{c}{2f} - 1.22a \\ &= 343/880 - 1.22 \times 0.01 \\ &= 0.378\ \text{m} \end{aligned}$$
2. **Warmer air.** At 30 °C the frequency becomes
   $$\begin{aligned} f &= 165.4 \times \sqrt{303.15/293.15} \\ &= 168.2\ \text{Hz} \end{aligned}$$
   29 cents sharp, which is why organs are tuned at the temperature they'll be played.

**Answer:** the pipe should be 0.378 m long, and warming to 30 °C raises the 1 m pipe to 168.2 Hz, 29 cents sharp.
:::
:::

::: example
## Find the first three formants of a 17.5 cm uniform vocal tract.

::: solution
1. **First formant.**
   $$\begin{aligned} F_1 &= \frac{343}{4 \times 0.175} \\ &= 490\ \text{Hz} \end{aligned}$$
2. **The next two.** They're the odd multiples:
   $$\begin{aligned} F_2 &= 3 \times 490 \\ &= 1470\ \text{Hz} \\ F_3 &= 5 \times 490 \\ &= 2450\ \text{Hz} \end{aligned}$$
3. **Check.** These are close to the measured formants of the neutral vowel in "about".

**Answer:** 490 Hz, 1470 Hz and 2450 Hz.
:::
:::

::: example
## An open pipe 30 cm long and 2 cm in radius sounds its fundamental. How flat is it compared with the naive c/2L, unflanged, and what if both ends had flanges?

::: solution
1. **Naive frequency.**
   $$\begin{aligned} f &= 343/0.6 \\ &= 572\ \text{Hz} \end{aligned}$$
2. **Unflanged ends.** Each adds 0.6a = 1.2 cm of effective length, so L′ = 32.4 cm and
   $$\begin{aligned} f &= 343/0.648 \\ &= 529\ \text{Hz} \end{aligned}$$
   7% lower.
3. **Flanged ends.** Each adds 0.85a, so L′ = 33.4 cm and
   $$\begin{aligned} f &= 343/0.668 \\ &= 513\ \text{Hz} \end{aligned}$$
4. **Why the pipe sounds long.** The air just outside an open end moves with the column, so the pipe acts longer than it is, more so when a flange keeps that air from escaping sideways.

**Answer:** unflanged, the pipe sounds 529 Hz, 7% below the naive 572 Hz; with flanges at both ends it sounds 513 Hz.
:::
:::

::: check
given: L = 0.3 | 0.5 | 0.8; a = 2 | 3 | 5
answer: 343/(2*(L + 2*0.61*a/100))
unit: Hz
tolerance: 0.5%

## An unflanged pipe {L} m long and {a} cm in radius is open at both ends. What's its fundamental?

::: right
Right. $c/2(L + 1.22a)$ = {answer} Hz.
:::

::: misses
- [343/(2*L)] Include the end corrections, 0.61a at each open end.
- [any] Not yet. Effective length, then c/2L.
:::
:::

::: check
given: L = 0.3 | 0.5 | 0.8; a = 2 | 3 | 5
answer: 343/(4*(L + 0.61*a/100))
unit: Hz
tolerance: 0.5%

## The same kind of pipe ({L} m, radius {a} cm) is closed at one end. What's its fundamental?

::: right
Right. $c/4(L + 0.61a)$ = {answer} Hz.
:::

::: misses
- [343/(4*(L + 2*0.61*a/100))] Only the open end gets a correction.
- [any] Not yet. A quarter wavelength fits the effective length.
:::
:::

::: check
given: L = 0.2 | 0.5 | 1.2; n = 2 | 3 | 4
answer: (2*n - 1)*343/(4*L)
unit: Hz
tolerance: 0.5%

## A closed–open pipe has an effective length of {L} m. What's its resonance number {n}, counting the fundamental as 1?

::: right
Right. $(2n - 1)c/4L$ = {answer} Hz.
:::

::: misses
- [n*343/(4*L)] A closed pipe has only odd harmonics: the nth resonance is the (2n − 1)th harmonic.
- [any] Not yet. Odd multiples of c/4L.
:::
:::

::: check
given: f = 262 | 440 | 880; a = 0.5 | 1 | 1.5
answer: 343/(2*f) - 2*0.61*a/100
unit: m
tolerance: 0.5%

## How long should an unflanged open pipe of radius {a} cm be to sound {f} Hz?

::: right
Right. $c/2f - 1.22a$ = {answer} m.
:::

::: misses
- [343/(2*f)] Subtract the end corrections.
- [any] Not yet. Effective length minus the two corrections.
:::
:::

::: check
given: L = 14 | 17.5 | 20
answer: 3*343/(4*L/100)
unit: Hz
tolerance: 0.5%

## Model a vocal tract as a uniform closed–open tube {L} cm long. Where's its second formant?

::: right
Right. $3c/4L$ = {answer} Hz.
:::

::: misses
- [2*343/(4*L/100)] Closed–open tubes resonate at odd multiples: the second formant is 3c/4L.
- [any] Not yet. The second resonance of a quarter-wave tube.
:::
:::

::: check
given: f = 200 | 440; a = 10 | 20; b = 25 | 35
answer: f*sqrt((273.15 + b)/(273.15 + a))
unit: Hz
tolerance: 0.05%

## A wind instrument plays {f} Hz at {a} °C. What does the same fingering give at {b} °C?

::: right
Right. $f\sqrt{T_2/T_1}$ = {answer} Hz.
:::

::: misses
- [f*(273.15 + b)/(273.15 + a)] The speed of sound goes as the square root of absolute temperature.
- [any] Not yet. Frequency scales with c.
:::
:::

::: check
kind: parts
given: L = 0.2 | 0.5; a = 2.5 | 5

## An open pipe {L} m long and {a} cm in radius has flanges at both ends (end correction 0.85a each).

::: part
answer: 343/(2*(L + 2*0.85*a/100))
unit: Hz
tolerance: 0.5%

### What is its fundamental?

::: misses
- [343/(2*(L + 2*0.6*a/100))] Flanged ends correct by 0.85a, not 0.6a.
- [343/(2*L)] Include the end corrections.
- [any] $c/2(L + 1.7a)$.
:::
:::
:::

::: check
kind: derivation
vars: L = 0.05..3, a = 0.002..0.1, n = 1..5

## A pipe of length L and radius a, unflanged, is closed at one end and open at the other (end correction 0.6a), in air at 343 m/s.

::: step
answer: L + 0.6*a

### What is its effective length?
:::

::: step
answer: (2*n - 1)*343/(4*(L + 0.6*a))

### What is the frequency of its nth resonance?
:::

::: right
Right. Only odd harmonics: the closed end is a pressure maximum and the open end a pressure node.
:::
:::

::: explain
## Why does a pipe closed at one end produce only odd harmonics?

::: model
A standing wave in the pipe must have a pressure node at the open end and a pressure maximum at the closed end, where the air can't move. That means the pipe's length must hold a quarter wavelength, or three quarters, or five quarters: an odd number of quarter wavelengths, never an even number, since an even number would put a node at both ends. The allowed frequencies are therefore odd multiples of c/4L. An open pipe needs nodes at both ends, so any whole number of half wavelengths fits, giving every harmonic of c/2L. The closed pipe's fundamental is also an octave lower, because a quarter wavelength fills the same length that a half wavelength fills in the open pipe.
:::
:::

::: practice

::: check
given: L = 0.05 | 5; a = 0.2 | 10
answer: 343/(2*(L + 2*0.61*a/100))
unit: Hz
tolerance: 0.5%

## Open–open fundamental: {L} m, a = {a} cm?

::: misses
- [any] $c/2(L + 1.22a)$.
:::
:::

::: check
given: L = 0.05 | 3; n = 1 | 6
answer: (2*n - 1)*343/(4*L)
unit: Hz
tolerance: 0.5%

## Closed–open resonance {n}, {L} m?

::: misses
- [any] $(2n - 1)c/4L$.
:::
:::

::: check
given: f = 50 | 2000; a = 0.2 | 5
answer: 343/(2*f) - 2*0.61*a/100
unit: m
tolerance: 0.5%

## Open pipe length for {f} Hz, radius {a} cm?

::: misses
- [any] $c/2f - 1.22a$.
:::
:::
:::
