Predominant melody extraction and score transcription for Flamenco singing