Skip to main content

j1-2k7-mtW06: Kepler's Orrery - Generative Music of the Planets

July 20, 2007

Kepler's Orrery creates generative music based on a gravity simulator.

Start with a gravity simulator: bodies have mass, position, and velocity. They swirl around, attracted to everything else. When they collide, they light up, and occasionally play notes.

"Rocks" have mass but don't move. They're depicted as squares. You can grab them with the mouse and move them around.

Bodies bounce off the edge of the universe, but sometimes get stuck outside, until the "friction" slows them down enough to make their way back in.

Mutators randomly change the mass or velocity of things that collide with them. If a world has no mutators, it comes out the same each time (given the same) initial conditions.

When the world is finished playing, the stars wink out one by one, and eventually the notes stop.

Download Audio

You can download the MP3 of this podcast episode directly, or copy and paste the Community Corner mini-talks feed into a podcast client like Juice or iTunes. You can also subscribe via the iTunes Store.

width="1" height="1" border="0" alt=" " />
Simran Gleason is the creator of Kepler's Orrery
Related Topics >> JavaOne   |