Automatic Transcription of Polyphonic Music Using Harmonic Relations