Speculative Acoustics Lab · Nov 18, 2026

Intervals on a Torus

Two oscillators, one ratio: hearing a musical interval, and seeing it as a knot and a Lissajous figure.

Play two pure tones together and the ear reports a single thing: an interval. A fifth, a fourth, a slightly sour third. Underneath, it’s just two oscillators running at the same time, and there’s a nice way to picture what they’re doing together.

Two phases make a torus

A sine oscillator is described by one number that keeps going around a circle: its phase θ\theta. Two oscillators need two phases, (θ1,θ2)(\theta_1, \theta_2), and a pair of angles is a point on a torus. Run them at frequencies f1f_1 and f2f_2 and the point moves steadily:

θ1(t)=2πf1t,θ2(t)=2πf2t+φ.\theta_1(t) = 2\pi f_1 t, \qquad \theta_2(t) = 2\pi f_2 t + \varphi .

If the frequencies are in a whole-number ratio, f1:f2=p:qf_1 : f_2 = p : q, the path closes up after going pp times around one way and qq times around the other. That closed path is the (p,q)(p, q) torus knot. A perfect fifth, 3:23:2, is the trefoil.

The oscilloscope view

Send oscillator 1 to the left channel and oscillator 2 to the right, plug them into an oscilloscope in XY mode, and you see the same path through a different lens:

(x,y)=(sin⁡θ1, sin⁡θ2).(x, y) = (\sin\theta_1,\ \sin\theta_2).

That’s a Lissajous figure. Simple ratios give simple figures; the knot and the figure are two pictures of one motion.

On the torus: the (3, 2) torus knot. Drag to rotate.
On the oscilloscope: left channel → x, right → y.

Headphones recommended: each oscillator is in its own ear.

Mistuning makes it move

Nudge oscillator 2 off the exact ratio by a few cents and the offset φ\varphi starts to drift. The figure slowly turns through its family of shapes, repeating at

fcycle=∣qf1−pf2∣.f_{\text{cycle}} = \lvert q f_1 - p f_2 \rvert .

With pure sine tones you can hear the same thing as a slow wavering in the interval. Set the detune to zero and everything freezes: the interval is “just”, and the knot is still.


How this page works: the demo is a React component embedded in an MDX post with client:visible, so three.js, d3 and the audio code only load when you scroll to it.