Markov Chains for Computer Music Generation
Ilana Shapiro, Mark Huber · Journal of Humanistic Mathematics · 2021
Random generation of music goes back at least to the 1700s with the introduction of Musical Dice Games. More recently, Markov chain models have been used as a way of extracting information from a piece of music and generating new music. We explain this approach and give Python code for using it to first draw out a model of the music and then create new music with that model.