The application discloses a real-time playing error
correction method based on
MIDI data, comprising the following steps: collecting
MIDI data when a user plays and analyzing and delivering the
MIDI data to a to-be-judged
queue; comparing a
tick time when the user currently presses a key with a music
score standard MIDI of a current beat time, determining whether there is an effective note within a preset
time error range, if there is, matching a key value corresponding to the
tick time when the user presses the key with a key value of the music
score standard MIDI, if the matching succeeds, respectively analyzing whether key values corresponding to a previous
tick time and a next tick time are matched with key values corresponding to a beat time of the music
score standard MIDI, if both are matched, confirming that the currently pressed key is correct, otherwise, judging that the currently pressed key is incorrect; after the user finishes playing, saving and summarizing results of each key, dividing a to-be-enhanced practice area, taking out data according to the beat time, merging and sending to a
data display layer for display. The application effectively improves the error correction effect and improves the learning efficiency of a
piano child.