Procedural music composition with Python
Code is poetry, of course, but it is also music. The music21 Python package for computer musicology not only allows investigating musical scores with data science, but also to write your own scores with mathematical operations. Georges Dimitrov, composer and professor at Concordia University (Montreal, Canada), created the arvo package, which includes well-known minimalistic mathematical operations on notes to create no less rich musical scores. In this notebook, I explain how to compose the piece just below with arvo and music21 with minimalistic procedural composition techniques. You will need to have intermediate understanding of the Python programming language and basic understanding of western music theory.