I have been working on ChucK the music programming language. I decided I did not just want to randomly generate notes so I wrote a python program to generate the notes and frequencies for different scales including Major, Minor, Pentatonic and Blues. I then wrote ChucK code to play the scales. I the wrote some code to play chords and then added a loop to generates some chords playing. I will post the code later after I clean it up. I am still learning so I am sure there would be better ways of doing things.
I found out I can embed audio into wordpress so here is an example.