I've been doing something very similar for a while using the Boodler soundscape generator. See http://github.com/Floppy/boodlage/tree/master for my code so far. It's aimed at using feeds to control parameters of the soundscapes. cheers, James