Intelligent playing method and system for electronic keyboard musical instrument

文档序号:685140 发布日期:2021-04-30 浏览:4次 中文

阅读说明:本技术 一种电子键盘乐器智能变奏方法和系统 (Intelligent playing method and system for electronic keyboard musical instrument ) 是由 王晓伟 管伯良 于 2020-12-29 设计创作,主要内容包括:本发明提供了一种电子键盘乐器智能变奏方法和系统,该方法包括:制作电子乐谱,变奏声部留空白,上传服务端,在移动终端展示电子乐谱以及变奏选项,根据不同的伴奏型组合,生成对应的纠错比对数据,将变奏数据存储在服务端,在电子乐谱不变的情况,用户可随时切换变奏数据,同时,采用智能纠错算法,对变奏进行多维度纠错,比如音高和节奏。通过本发明提供的电子键盘乐器智能变奏方法,无需变化乐谱,即可动态调整伴奏型,并可实时纠错打分,纠错纬度更完整,能够准确纠错出各种具体类型错误。(The invention provides an intelligent variation method and system of an electronic keyboard musical instrument, wherein the method comprises the following steps: the method comprises the steps of making an electronic music score, making a change part blank, uploading to a server, displaying the electronic music score and change options on a mobile terminal, generating corresponding error correction comparison data according to different accompaniment type combinations, storing the change data in the server, enabling a user to switch the change data at any time under the condition that the electronic music score is not changed, and meanwhile, carrying out multi-dimensional error correction on the change, such as pitch and rhythm, by adopting an intelligent error correction algorithm. By the intelligent variation method of the electronic keyboard musical instrument, the accompaniment type can be dynamically adjusted without changing the music score, the real-time error correction and scoring can be realized, the error correction latitude is more complete, and various specific types of errors can be accurately corrected.)

1. An intelligent playing method of an electronic keyboard musical instrument is characterized in that: the method comprises the following steps:

s1: making an electronic music book, leaving a blank in a variation part, and uploading the blank to a server;

s2: making variation vocal part data which are generally harmony accompaniment patterns, wherein the music can be divided into A segments and B segments, and each segment provides different accompaniment patterns;

s3: opening an App, selecting a song to be played, and requesting music score data and playing data from a server;

s4: receiving music score data and variation data returned by the server, and displaying an electronic music score and variation options on the mobile terminal;

s5: the user selects an accompaniment type combination for variation for the blank part of the music score;

s6: the App generates corresponding error correction comparison data according to different accompaniment type combinations;

s7: the user clicks a start button to perform variation exercise according to the selected accompaniment type;

s8: the electronic keyboard instrument transmits the performance information of the user to the mobile terminal variation APP, the collected performance data are compared with the currently selected accompaniment type for error correction, the variation APP performs error correction and scoring on the rhythm and pitch, and finally the performance result is submitted to the server for storage.

2. The electronic keyboard musical instrument intelligent variation method according to claim 1, characterized in that: the process of generating the error correction comparison data in step S6 is as follows:

s6.1: firstly, acquiring a time sequence of each measure of the electronic music score;

s6.2: analyzing the pitch, duration and beat of the accompaniment pattern according to the accompaniment pattern selected by the user;

s6.3: and then, the accompaniment data analyzed by the S6.2 is filled in the time sequence data structure set in the S6.1, so that complete error correction comparison data is generated.

3. The electronic keyboard musical instrument intelligent variation method according to claim 2, characterized in that: the specific error correction scoring process in step S8 is as follows:

the program expresses the collected performance data as MIDI information in the performance process, and the method comprises the following steps: pitch, press time T1, release time T2), and the MIDI (pitch, press time T1, release time T2) of the demonstration performance are compared and corrected, the allowable error is Q, and the comparison process is as follows;

(1) if the pitches are not consistent, then the following judgment is made: wrong sound;

(2) if the time points T1-T1 > Q are pressed, the judgment is made that: shooting at night;

(3) if the time points T1-T1 > Q are pressed, then the judgment is made that: the spring is early;

(4) if the release time points T2-T2 > Q, then it is determined that: loosening at night;

(5) if the release time points T2-T2 > Q, it is determined that: loosening and early maturing;

(6) if the corresponding pitch is not collected, judging that: bullet leakage;

(7) and judging other conditions: correct;

after the performance is finished, counting the correct number and the error number, and calculating a score according to the following formula:

wherein c is the score, a is the correct number, and b is the total number.

4. The utility model provides an electronic keyboard musical instrument intelligence variation system, its characterized in that, including variation APP, server side, electronic keyboard musical instrument, mobile terminal, wherein is equipped with the variation APP in the mobile terminal, and mobile terminal links to each other with electronic keyboard musical instrument, the system still includes:

music book preparation module: the system is used for making an electronic music book, and the changing vocal part is blank and uploaded to a server;

a variation making module: the method is used for making variation vocal part data which are generally harmony accompaniment types, and the music can be divided into A pieces and B pieces, and each piece provides different accompaniment types;

a request module: the system comprises a server side and a plurality of Apps, wherein the Apps are used for selecting a song to be played and requesting music score data and playing data from the server side when being opened;

the receiving module is used for receiving the music score data and the variation data returned by the server side and displaying the electronic music score and the variation options on the mobile terminal;

a selection module: the accompaniment type combination is used for selecting variation for the blank part of the music score by a user;

an error correction comparison data generation module: the system is used for generating corresponding error correction comparison data according to different accompaniment type combinations;

the variation exercise module: the system is used for the user to click the start button to carry out variation exercise according to the selected accompaniment type;

an error correction scoring module: the variation APP is used for transmitting the performance information of the user to the mobile terminal through the electronic keyboard instrument, the collected performance data are compared with the currently selected accompaniment type for error correction, the variation APP performs error correction and scoring on the rhythm and the pitch, and finally the performance result is submitted to the server for storage.

5. The electronic keyboard musical instrument repetition system according to claim 4, wherein: the error correction comparison data generation module is used for generating corresponding error correction comparison data, and the generation process is as follows:

s6.1: firstly, acquiring a time sequence of each measure of the electronic music score;

s6.2: analyzing the pitch, duration and beat of the accompaniment pattern according to the accompaniment pattern selected by the user;

s6.3: and then, the accompaniment data analyzed by the S6.2 is filled in the time sequence data structure set in the S6.1, so that complete error correction comparison data is generated.

6. The electronic keyboard instrument ensemble reproducing system according to claim 5, wherein the error correction scoring process of said error correction scoring module is as follows:

the program expresses the collected performance data as MIDI information in the performance process, and the method comprises the following steps: pitch, press time T1, release time T2), and the MIDI (pitch, press time T1, release time T2) of the demonstration performance are compared and corrected, the allowable error is Q, and the comparison process is as follows;

(1) if the pitches are not consistent, then the following judgment is made: wrong sound;

(2) if the time points T1-T1 > Q are pressed, the judgment is made that: shooting at night;

(3) if the time points T1-T1 > Q are pressed, then the judgment is made that: the spring is early;

(4) if the release time points T2-T2 > Q, then it is determined that: loosening at night;

(5) if the release time points T2-T2 > Q, it is determined that: loosening and early maturing;

(6) if the corresponding pitch is not collected, judging that: bullet leakage;

(7) and judging other conditions: correct;

after the performance is finished, counting the correct number and the error number, and calculating a score according to the following formula:

wherein c is the score, a is the correct number, and b is the total number.

7. A computer-readable storage medium on which a computer program is stored, the computer program, when being executed by a processor, implementing the intelligent variation method of an electronic keyboard musical instrument according to any one of claims 1 to 3.

Technical Field

The invention belongs to the field of music education, and particularly relates to a method and a system for playing an electronic keyboard instrument.

Background

In the instrumental music education field, a plurality of error correction accompany-training software exist, an electronic music score can be selected, then comparison, error correction and scoring are carried out according to data played by a user and standard data, but each music score can only be fixed, one music score can be composed of a plurality of vocal parts, the music score of a certain vocal part cannot be dynamically changed, and therefore the effect of variation is achieved. The traditional electronic keyboard musical instrument authoring teaching relies on the dictation and paper teaching materials of teachers, the teachers appoint the variation types through the paper teaching materials, then students play, the whole process depends on the teachers seriously, and the efficiency is low.

The existing variation teaching method and system have the following defects:

1. through a variation method prompted by a paper teaching material, automatic switching of dynamic music scores cannot be achieved, error correction scoring cannot be performed, and objective and quantitative effect evaluation can be performed on variation.

2. The traditional music accompanying software can score the performance of a user, but a music score and related judgment data are fixed, the content of the vocal part of the music score cannot be dynamically changed, and therefore the playing effect cannot be achieved.

Disclosure of Invention

In view of the above, the present invention is directed to an intelligent variation method and system for an electronic keyboard musical instrument, so as to dynamically adjust accompaniment patterns without changing music scores, and to correct and score in real time, thereby achieving the purpose of varying different accompaniment patterns.

In order to solve the technical problems, the invention adopts the following technical scheme:

in a first aspect, the present invention provides an electronic keyboard musical instrument intelligent variation method, comprising:

s1: and (4) making an electronic music score, keeping a blank space in a variation part, and uploading the blank space to a server.

S2: variation vocal part data, generally a harmony accompaniment pattern, is produced, and a piece of music is divided into a piece and B pieces, each piece providing a different accompaniment pattern.

S3: and opening the App, selecting a song to be played, and requesting music score data and playing data from the server.

S4: and receiving music score data and variation data returned by the server, and displaying the electronic music score and variation options on the mobile terminal.

S5: the user selects an accompaniment pattern combination for variation for the blank part of the music score.

S6: and the App generates corresponding error correction comparison data according to different accompaniment type combinations.

Specifically, the corresponding error correction comparison data is generated as follows:

s6.1: firstly, acquiring a time sequence of each measure of the electronic music score;

s6.2: analyzing the pitch, duration and beat of the accompaniment pattern according to the accompaniment pattern selected by the user;

s6.3: and then, the accompaniment data analyzed by the S6.2 is filled in the time sequence data structure set in the S6.1, so that complete error correction comparison data is generated.

S7: the user clicks the 'start' button to perform the variation exercise according to the selected accompaniment pattern.

S8: the electronic keyboard instrument transmits the performance information of the user to the mobile terminal variation APP, the collected performance data are compared with the currently selected accompaniment type for error correction, the variation APP performs error correction and scoring on the rhythm and pitch, and finally the performance result is submitted to the server for storage.

The specific error correction scoring process is as follows:

the program expresses the collected performance data as MIDI information in the performance process, and the method comprises the following steps: pitch, press time T1, release time T2), and the MIDI (pitch, press time T1, release time T2) of the demonstration performance are compared and corrected, the allowable error is Q, and the comparison process is as follows;

(1) if the pitches are not consistent, then the following judgment is made: wrong sound;

(2) if the time points T1-T1 > Q are pressed, the judgment is made that: shooting at night;

(3) if the time points T1-T1 > Q are pressed, then the judgment is made that: the spring is early;

(4) if the release time points T2-T2 > Q, then it is determined that: loosening at night;

(5) if the release time points T2-T2 > Q, it is determined that: loosening and early maturing;

(6) if the corresponding pitch is not collected, judging that: bullet leakage;

(7) and judging other conditions: correct;

after the performance is finished, counting the correct number and the error number, and calculating a score according to the following formula:

wherein c is the score, a is the correct number, and b is the total number.

In a second aspect, the present invention further provides an intelligent variation system for an electronic keyboard musical instrument, where the system includes a variation APP, a server, the electronic keyboard musical instrument, and a mobile terminal, where the mobile terminal is equipped with the variation APP, and the mobile terminal is connected to the electronic keyboard musical instrument, and the system further includes:

music book preparation module: the method is used for making the electronic music score, making a blank on the variation part and uploading the blank to the server.

A variation making module: for producing variation vocal part data, generally harmony accompaniment patterns, a melody is divided into a piece and B pieces, each of which provides a different accompaniment pattern.

A request module: and the system is used for selecting the tracks to be played and requesting music score data and playing data from the server when the App is opened.

And the receiving module is used for receiving the music score data and the variation data returned by the server side and displaying the electronic music score and the variation options on the mobile terminal.

A selection module: the accompaniment type combination is used for the user to select variation for the blank part of the music score.

An error correction comparison data generation module: and the data processing module is used for generating corresponding error correction comparison data according to different accompaniment type combinations.

Specifically, the error correction comparison data generation module generates corresponding error correction comparison data, and the generation process is as follows:

s6.1: firstly, acquiring a time sequence of each measure of the electronic music score;

s6.2: analyzing the pitch, duration and beat of the accompaniment pattern according to the accompaniment pattern selected by the user;

s6.3: and then, the accompaniment data analyzed by the S6.2 is filled in the time sequence data structure set in the S6.1, so that complete error correction comparison data is generated.

The variation exercise module: and the user clicks a 'start' button to perform variation exercise according to the selected accompaniment type.

An error correction scoring module: the variation APP is used for transmitting the performance information of the user to the mobile terminal through the electronic keyboard instrument, the collected performance data are compared with the currently selected accompaniment type for error correction, the variation APP performs error correction and scoring on the rhythm and the pitch, and finally the performance result is submitted to the server for storage.

The specific error correction scoring process is as follows:

the program expresses the collected performance data as MIDI information in the performance process, and the method comprises the following steps: pitch, press time T1, release time T2), and the MIDI (pitch, press time T1, release time T2) of the demonstration performance are compared and corrected, the allowable error is Q, and the comparison process is as follows;

(1) if the pitches are not consistent, then the following judgment is made: wrong sound;

(2) if the time points T1-T1 > Q are pressed, the judgment is made that: shooting at night;

(3) if the time points T1-T1 > Q are pressed, then the judgment is made that: the spring is early;

(4) if the release time points T2-T2 > Q, then it is determined that: loosening at night;

(5) if the release time points T2-T2 > Q, it is determined that: loosening and early maturing;

(6) if the corresponding pitch is not collected, judging that: bullet leakage;

(7) and judging other conditions: correct;

after the performance is finished, counting the correct number and the error number, and calculating a score according to the following formula:

wherein c is the score, a is the correct number, and b is the total number.

In a third aspect, the present invention also provides a computer-readable storage medium having stored thereon a computer program which, when executed by a processor, implements the intelligent variation method of an electronic keyboard musical instrument as described above.

Compared with the prior art, the method and the system for intelligently playing the electronic keyboard musical instrument have the advantages that through the electronic music score, the playing vocal part is blanked and uploaded and stored in the server, the user selects the accompaniment type combination for playing for the blank vocal part of the music score, the user can switch playing data at any time under the condition that the electronic music score is not changed, in addition, the intelligent error correction algorithm is adopted to carry out multi-dimensional error correction on the playing, such as pitch and rhythm, the error correction latitude is more complete, various specific types of errors can be accurately corrected, the error correction comparison object is more scientific and reasonable, and the method and the system are closer to the actual field playing.

Drawings

The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate an embodiment of the invention and, together with the description, serve to explain the invention and not to limit the invention.

In the drawings:

fig. 1 is a flowchart of an intelligent variation method of an electronic keyboard musical instrument according to an embodiment of the present invention;

FIG. 2 is an example of a musical score provided by an embodiment of the present invention;

fig. 3 is a block diagram showing an intelligent variation system of the electronic keyboard musical instrument according to the embodiment of the present invention.

Detailed Description

Exemplary embodiments of the present invention will be described in more detail below with reference to the accompanying drawings. While exemplary embodiments of the invention are shown in the drawings, it should be understood that the invention can be embodied in various forms and should not be limited to the embodiments set forth herein. Rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the scope of the invention to those skilled in the art.

It should be noted that the embodiments and features of the embodiments may be combined with each other without conflict.

Furthermore, the terms "first", "second", etc. are used for descriptive purposes only and are not to be construed as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defined as "first," "second," etc. may explicitly or implicitly include one or more of that feature. In the description of the present invention, "a plurality" means two or more unless otherwise specified.

The present invention will be described in detail below with reference to the embodiments with reference to the attached drawings.

As shown in fig. 1, in a first aspect, the present invention provides an electronic keyboard musical instrument intelligent variation method, comprising:

s1: and (4) making an electronic music score, making the music score through file software, leaving a blank space in a vocal part, exporting music score data in a MusicXML format from the music score, and uploading the music score data to a server.

S2: the variation vocal part data is generally a harmony accompaniment pattern, the music is divided into a segment and a B segment, each segment provides a different accompaniment pattern, in this embodiment, each segment provides 4 different accompaniment patterns, specifically, as shown in fig. 2, the music score includes two vocal parts (i.e., two lines of spectra), wherein the second vocal part is blank and has no musical notes, the whole music score is divided into A, B two segments, the user can select different accompaniment patterns for the a and B ends in the dialog box, the prompt accompaniment patterns of the a and B ends are changed correspondingly after selection, and accompaniment pattern comparison data corresponding to the vocal parts are generated, during variation, error correction comparison is performed according to the corresponding accompaniment pattern data, the actual variation combination is 4 × 4 — 16 variation combinations, but the electronic music score still uses 1 part.

S3: and opening the App, selecting a song to be played, and requesting music score data and playing data from the server.

S4: and receiving music score data and variation data returned by the server, and displaying the electronic music score and variation options on the mobile terminal.

S5: the user selects the accompaniment type combination for variation for the blank part of the music score.

S6: and the App generates corresponding error correction comparison data according to different accompaniment type combinations.

Specifically, the corresponding error correction comparison data is generated as follows:

s6.1: firstly, acquiring a time sequence of each measure of the electronic music score;

s6.2: analyzing the pitch, duration and beat of the accompaniment pattern according to the accompaniment pattern selected by the user;

s6.3: and then, the accompaniment data analyzed by the S6.2 is filled in the time sequence data structure set in the S6.1, so that complete error correction comparison data is generated.

S7: and the user clicks the start button to perform variation exercise according to the selected accompaniment type.

S8: the electronic keyboard instrument transmits the performance information of the user to the mobile terminal variation APP, the collected performance data are compared with the currently selected accompaniment type for error correction, the variation APP performs error correction and scoring on the rhythm and pitch, and finally the performance result is submitted to the server for storage.

The specific error correction scoring process is as follows:

the program expresses the collected performance data as MIDI information in the performance process, and the method comprises the following steps: pitch, press time T1, release time T2), and the MIDI (pitch, press time T1, release time T2) of the demonstration performance are compared and corrected, the allowable error is Q, and the comparison process is as follows;

(1) if the pitches are not consistent, then the following judgment is made: wrong sound;

(2) if the time points T1-T1 > Q are pressed, the judgment is made that: shooting at night;

(3) if the time points T1-T1 > Q are pressed, then the judgment is made that: the spring is early;

(4) if the release time points T2-T2 > Q, then it is determined that: loosening at night;

(5) if the release time points T2-T2 > Q, it is determined that: loosening and early maturing;

(6) if the corresponding pitch is not collected, judging that: bullet leakage;

(7) and judging other conditions: correct;

after the performance is finished, counting the correct number and the error number, and calculating a score according to the following formula:

wherein c is the score, a is the correct number, and b is the total number.

Fig. 2 shows an intelligent variation system of electronic keyboard musical instrument, the system includes variation APP, server, electronic keyboard musical instrument, mobile terminal, wherein variation APP is equipped in the mobile terminal, the mobile terminal is connected with the electronic keyboard musical instrument, the system further includes:

music book preparation module: the music score is used for making an electronic music score, the music score is made through file software, the vocal part is played with a blank, music score data in a MusicXML format is led out of the music score, and the music score data is uploaded to a server side.

A variation making module: the method is used for making variation vocal part data, generally a harmony accompaniment pattern, a piece of music can be divided into a segment and a B segment, each segment provides different accompaniment patterns, in the embodiment, each segment provides 4 different accompaniment patterns, specifically, as shown in fig. 2, a music score comprises two vocal parts (i.e. two lines of spectrums), wherein the second vocal part is blank and has no notes, the whole music score is divided into A, B two segments, a user can select different accompaniment patterns for the a and B ends in a dialog box, the prompt accompaniment patterns of the a and B ends are correspondingly changed after selection, accompaniment pattern comparison data corresponding to the vocal parts are generated, during variation accompaniment, error correction comparison is performed according to the corresponding accompaniment pattern data, the actual variation combination is 4 × 4 ═ 16 variation combinations, but the electronic music score still uses 1 part.

A request module: and the system is used for selecting the tracks to be played and requesting music score data and playing data from the server when the App is opened.

And the receiving module is used for receiving the music score data and the variation data returned by the server side and displaying the electronic music score and the variation options on the mobile terminal.

A selection module: the accompaniment type combination is used for the user to select variation for the blank part of the music score.

An error correction comparison data generation module: and the data processing module is used for generating corresponding error correction comparison data according to different accompaniment type combinations.

Specifically, the error correction comparison data generation module generates corresponding error correction comparison data, and the generation process is as follows:

s6.1: firstly, acquiring a time sequence of each measure of the electronic music score;

s6.2: analyzing the pitch, duration and beat of the accompaniment pattern according to the accompaniment pattern selected by the user;

s6.3: and then, the accompaniment data analyzed by the S6.2 is filled in the time sequence data structure set in the S6.1, so that complete error correction comparison data is generated.

The variation exercise module: and the user clicks a 'start' button to perform variation exercise according to the selected accompaniment type.

An error correction scoring module: the variation APP is used for transmitting the performance information of the user to the mobile terminal through the electronic keyboard instrument, the collected performance data are compared with the currently selected accompaniment type for error correction, the variation APP performs error correction and scoring on the rhythm and the pitch, and finally the performance result is submitted to the server for storage.

The specific error correction scoring process is as follows:

the program expresses the collected performance data as MIDI information in the performance process, and the method comprises the following steps: pitch, press time T1, release time T2), and the MIDI (pitch, press time T1, release time T2) of the demonstration performance are compared and corrected, the allowable error is Q, and the comparison process is as follows;

(1) if the pitches are not consistent, then the following judgment is made: wrong sound;

(2) if the time points T1-T1 > Q are pressed, the judgment is made that: shooting at night;

(3) if the time points T1-T1 > Q are pressed, then the judgment is made that: the spring is early;

(4) if the release time points T2-T2 > Q, then it is determined that: loosening at night;

(5) if the release time points T2-T2 > Q, it is determined that: loosening and early maturing;

(6) if the corresponding pitch is not collected, judging that: bullet leakage;

(7) and judging other conditions: correct;

after the performance is finished, counting the correct number and the error number, and calculating a score according to the following formula:

wherein c is the score, a is the correct number, and b is the total number.

In a third aspect, the present invention also provides a computer-readable storage medium having stored thereon a computer program which, when executed by a processor, implements the intelligent variation method of an electronic keyboard musical instrument as described above.

The invention relates to an intelligent variation method and system of an electronic keyboard musical instrument, which are characterized in that an electronic music score is manufactured, variation vocal parts are blanked and uploaded and stored in a server, a user selects an accompaniment type combination for variation for the blank vocal parts of the music score, the user can switch variation data at any time under the condition that the electronic music score is not changed, in addition, the intelligent error correction algorithm is adopted to carry out multi-dimensional error correction on the variation, such as pitch and rhythm, the error correction latitude is more complete, various specific types of errors can be accurately corrected, and the error correction comparison object is more scientific and reasonable and is closer to the actual field playing.

The embodiments of the present invention have been described in connection with the accompanying drawings, but the present invention is not limited to the above embodiments, and the above embodiments are only illustrative and not restrictive, and any modifications, equivalent substitutions, improvements, etc. within the spirit and principle of the present invention should be included in the protection scope of the present invention.

11页详细技术资料下载
上一篇:一种医用注射器针头装配设备
下一篇:一种带有蓝牙模块的电子琴控制系统及方法

网友询问留言

已有0条留言

还没有人留言评论。精彩留言会获得点赞!

精彩留言,会给你点赞!