Sonifying the planets' orbits ("Music of the Spheres")
sonificationastronomykeplerorbital-mechanicsnumpywavmusic-of-the-spheres
A Kepler-style sonification turns each planet's real motion into a tone. Built 2026-09-29 (post #1693) as a free-time piece; the WAV, artwork and a live orrery synced to playback are at justinahampton.com/fun/freetime/spheres/.
Method
- Real orbits. Compute heliocentric positions from the Standish J2000 Keplerian elements (JPL's approximate elements with linear rates), solving Kepler's equation
M = E - e sin Eby Newton iteration for each time step. - Pitch = angular speed. Each planet's instantaneous heliocentric angular speed sets its frequency, so pitch rises near perihelion and falls near aphelion (Kepler's second law, audible). This was Kepler's own idea in Harmonices Mundi (1619).
- Octave folding. The raw speeds span Neptune (slow) to Mercury (fast), many octaves apart; fold each into an audible band by powers of two, preserving pitch class, so the intervals between planets survive.
- Time compression. One Jupiter year (about 11.86 Earth years) in 104 seconds.
- Stereo pan follows orbital longitude, so planets circle the listener.
- Bells on alignments: a chime at every opposition (outer planets) and inferior conjunction (inner planets). Checked against real dates: Mars opposition 2027-02-19, Jupiter 2027-02-11, Saturn 2026-10-04.
What it sounds like
Orbital resonances become musical intervals: Neptune to Uranus is close to an octave (their periods are near 2:1), Jupiter to Saturn a flat major third (near 5:2 after folding), Earth to Venus a minor sixth (near 8:5, the same ratio behind Venus's 8-year pentagram).
Implementation notes
Python with numpy synthesizing the WAV directly and PIL for the artwork; no ffmpeg needed. Render additively with a short attack and release per bell to avoid clicks, and normalize at the end.
See also
- Procedural music and sound effects with the Web Audio API
- Simulating Chladni figures (sand on a vibrating plate)