b2KIT

Standing Wave Mode Visualizer

Explore standing wave harmonics on strings and in pipes. Adjust tension, density, and boundary conditions. Hear frequency audio output.

Tested tool guide Tested browser tools Checked August 16, 2026

What Standing Wave Mode Visualizer does, with a checked example

A virtual lab for standing waves: set the length of a string or pipe, choose tension and linear density (string) or the speed of sound (pipe), pick fixed-fixed, open-open, or closed-open boundary conditions, and the tool draws each mode shape and plays a tone at its frequency. Frequencies come from fitting half-wavelengths (strings and open pipes) or quarter-wavelengths (closed pipes) into the length. The surprise for most people: the open end of a pipe is an antinode of the air motion, and a pipe closed at one end only produces odd harmonics.

Worked example

A concrete input and expected output from the current implementation.

Input

String, both ends fixed: length 1.0 m, tension 100 N, linear density 0.010 kg/m. Request modes n = 1 and n = 3.

Expected output

Wave speed v = sqrt(100 / 0.010) = 100 m/s. Mode 1: f = 50 Hz, wavelength 2.0 m, 2 nodes, 1 antinode. Mode 3: f = 150 Hz, wavelength 0.667 m, 4 nodes, 3 antinodes. Audio: tones at 50 Hz and 150 Hz.

For a fixed-fixed string, f = n v / (2L), so mode 1 gives 100 / 2 = 50 Hz and mode 3 gives 150 Hz; wavelength is 2L/n, and a mode n shape always shows n + 1 nodes and n antinodes.

How the result is produced

1

Where the frequencies come from

For a string fixed at both ends, or a pipe open at both ends, the ends are nodes, so an integer number of half-wavelengths must fit into the length, giving f = n v / (2L). A pipe closed at one end holds a node at the closed end and an antinode at the open end, which only odd quarter-wavelength patterns satisfy, giving f = (2n-1) v / (4L). The tool applies these two relations from the length and wave speed you set.

2

What the controls actually change

For a string, tension and linear density enter only through the wave speed v = sqrt(T / linear density), so every mode moves by the same factor when you change either; doubling tension multiplies all frequencies by sqrt(2), about 1.414. For a pipe the speed is the speed of sound, so length and boundary conditions are the only levers. The audio tone is synthesized at each mode's frequency; its timbre is not the instrument's.

Good uses

  • Predict the harmonic series of a guitar or violin string from its scale length, gauge (linear density), and tuning tension, and check where each mode's antinodes fall relative to a pickup or the bridge.
  • Compare a pipe open at both ends with one closed at one end at the same length: the closed pipe's fundamental is half the frequency and only odd harmonics appear, the difference between flute-like and clarinet-like instruments.
  • Find the node locations of higher modes, such as the center node of the second harmonic, to see why touching a string at its midpoint kills the fundamental while leaving the second harmonic nearly intact.

Limits and checks

  • The math is ideal: pipe frequencies ignore the end correction, so real open ends act slightly longer and sound a bit lower, and strings are treated as perfectly flexible, while real stiffness makes overtones slightly sharp. Treat results as close, not exact.
  • Mode numbering depends on the boundary conditions: in a closed-open pipe the second mode is the third harmonic (3 times the fundamental). The drawn shape is air displacement, and pressure peaks sit where displacement is zero, which can surprise when comparing to pressure-based diagrams.
  • Audio has limits: a 50 Hz fundamental is nearly inaudible on small laptop speakers, and the synthesized tone carries none of the instrument's timbre, so judge mode frequencies from the numbers, not the ear.

Common questions

Why does my closed pipe show only the 1st, 3rd, and 5th harmonics?

The closed end must hold a node of the air motion and the open end an antinode. Even-numbered harmonic patterns would need a node at the open end or an antinode at the closed end, which the boundaries forbid, so only wavelengths 4L/1, 4L/3, 4L/5 fit. This is the correct physics, not a tool bug; it is also why a clarinet differs from a flute.

I doubled the tension but the pitch did not double. Did I misread the tool?

No. Frequency scales with the square root of tension: f is proportional to sqrt(T). Doubling tension multiplies every mode frequency by sqrt(2), about 1.414, which is exactly six semitones, a tritone, not an octave. To gain an octave you would need to quadruple the tension.

References and verification

The example and behavioral notes were checked against the browser implementation. Standards and primary references below define the relevant format, formula, or platform behavior.

Related Tools