Functional composition

Generating music with computers

An 8 a.m. music theory class with a mandatory attendance policy wasn't my idea of fun. Sometimes I'd joke that I could automate the whole thing. So I did.

musical notation
Fragment of a computer-generated jazz solo

The summer after my freshman year of college, I began translating the building blocks of Western harmony—notes, chords, and intervals—into Python code. I continued adding features throughout the school year, and by the time we got to Neo-Riemannian transformations, my computer was checking my homework in seconds!