Clever Quest Lab ← Labs

Lissajous Figures

Two tones drawn against each other: the left ear moves the dot sideways, the right ear moves it up and down.

Keyboard: Space freezes or resumes the drawing, the left and right arrow keys change the phase. Older parts of the trail are fainter.

Frequency ratio x : y

x (left) a 3
y (right) b 2
Tuning

Detune makes the figure turn slowly. In equal temperament the ratio is 2k/12, not a ratio of small whole numbers.

Readouts

Ratio x : y
3 : 2
Interval
—
x, left ear (Hz)
0
y, right ear (Hz)
0
Lobes on side edges
—
Lobes on top edge
—
Closed curve?
—
Reading the picture
—

Sound

Sound is off – press “Turn sound on” to hear the two tones.

x plays in the left channel and y in the right channel. You need headphones or two speakers to hear the two tones separately; from a single speaker they mix. The picture runs far slower than the sound but has the same shape.

Phase and shape

Damped mode

The amplitude shrinks by the factor e−k every base cycle. Live restarts the swing when it has faded to 1 %; in sound, the tones fade with it.

How to use it

The picture is made by two tones drawn against each other. The horizontal position of the dot follows the first tone, x, and the vertical position follows the second, y. Choose a ratio with the steppers or press a preset such as Fifth 3:2, and the figure appears at once. Press Turn sound on to hear the same two tones: x in the left ear, y in the right ear. You need headphones or two separate speakers to hear them apart; from one speaker they mix. Sound stays off until you press the button.

Live moves the dot and leaves a fading trail. Draw once paints the finished picture. If your device asks for reduced motion, the page opens in Draw once and nothing moves until you press Live.

Controls

How it works

The curve is the path of a point whose coordinates are two sine waves:

x = A sin(at + δ),   y = B sin(bt)

When a and b are whole numbers, both coordinates return to their starting values together after t = 2π divided by the greatest common divisor of a and b, so the curve closes. It closes exactly when a : b is a ratio of whole numbers; otherwise the dot never repeats.

To read the ratio from a closed figure, reduce it first (6:4 draws the same shape as 3:2). Then count where the curve touches the edges of its bounding box: it touches each side edge as many times as the reduced x number and the top edge as many times as the reduced y number. A 3:2 figure touches each side edge three times and the top edge twice. At special phases the curve is traced forward and back along itself and the count no longer applies. With equal frequencies and A = B, a phase of 0° gives a diagonal line, 90° a circle and 180° the other diagonal.

Simple ratios sound consonant. In pure tuning a perfect fifth is 3:2, a fourth 4:3, a major third 5:4, a minor third 6:5 and a major sixth 5:3. Keyboards mostly use equal temperament, with twelve equal steps of 21/12 per octave. The equal-tempered fifth is 27/12 = 1.4983, about two cents flat of 3:2, and the major third is 24/12 = 1.2599, about 14 cents sharp of 5:4. These numbers are irrational, so the figure never closes: the phase slips a little every cycle and the lines fan out.

The picture uses the same ratio as the sound, at much lower frequencies, so you can follow it. With damping, each amplitude is multiplied by e−kt, which draws an inward spiral.

The French physicist Jules Antoine Lissajous (1822–1880) studied such curves in 1857 by bouncing a beam of light off mirrors fixed to two vibrating tuning forks at right angles. Equal pitch gave a still figure, and a small mismatch made it turn. The American mathematician Nathaniel Bowditch had studied similar curves in 1815. An oscilloscope in X-Y mode does the same with electrical signals, and engineers use the figures to compare frequencies and measure phase.

Things to try

Frequently asked questions

Why do simple ratios give closed curves?

Both coordinates repeat after a fixed time. If those times fit a whole number of times into a common time, the dot returns to its start and retraces the same path.

Why do I need headphones?

The left channel carries x and the right channel carries y. On one speaker both tones reach both ears, so you hear a chord rather than two separate tones.

Is this the real waveform of the sound?

Not exactly. It has the same ratio and phase as the sound, but it is slowed from hundreds of cycles per second to a few, so the eye can follow it.

Why does equal temperament never close?

Its ratios are powers of 21/12, which are irrational except for whole octaves. No whole numbers a and b match them exactly.

More free games and simulators