loading...
press the button: the driver sweeps from 0.3 to 3 times the cutoff of an exponential horn of this size
Throat impedance against frequency: real part (orange), imaginary part (blue), infinite-horn real part (green dashed), cutoff (vertical line)
Sound level 1 m in front of the mouth against frequency: horn (purple) and the bare driver (grey dashed)
running...
How to use
Pick a preset or move the sliders. Press f = cutoff, f = 2 x cutoff or f = 0.5 x cutoff to jump around the exponential horn's cutoff. Try: (1) Midrange horn at 600 Hz, then Below cutoff at 100 Hz: below cutoff the real part of the throat impedance collapses to zero, the pressure decays along the horn and the level in the room drops by tens of decibels; (2) Cone instead: a cone has no sharp cutoff, its impedance rises smoothly; (3) Straight pipe: sweep f to find the organ-pipe resonances (the impedance graph spikes at c / 4L, 3c / 4L, ...); (4) Closed mouth: a standing wave with a pressure antinode at the mouth and no sound radiated; (5) Stubby horn: too short for its flare, so the mouth reflects and the impedance ripples; (6) lengthen the horn and watch the cutoff stay put while the ripples fade; (7) press Run the cutoff sweep experiment and compare the measured cutoff with c m / 4 pi. N and A markers show pressure nodes and antinodes. Space pauses, R resets.
Slow motion sets how many wave periods you see per second. Air-motion dots are exaggerated so that the biggest displacement is 40 percent of their spacing. Tick the tone box to hear the frequency (level follows the on-axis sound level, capped).
The brass wall texture, driver, microphone and lab background were rendered in Blender (Cycles) as WebP sprites; the horn outline, pressure colours, air dots and the impedance map are drawn live on the canvas from the same Webster solver as the 3D version. The map shows Re Z_in / Z_T for the current profile and mouth load, frequency across and horn length up: a vertical edge is the cutoff, ripples are the horn resonating between throat and mouth.
The science
What a horn does. A driver's diaphragm is small, and a small piston radiates poorly at low frequency because its radiation resistance is only (ka)2/2 of the air's characteristic impedance (k = 2 pi f / c, a the radius). A horn is a duct whose cross-section S(x) grows from the throat (S0, next to the driver) to the mouth (SL). The driver sees a gentle, nearly resistive load, passes more power into the air, and the large mouth radiates it. Brass bells, loudspeaker horns, megaphones and ear trumpets are the same idea.
Webster's horn equation. For a slowly flaring duct, plane waves obey p'' + (S'/S) p' + k2 p = 0 (a prime is d/dx). With time dependence exp(+j w t) this is equivalent to the first-order pair solved here:
dp/dx = -(j w rho + R) U / S , dU/dx = -j w S p / (rho c²) , R = 2 rho c alpha
p is the sound pressure, U the volume velocity, c = 343.2 sqrt((T + 273.15) / 293.15) m/s the speed of sound, rho = 1.2041 (293.15 / (T + 273.15)) kg/m3, and alpha (1/m) a lumped amplitude decay rate for wall friction and heat loss. The code integrates this pair with fourth-order Runge-Kutta from the mouth back to the throat, starting from the mouth load, and divides p by U there to get the throat impedance Z_in. Z_T = rho c / S0 is the plane-wave impedance of the throat.
Exponential horn and cutoff. For S = S0 exp(m x) the equation has the exact solution p = exp(-m x / 2) [A exp(-j g x) + B exp(+j g x)] with g = sqrt(k2 - m2 / 4). Below the cutoff frequency
f_c = c m / (4 pi) , m = ln(S_L / S_0) / L
g is imaginary and the wave is evanescent: the throat impedance of an infinitely long horn is Z_in / Z_T = sqrt(1 - (f_c / f)2) + j f_c / f above cutoff and purely reactive below it, so no power is radiated. A flare that is too slow, or a horn that is too short, loads the driver poorly. Cones (S = S0 (1 + x / x0)2) have the closed form Z_in = (rho c / S) j k r / (1 + j k r) with r the distance from the apex: no sharp cutoff, a smooth corner at c / (2 pi x0).
The mouth. The default mouth load is a circular piston in a flange: Z = (rho c / S_L)(R1(2 k a) + j X1(2 k a)) with R1(x) = 1 - 2 J1(x) / x and X1(x) = 2 H1(x) / x (J1 Bessel, H1 Struve function; the Struve function uses the Aarts-Janssen approximation, accurate to about half a percent). At low ka the mouth reflects most of the wave (|Gamma| near 1), the source of the ripples in the impedance of a short horn. Other terminations: an ideal open end (p = 0), a rigid end (U = 0) and a matched mouth (no reflection).
Radiation and gain. Power into the horn is P = (1/2) |U0|2 Re Z_in. A bare piston of the throat's size radiates (1/2) |U0|2 Re Z_rad. The ratio is the horn's power gain over the bare driver, shown in dB. The sound level 1 m in front of the mouth is computed from the mouth volume velocity: |p| = w rho |U_L| / (2 pi r), the on-axis far field of a piston in a large baffle, for the diaphragm velocity you set. The bare driver value uses the same formula with the throat's U0.
Independent checks in this page (panel above): the Runge-Kutta Webster integration against the exact closed-form two-port of the exponential horn at 0.5, 1.5 and 4 times cutoff and with your mouth load; a cone with a spherical-wave load against its exact formula; an infinite exponential horn at 0.6 and 2 times cutoff; conservation of power between throat and mouth (lossless); the cutoff recovered from an impedance sweep; a separate time-domain finite-difference solution of the Webster equation (leapfrog on a staggered grid) against the frequency-domain impedance over 200 to 800 Hz; the first resonance of a straight pipe against c / 4L; and the mouth radiation resistance at small ka and the Bessel fit against its power series.
Honest simplifications. Webster's equation assumes plane (flat) wavefronts across the horn, which fails when the flare is steep or above the frequency where the mouth is a wavelength across (transverse modes, beaming). Losses are one lumped coefficient with no frequency dependence. The mouth is a piston in an infinite flange; a real unflanged horn reflects and radiates a little differently, and its directivity is not shown (the wavefronts drawn are cartoon hemispheres). The driver is a perfect velocity source with no cone breakup, no compression-chamber volume and no electrical side. Nonlinearity (high-amplitude distortion) is ignored. This is a teaching model, not a loudspeaker design tool. The instruments are generic and not tied to any maker.