Our “Very Official (Take-Home) Midterm® Project” for the algorithmic composition class was to write a program that automatically generates videogame music. I hope you enjoy it!

How does it work?

  1. Define harmonic functions for each section
  2. Form bass line based on the harmonic functions
  3. Form melodic skeleton on downbeats based on the bass line
  4. Flesh out the melodic skeleton with approach notes
  5. Generate optional counterpoint by considering intended harmony and current notes in the melody and bass line

Listen to some sample outputs:

Download the source code:

Categories: MusicProgramming

Leave a Reply

Your email address will not be published. Required fields are marked *