Tools for generating and analyzing music statistically