Use Sonic Pi and Python to generate Chord progression

I’m impressed with Sonic Pi and want to make something fun with it. I have an idea to make chord progression generator.
For example: if I play one chord ©, the software will generate a chain of chords that harmonic to the first one.
Later implementation, if you playing with your guitar, the software will find the beat and play along with you.

  1. I’ll use python and sklearn to feed a list of chords.
  2. Sonic Pi is for the output.

These are just my initial ideas. I’m a newb and really want to learn from you. Please give me some feedback and ideas. The progress will be updating here.