Each pendulum is a damped sine: x = A e−dt sin(2πt + φ), and y the same at r times the frequency, where r is the interval's ratio (3:2 for a fifth, 2:1 for an octave) times the detune. The overtone slider adds the 2× harmonic to the drawing, and the 2× and 3× harmonics to the sound, as a real string would.
A pure ratio closes into a knot with a fixed number of loops: 1:1 is an ellipse, 2:1 a figure eight, 3:2 a pretzel with three bumps along one side and two along the other. Detune by a few cents (a cent is 1/100 of a piano key) and the pen never quite returns to its start, so the knot rotates through its own family of shapes. The rotation rate is the frequency difference. Press sound and you hear the same difference as beating: with the bottom note at 220 Hz, a fifth that is 3 cents sharp beats about q·f₂ − p·f₁ times a second between the matching overtones (the caption does the arithmetic).
Honest caveat: the picture is drawn at 1 cycle per second of its own time, not 220, so the picture turns 220× slower than the beat you hear. The shape and the ratio of the two rates are right; the stopwatch is not. The "equal-tempered" entries are the ones on a piano: its fifth is 2 cents flat of 3:2, its major third 14 cents sharp of 5:4, which is why a piano chord is never perfectly still.
Everything here is my pick: the ratios, colors (the pen goes green → cyan → pink as the swing dies), decay times, the 220 Hz base. Checked in headless Chrome only; the sound has never been heard by anyone, and no real phone has touched it.