Generating music using Markov chains