Music Ngram Viewer
peachnote.com
peachnote.com
text equivalent described here - http://www.decontextualize.com/teaching/dwwp/topics-n-grams-... (or http://www.theregister.co.uk/2008/10/02/sarah_palin_intervie...)
[searching around i found various interesting, related reports of work (http://peabody.sapp.org/class/dmp2/lab/markov1/; https://ccrma.stanford.edu/~jacobliu/254report/), but nothing using this corpus.]
By the way, all functionality in Peachnote is exposed vie an API, so it's easy to experiment with.
Generally, if anybody here is interested in music n-grams and in doing something cool with the largest symbolic music data set available, please get in touch!
(I develop Peachnote)
PS: a paper on Peachnote is available at http://www.viro.name/papers/ISMIR11.pdf
He eventually ended up with a more complex system, EMI, that generates pieces in the style of around 100 composers, some of which have passed the "musical Turing test" in that scholars of the composer in question thought it might've been a genuine work.
There's a lot of pretty interesting experimentation with just about every possible generative grammar by other researchers, though, from Markov models to HMMs, context-free grammars, L-systems, cellular automata, etc. This 2009 book has a pretty good overview of what people have done, though it's textbook-priced: http://www.amazon.com/gp/product/3211999159/ref=as_li_ss_tl?...
http://www.amazon.com/Art-Artificial-Evolution-Evolutionary-... (about graphics as well as music)