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 . Two oscillators need two phases, , and a pair of angles is a point on a torus. Run them at frequencies and and the point moves steadily:
If the frequencies are in a whole-number ratio, , the path closes up after going times around one way and times around the other. That closed path is the torus knot. A perfect fifth, , 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:
That’s a Lissajous figure. Simple ratios give simple figures; the knot and the figure are two pictures of one motion.
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 starts to drift. The figure slowly turns through its family of shapes, repeating at
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.