SuperCollider has a series of classes called Patterns for sequencing and algorithmic composition. The output can be sent to the embedded server for live synthesis or to a midi output (or directly to Ableton with a virtual midi cable) http://doc.sccode.org/Tutorials/A-Practical-Guide/PG_Cookboo...