Theory
Open pipe: $f_n = \dfrac{n \cdot c}{2L}$Closed pipe: $f_n = \dfrac{(2n-1) \cdot c}{4L}$
Helmholtz: $f = \dfrac{c}{2\pi}\sqrt{\dfrac{A}{V \cdot L_\mathrm{eff}}}$
Explore standing wave resonance in open pipes, closed pipes, and Helmholtz resonators. Adjust pipe length, temperature, and harmonic number to see how flutes, clarinets, and bottles produce their characteristic tones.
The fundamental relationship governing resonance in pipes is the condition that the pipe length must equal an integer or half-integer multiple of the sound wavelength. The frequency is determined by the speed of sound divided by the wavelength.
$$f_n = \dfrac{n \cdot c}{2L}\quad \text{(Open Pipe)}$$Where $f_n$ is the frequency of the nth harmonic, $n = 1, 2, 3,...$, $c$ is the speed of sound in air, and $L$ is the pipe length. For a closed pipe, the condition changes to odd multiples of a quarter-wavelength.
$$f_n = \dfrac{(2n-1) \cdot c}{4L}\quad \text{(Closed Pipe)}$$Here, $n = 1, 2, 3,...$, but only yields the 1st, 3rd, 5th... harmonics. The speed of sound is temperature-dependent: $c \approx 331 \sqrt{1 + \frac{T}{273.15}}$ m/s, where $T$ is in °C.
A Helmholtz resonator works on a different principle: it's the oscillation of a plug of air in a neck, acting like a mass on a spring, where the cavity volume provides the springiness.
$$f = \dfrac{c}{2\pi}\sqrt{\dfrac{A}{V \cdot L_\mathrm{eff}}}$$Here, $f$ is the resonant frequency, $A$ is the cross-sectional area of the neck, $V$ is the volume of the cavity, and $L_\mathrm{eff}$ is the effective length of the neck (slightly longer than the physical length due to end effects). This is why in the simulator, changing the volume or neck area has a dramatic effect on the pitch.
Musical Instrument Design: This is the direct application. The length of a trombone slide or the keys on a flute are precisely calculated to change the effective pipe length and select specific harmonics. Designers use these equations to ensure instruments are in tune across their entire range.
Architectural Acoustics: Helmholtz resonators are built into the walls of concert halls as sound absorbers. They are tuned to specific problematic low-frequency resonances (like room modes) to "trap" and dissipate that energy, reducing muddy bass and improving sound clarity.
Automotive & HVAC Engineering: Unwanted acoustic resonance in intake manifolds, exhaust systems, or air ducts can create loud, annoying whistles or booms. CAE simulation software uses these exact models to predict and eliminate such resonances during the design phase, before a physical prototype is built.
Consumer Product Design: The pleasing "click" of a car door closing or the sound of a bottle when you blow across its top are Helmholtz resonance effects. Engineers can tune these sounds to be satisfying and indicative of quality by carefully designing the cavity and neck dimensions.
There are a few key points you should be especially mindful of when starting to use this simulator. First, the "Tube Length L" refers to the effective vibrating length. If you look at a real flute or clarinet, you'll see they are curved or have open finger holes. Think of the simulator's "tube length" as the "effective length of the air column when sounding," which incorporates all those effects. For example, the state with all finger holes closed on a clarinet corresponds to the "total length L of a closed tube" in the simulator.
Next, don't take the explanation that "closed tubes only produce odd-numbered harmonics" at face value. This is true only under the ideal conditions of a perfectly cylindrical tube with a completely rigid closed end. The interior of an actual clarinet mouthpiece has a complex shape, so strictly speaking, the "closed end" condition is not perfectly met. Consequently, very weak even-numbered harmonics are also generated, influencing the instrument's timbre (harmonic structure). It's important to be aware of the differences between the simulator's ideal model and real-world instruments.
Finally, consider the "effective neck length Leff" for a Helmholtz resonator. This is a corrected value longer than the physical neck length, approximated by formulas like $L_{\text{eff}}\approx L_n + 0.85 \sqrt{A}$. The "0.85√A" part represents the "end effect," where the vibration spreads outward at the neck's opening. For instance, when you blow across a bottle's mouth to produce a "popping" sound, using this correction brings the calculated pitch closer to the actual sound than using just the physical neck length. When adjusting parameters, remember this concept of "effective length."
The principles of acoustic resonance calculated here actually form the foundation of various engineering fields, not just wind instruments. The first that comes to mind is the design of automotive and aircraft engine intake/exhaust systems. Engine manifolds and exhaust pipes are precisely complex combinations of "closed" and "open" tubes. The standing wave theory you learn here is fully utilized to resonate exhaust pressure waves at specific RPMs, enhancing scavenging efficiency (tuning) or, conversely, reducing noise.
Next, architectural and room acoustics design is deeply involved. In designing large halls or studios, standing waves (room modes) generated between wall surfaces degrade acoustic properties. This can be considered a resonance problem of a "closed tube" extended into three dimensions. Furthermore, Helmholtz resonator-type absorbers installed on walls to absorb low-frequency reverberation (that muddy bass feeling) are exactly what the simulator deals with.
More surprisingly, applications extend to the design of semiconductor manufacturing equipment and analytical instruments. For example, inside Mass Flow Controllers (MFCs) that precisely control gas flow, or in the capillary columns of gas chromatographs, fluid pressure fluctuations can cause resonance phenomena, reducing measurement accuracy. To prevent this, it's necessary to evaluate the acoustic characteristics of the piping system in advance through simulation.
Once you've gained an intuitive understanding with this simulator, the best next step is to get your hands dirty with the equations and physical models yourself. First, I recommend recreating the simulator's calculation formulas in a spreadsheet or with simple programming (e.g., Python). For instance, try calculating the speed of sound c with temperature T as a variable, and then generating a frequency table for open and closed tubes based on that. This will solidify your feel for "why pitch changes with temperature."
The next challenge is extending to "conical tubes" or "bent tubes". Real saxophones or oboes are conical, and French horns have coiled tubes, right? For these instruments, the solutions to the wave equation become more complex than for cylindrical tubes. As a next learning step, starting from the general solution of the wave equation, $$ \frac{\partial^2 p}{\partial x^2} = \frac{1}{c^2} \frac{\partial^2 p}{\partial t^2} $$, learn how to set boundary conditions according to the tube's shape. Understanding this will show you both "how idealized this simulator's model is" and "how powerful that idealization is."
Ultimately, learn the concept of "acoustic impedance". This is the acoustic version of electrical impedance (AC resistance), a powerful tool that allows you to treat all tube shapes and termination conditions (open, closed) uniformly with this single quantity. Using this, you can theoretically track the resonant frequencies of complex systems with connected tubes of different shapes—which is what real instruments are!