A kind of performance evaluator for Intelligent electric piano
Technical field
The present invention relates to Intelligent electric piano system field, be specially a kind of performance evaluator for Intelligent electric piano.
Background technology
intelligent electric piano is a kind of novel interactive electronic musical instrument, and it is played for user by MIDI keyboard simulation fingerboard, processes after the input signal of MIDI keyboard by built-in master controller, exports corresponding piano music.In prior art, in Intelligent electric piano master controller, generally by programming, there are the modules such as Qu Ku, bank, MIDI sequencer, melody document parser, music score of Chinese operas display, metronome, MIDI compositor, by the cooperation simulation piano performance of modules, but the module of still player not being performed music and being assessed at present.
Summary of the invention
The object of this invention is to provide a kind of performance evaluator for Intelligent electric piano, the problem existing to solve prior art.
In order to achieve the above object, the technical solution adopted in the present invention is:
A kind of performance evaluator for Intelligent electric piano, by program construction in the master controller of Intelligent electric piano, it is characterized in that: when user plays by MIDI keyboard, the midi event that described performance evaluator receives melody document parser output in Intelligent electric piano master controller is as with reference to event, and the midi event that receives MIDI sequencer output in Intelligent electric piano master controller is as incoming event, and respectively with reference to event, incoming event exports music score of Chinese operas display in Intelligent electric piano master controller to and shows, by incoming event and reference event are compared, thereby the performance to user is assessed, detailed process is as follows:
The MIDI of user from Intelligent electric piano master controller chooses the melody file that will play in bent storehouse, described melody document parser is resolved the melody file of choosing, divide track record tone symbol event and control event, as export performance evaluator to reference to event, performance evaluator is reduced into staff by the reference time of melody document parser output and shows in music score of Chinese operas display, the corresponding a line staff of each track, simultaneously, when user strikes up by MIDI keyboard, in Intelligent electric piano master controller, MIDI sequencer receives after the midi signal of MIDI keyboard output, processing obtains the musical composition information of user's performance as incoming event, incoming event exports on the one hand MIDI compositor and source of sound in Intelligent electric piano master controller to and synthesizes pronunciation, incoming event exports on the other hand to be played in evaluator, compare with the reference time in performance evaluator, by the note pitch parameter of corresponding comparison incoming event and reference event one by one, note start time parameter, value parameter during note, obtain evaluation result, in the time of in the error range that between value parameter, corresponding difference is all being set when the note pitch parameter of incoming event and reference time, note start time parameter, note, be judged as correct input, when the note pitch parameter of incoming event and reference time, note start time parameter, note between value parameter in corresponding difference outside a certain the error range of setting, or in the error range of setting, do not receive the incoming event with certain reference event same tone, be judged as wrong input, and in music score of Chinese operas display, carry out display reminding, between comparison obtains incoming event and reference event, there is no identical pitch, judgement belongs to erroneous input, not by carrying out display reminding in music score of Chinese operas display, but counts evaluation result.
Described a kind of performance evaluator for Intelligent electric piano, is characterized in that: play evaluator according to accuracy, different classes of wrong and mistake by statistics index comprehensively give a mark, and part index number can be listed separately to independent marking.
Described a kind of performance evaluator for Intelligent electric piano, is characterized in that: for the note event of the identical pitch of right-hand man's lap in the multitone rail music score of Chinese operas, only start time note is early passed judgment on, its result affects other overlapping notes with it.
The music that the present invention can play user be assessed, and assessment result shows by music score of Chinese operas display, and can give a mark to user's performance, has improved the performance of Intelligent electric piano, makes Intelligent electric piano possess the function of music teaching.
Accompanying drawing explanation
Fig. 1 is Intelligent electric piano theory diagram.
Embodiment
As shown in Figure 1.A kind of performance evaluator for Intelligent electric piano, by program construction in the master controller of Intelligent electric piano, when user plays by MIDI keyboard, play midi event that evaluator receives melody document parser output in Intelligent electric piano master controller as with reference to event, and the midi event that receives MIDI sequencer output in Intelligent electric piano master controller is as incoming event, and respectively with reference to event, incoming event exports music score of Chinese operas display in Intelligent electric piano master controller to and shows, by incoming event and reference event are compared, thereby the performance to user is assessed, detailed process is as follows:
The MIDI of user from Intelligent electric piano master controller chooses the melody file that will play in bent storehouse, melody document parser is resolved the melody file of choosing, divide track record tone symbol event and control event, as export performance evaluator to reference to event, performance evaluator is reduced into staff by the reference time of melody document parser output and shows in music score of Chinese operas display, the corresponding a line staff of each track, simultaneously, when user strikes up by MIDI keyboard, in Intelligent electric piano master controller, MIDI sequencer receives after the midi signal of MIDI keyboard output, processing obtains the musical composition information of user's performance as incoming event, incoming event exports on the one hand MIDI compositor and source of sound in Intelligent electric piano master controller to and synthesizes pronunciation, incoming event exports on the other hand to be played in evaluator, compare with the reference time in performance evaluator, by the note pitch parameter of corresponding comparison incoming event and reference event one by one, note start time parameter, value parameter during note, obtain evaluation result, in the time of in the error range that between value parameter, corresponding difference is all being set when the note pitch parameter of incoming event and reference time, note start time parameter, note, be judged as correct input, when the note pitch parameter of incoming event and reference time, note start time parameter, note between value parameter in corresponding difference outside a certain the error range of setting, or in the error range of setting, do not receive the incoming event with the identical dullness of certain reference event, be judged as wrong input, and in music score of Chinese operas display, carry out display reminding, between comparison obtains incoming event and reference event, there is no identical pitch, judgement belongs to erroneous input, not by carrying out display reminding in music score of Chinese operas display, but counts evaluation result.
Play evaluator according to accuracy, different classes of wrong and mistake by statistics index comprehensively give a mark, and part index number can be listed separately to independent marking.
For the note event of the identical pitch of right-hand man's lap in the multitone rail music score of Chinese operas, only start time note early to be passed judgment on, its result affects other overlapping notes with it.