The invention discloses an audio music-
score comparison method with an error detection function. The audio music-
score comparison method comprises extracting starting
time information of every note in a
MIDI file, converting the
MIDI file to an audio WAV file, carrying out endpoint detection to performance
audio frequency P in order to determine starting time of every single-tone or chord, extracting eigenvalues of music
score audio frequency S and the performance
audio frequency P to obtain a 12-dimension
chrominance vector of every single-tone or chord, calculating
Euclidean distance matrices of the characteristic vectors of the performance audio frequency P and the music score audio frequency S, comparing the two matrices of the eigenvalues, utilizing a DTW
algorithm and finally realizing an aligning function of the performance audio frequency and the music score audio frequency, so that the comparison method can detect whether conditions of redundant playing, missing playing and wrong playing appear in the performance audio frequency. According to the audio music-score comparison method provided by the invention, on-site music performance can be listened to by a computer, positions of performance notes in music score are finally tracked and determined, aligning time is relatively accurate without affecting by beat change and the audio music-score comparison method with the error detection function can detect whether error notes appear in the performance audio frequency.