First cut at code for FSM and Chord to Note Conversion