Tonal Chord Generator

This program randomly generates a chord sequence that goes tonic-predominant-dominant-tonic. It can play in minor or major modes in any key, and it mixes modes randomly within the progression. There is a secondary dominant function implemented in the code for generating a major progression, but it is faulty and only works with some chords. This is something to fix down the line.

Here is the ChucK code for generating a major progression.
Here is the ChucK code for generating a minor progression.