My first YouTube: a new generative music algorithm

   Thu, February 8, 2007 - 9:31 PM
I've been working for a few weeks on a new generative music algorithm: Kepler's Orrery.
It starts with a gravity simulator, and makes bodies whir around the screen with mutual attraction.
Then whenever they collide, they play music.

You start with a world, with bodies that have mass, position, and velocity
(or rocks), add instruments and melodies, and let them go.

So I took one of the worlds and made a video and posted it. Check it out:

www.youtube.com/watch

and then here's the next one:
www.youtube.com/watch



8 Comments

add a comment
Fri, February 9, 2007 - 5:56 AM
Wow, that's pretty cool!
Fri, February 9, 2007 - 8:41 AM
This is so cool. I'm working on similar things using the CSound library. You can build entire software synthesizers with it, so you can actually create timbres on the fly in addition to generating the notes. I'd love to pick your brain sometime on your algorithm,
Fri, February 9, 2007 - 8:59 AM
Heavy, man. ;-)
Fri, February 9, 2007 - 10:00 AM
thanks!
the sounds were all generated with the default built-in synthesizer inthe java midi api.
I was quite surprised by how many good sounds there were in there. Of course I had to wade though
lots of bad sounds ;-)

I'd love to hook this up to csound to get some real control over what it sounds like. But so far I haven't used csound. does it have java bindings?

I'd also like to open-source this, after asking permission from the princeton perfessors I lifted the core n-body simulation code from (it was an exercise for an intro cs course, published without copyright notices).
Fri, February 9, 2007 - 10:48 AM
strangest coolesst synthesizer: reactable
you'll love this:

www.youtube.com/watch
Sat, February 10, 2007 - 2:16 AM
Neet! If you're using the default midi library, howabout some barking dogs, roaring lions, and lazers?
Tue, February 13, 2007 - 10:20 AM
well, I've heard a duck, and some whistles. I'm not sure where the dog and the lion are, though.
Wed, October 3, 2007 - 5:12 PM
In the course of your explorations, did you happen to come upon a new logical operator? That is to say, in addition to the familiar AND, NOT and OR, might one, by means of lateral thinking (and excessive quantities of pu-erh) devise an "ORerry" operand? If so, doubtless it would function in a semi-aleatoric fashion, though perhaps with certain predictably "orbital" tendencies.