← Return to instrument

Model and limits

The waveguide, its pipe-length scale, and the limits reported by the instrument.

1. One waveguide across pipe lengths

The Unbounded Organ is a browser instrument for setting a pipe length or composing a rank of pipes, then exporting audio or a Markdown score. Its length control spans 4 mm, smaller than the mean width of an adult eardrum, to 384,400 km, the mean Earth–Moon distance. With the Earth preset, the 4 mm open pipe has a modeled fundamental near 42.9 kHz.

Increasing the pipe length lowers its fundamental frequency and increases the time between round-trip reflections. The interface uses note, echo, and drift to label ranges of fundamental period. The waveguide continues beyond the reference hearing band and the modeled atmospheric cutoff.

Feedback loop. For an integer delay, the waveguide can be written as: $$y[n] = x[n] + G \cdot y[n - D]$$ Here $D = \frac{2L}{c} f_s$ is the round-trip delay in samples, $x[n]$ is the excitation, and $G$ combines the boundary reflection sign with the loss factor. A fractional delay uses the selected interpolator. This is a uniform-tube model with prescribed excitation; it does not model airflow through an organ-pipe mouth.

2. Pipe resonances and atmosphere

Wave equation and pipe resonances

Sound propagation in an ideal 1D column of air is governed by the second-order wave equation:

$$\frac{\partial^2 p}{\partial t^2} = c^2 \frac{\partial^2 p}{\partial x^2}$$

where $p(x, t)$ is acoustic pressure and $c$ is the adiabatic speed of sound ($c \approx 343\text{ m s}^{-1}$ in air at 20 °C).

By d’Alembert’s solution, the acoustic disturbance resolves into forward- and backward-traveling waves: $p(x, t) = p^+(t - x/c) + p^-(t + x/c)$. Boundary reflections determine the resonant frequencies:

  • Open pipe: Both ends have zero acoustic pressure ($p = 0$). Each pressure reflection has sign $-1$, so the net round-trip sign is $+1$. The round-trip time is $\tau = 2L/c$, producing integer harmonics: $$f_n = n \frac{c}{2L}, \quad n = 1, 2, 3, 4, \dots$$
  • Stopped pipe: One end is open ($r_1 = -1$) and one is rigidly closed ($r_2 = +1$), giving a net round-trip sign of $-1$. Two round trips, taking $4L/c$, restore the phase and produce odd harmonics: $$f_n = (2n - 1) \frac{c}{4L}, \quad n = 1, 2, 3, 4, \dots$$

Stratified atmosphere and acoustic cutoff

The atmospheric diagnostic assumes an isothermal, hydrostatic background with constant gravity $g$ and sound speed $c$. Density decreases exponentially with altitude, with scale height:

$$H = \frac{c^2}{\gamma g}$$

Here $\gamma$ is the ratio of specific heats. The Earth preset uses $\gamma = 1.4$ and gives $H \approx 8.57\text{ km}$.

In this background, vertical acoustic propagation has an angular-frequency cutoff $\omega_a$, or frequency cutoff $f_a$:

$$\omega_a = \frac{\gamma g}{2c} \implies f_a = \frac{\gamma g}{4\pi c}$$

The Earth preset gives $f_a \approx 3.185\text{ mHz}$, a period of $5.23\text{ minutes}$. These are values for the stated atmospheric model.

Propagation threshold. Below $f_a$, the modeled vertical acoustic branch is evanescent: $k_z^2 < 0$.

An ideal pipe longer than $L_{\text{crit}} = 2\pi H \approx 53.84\text{ km}$ (open) or $\pi H \approx 26.92\text{ km}$ (stopped) has its fundamental below $f_a$. Higher modes may still exceed the cutoff. The instrument reports this comparison separately from the audio path, which continues to render the uniform-tube model. A column spanning several scale heights exceeds the physical scope of the constant-sound-speed approximation.

Limits of the pipe model

  • End correction: Open-end radiation increases a real pipe’s effective acoustic length. If the total correction is $\delta$, its size relative to the modeled length is $\delta/L$. An illustrative total correction of $1\text{ mm}$ is about $11.7\%$ of an $8.575\text{ mm}$ pipe. The instrument uses this example in its short-pipe warning; it does not calculate a correction from bore geometry.
  • Altitude: The uniform-tube calculation holds sound speed constant as length increases. For an upright $6,371\text{ km}$ column starting at ground level, over $98.4\%$ of its length lies above $100\text{ km}$. The Kármán line is a reference for the edge of space, not a sharp atmospheric or acoustic boundary. NASA’s account of the edge of space describes this distinction.

3. Period, mode density, and interface categories

Category thresholds

The interface assigns its categories from the ideal fundamental frequency. These are fixed labels for navigating the instrument, rather than measurements of a listener’s perception:

  • Note: The fundamental is at least $20\text{ Hz}$.
  • Echo: The fundamental is below $20\text{ Hz}$ and its period is shorter than one hour.
  • Drift: The fundamental period is at least one hour.

A separate regime report compares the fundamental with a reference hearing band of 20 Hz–20 kHz and the modeled acoustic cutoff. Higher modes can remain in the hearing band when the fundamental falls below it. Excitation, playback equipment, level, and the listener affect what is heard.

Mode density

In an open pipe, frequency spacing between adjacent harmonic modes is constant: $\Delta f = f_1 = c / (2L)$.

Length ($L$) Fundamental ($f_1$) Harmonics below 20 kHz Interface category
2.4384 m (8 ft) 70.33 Hz 284 modes Note 14.2 ms period
8.575 m 20.00 Hz 1,000 modes Note 50 ms period
53.84 km ($L_{\text{crit}}$) 3.185 mHz 6,278,000 modes Echo 5.23 min period
6,371 km ($R_{\oplus}$) 26.92 µHz 743,000,000 modes Drift 10.32 hr period

At 53.84 km, the ideal open-pipe series has over six million modes below 20 kHz. Their spacing follows from the model; a specific perceptual result does not follow from the count alone. The selected excitation and losses determine which modes contribute to a render.

4. Digital waveguide and interpolation

Delay-line computation

Additive synthesis sums individual sinusoidal oscillators: $s(t) = \sum_{k=1}^N A_k \sin(2\pi k f_1 t)$. Representing every ideal mode below 20 kHz in a $53.84\text{ km}$ pipe this way would require more than six million oscillators.

The instrument instead represents the round trip with a circular delay line. With a fixed interpolator, each sample requires a fixed number of operations, while the stored state grows with pipe length and sample rate. Feedback and boundary reflection signs produce the mode series. Julius O. Smith’s account of delay-line interpolation describes the fractional-delay filters used in this approach.

Fractional delay and dispersion

Continuous delay $\tau = 2L/c$ rarely falls on an integer number of discrete sample periods:

$$D = \tau \cdot f_s = M + d, \quad M = \lfloor D \rfloor, \quad d \in [0, 1)$$

The fractional part $d$ is approximated with linear interpolation, four-point cubic Lagrange interpolation, or a first-order Thiran allpass filter. An option without interpolation is also available.

Phase-delay estimate. An ideal fractional delay has a phase delay of $d$ samples. The selected filter’s phase response $\theta(\omega)$ gives the estimated total delay: $$D_{\text{eff}}(\omega) = M - \frac{\theta(\omega)}{\omega}, \qquad \widehat f_n = n f_1 \frac{D}{D_{\text{eff}}(\omega_n)}$$ The table evaluates this expression at each target mode, where $\omega_n = 2\pi n f_1/f_s$. It reports estimated frequency deviations, not a spectrum measured from rendered audio. The calculation is an approximation rather than an iterative solution of the loop’s resonance condition.

Sample rate, memory, and output format

The digital settings impose limits on the same pipe specification:

  • Nyquist frequency ($f_s/2$): Frequencies above this boundary cannot be represented distinctly from lower frequencies.
  • Delay-line memory: The state size is approximately $S = \left(\frac{2L}{c} f_s\right) \times 8\text{ bytes}$, plus interpolation padding. At $48\text{ kHz}$, a 6,371 km pipe requires about $13.3\text{ GiB}$. At $10\text{ Hz}$ it requires about $2.83\text{ MiB}$, with the represented band reduced to 5 Hz. A rank shares a 1 GiB delay-line allocation ceiling across its voices.
  • WAV file size: The renderer uses RIFF WAV with a size limit near $4\text{ GiB}$. Bit depth determines the stored bytes per sample. Render buffers and browser memory can impose lower practical limits.

5. Physical and digital limits

The physical assumptions and digital limits constrain different parts of the instrument:

Pipe range Physical approximation Digital limit
Short pipes An omitted end correction becomes a larger fraction of the pipe length. Bore geometry is outside the model. The delay approaches the sampling interval, and the fundamental may approach or exceed $f_s/2$.
Long pipes The fundamental can fall below the modeled vertical cutoff. A uniform tube no longer describes an upright column spanning large altitude changes. Delay-line state can exceed the allocation ceiling. Long output files can exceed the WAV size limit or available render memory.