determine chords for a melody note