Markov chain generator for music