Generating structured music for bagana using quality metrics based on Markov models