Finding the Key and the Chords