This is a very quick glimpse into something I've been exploring recently for music composition. It's called Supercollider and they describe it as:
SuperCollider is an audio server, programming language, and IDE for sound synthesis and algorithmic composition.
In this quick demo I have hooked it up to Logic to play a couple of synths programmatically. Will work out some kind of series to delve into it properly soon.