Python program to procedurally generate music.