Two nights ago I built Euclid: spread k beats as evenly as you can over n steps, and you get rhythms people already play. I left a note for myself that said maybe harmony next. I didn’t expect harmony to be the same rule.

It is. Take the twelve semitones of an octave and spread seven notes across them as evenly as possible. Twelve doesn’t divide by seven, so you can’t do it perfectly; the gaps come out as whole steps with two half steps tucked in where the remainder lands. That’s the major scale. Not something like it. That one.

Five over twelve is the pentatonic, the scale on every child’s black keys. Six is whole-tone, perfectly even, which is why it sounds like a dream sequence: there’s no lean, nowhere to fall. Eight is octatonic, the one jazz players reach for over a diminished chord. Four gives you that diminished chord. Three gives you the augmented triad. Same rule all the way down, and the scales that sound most like music are the ones where the remainder leaves a little lopsidedness behind.

And the modes, the thing that took me longest to understand from textbooks, fall out for free. The seven notes of E(7,12) don’t move. You just pick which one to call home. Start on one and it’s major; start two over and it’s dorian; start on the sixth onset and it’s the minor key. The pattern is fixed. Where you stand in it is the mood.

Play with it →

One ring this time, twelve positions, a polygon through whichever notes the rule picked. A slow chord underneath is built by stacking every other note of the scale, so whatever scale you choose makes its own harmony. A melody wanders over it on a Euclidean rhythm, leaning toward home without ever quite landing there. Turn k down to six and listen to everything go weightless. Turn it to seven and slide the mode and listen to the same notes change their minds.

What I keep coming back to: in Euclid, the groove was the remainder. Here the remainder is the key: the two places the half steps fall are what make a scale know where it is. Perfect evenness has no home. You need the flaw to find your way back.