I have been using this pure data thing around 2012 to generate music out of random samples.
pdGenericSet.zip
I have also made music live with it, I liked the fact that I could "pre-listen" to something the patch would generate before routing it to the live speakers (just like a DJ does with tracks).
Feel free to give it a try but its complex and probably outdated.

