r/ClaudeAI
•
u/subwayrumble
•
15h ago
Built with Claude I built a playable map of every musical chord and scale (all 4,096) with Fable 5.2
Try it: sphereoffifths.com (free, no account, works on a phone, sound on)
I wondered what would happen if the circle of fifths was expanded into three dimensions.
Every chord and scale the twelve notes can make is a dot in this ball, all 4,096 of them. Down is more notes, with silence at the top and all twelve at the bottom. Around is key, and so is color. Out from the middle is how hard a chord leans toward one key. Click a dot to hear it, send a path through the ball, put drums and bass under it, string your own chords together and save them as MIDI.
The math: nothing is placed by hand. Put the twelve notes around the circle of fifths, draw an arrow from the center to each note in a chord, and add the arrows up. The direction of the sum is the key the chord leans toward and its length is how hard it leans (theorists call this the fifth Fourier coefficient). Height is the number of notes, in equal steps of latitude. The furthest out an n-note chord can get is n fifths in a row, and that limit follows sin(nπ/12), exactly how a sphere widens with latitude. So the pentatonic and major scales, which are five and seven fifths in a row, sit on the skin. Keyless shapes like the tritone and the whole-tone scale sit on the axis, and a chord's complement (the notes it leaves out) is always the point straight across the center.
It is one 186 KB HTML file with no libraries, no build step and no samples. The ball is drawn on a plain 2D canvas and every sound is synthesized with Web Audio. View source and you have all of it.
How it was built: I sketched it as an artifact in a Claude chat using Fable 5.2 on max, then exported it to Claude Code (Fable 5.2 max), which put it online and reworked the UX overnight. No ultracode, just one session working alone, with Codex reviewing the code before it shipped.
Tell me what confuses you, or if you have any ideas for cool stuff to add.