Programming Chord Structure