Automatic chord transcription