Method and system for turning music score by double rows of key feet

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

阅读说明:本技术 一种双排键脚踢翻谱方法和系统 (Method and system for turning music score by double rows of key feet ) 是由 王晓伟 管伯良 于 2020-12-29 设计创作,主要内容包括:本发明提供了一种双排键脚踢翻谱方法和系统,该方法包括:在双排键的脚踏板上设置2个触控开关;当脚尖踢左边触控开关时,会触发一条MIDI指令,可以将该指令设定为翻谱指令;将该MIDI指令由双排键转发给App;App识别到该指令后,进行乐谱翻页。通过本发明提供的翻谱方法,可以通过采用脚进行翻谱控制,不会和手的演奏冲突,方便高效,且演奏形式自由,可随时反复、暂停,具有和纸质乐谱演奏一样的优势。(The invention provides a method and a system for turning over a music score by double rows of key feet, wherein the method comprises the following steps: 2 touch switches are arranged on the pedal of the double-row key; when the left touch switch is kicked by the tiptoe, a MIDI instruction is triggered, and the instruction can be set as a music score turning instruction; forwarding the MIDI instruction to App by double rows of keys; and after identifying the instruction, the App turns pages of the music score. The music score turning method provided by the invention can be used for controlling the turning of the music score by adopting the feet, does not conflict with the playing of hands, is convenient and efficient, has free playing form, can be repeated and paused at any time, and has the same advantages as the playing of the paper music score.)

1. A method for turning music score by double rows of key feet is characterized in that: the method comprises the following steps:

step 1: 2 touch switches are arranged on the pedal of the double-row key, wherein a left switch is a music score turning instruction switch;

step 2: making an electronic music book, and uploading the electronic music book to a cloud terminal;

and step 3: opening an App on the iPad, and pulling an electronic music book to be opened from the cloud;

and 4, step 4: clicking an App playing starting button, entering a playing state, and sending an MIDI starting instruction to the double rows of keys;

and 5: the device is used for kicking a double-row key pedal left touch key when a music score needs to be turned during playing, and the double-row key sends a MIDI instruction defined by the touch key to an App in the iPad through a data line;

step 6: and the App analyzes the MIDI instruction after receiving the MIDI instruction, and performs score turning if the MIDI instruction is a score turning MIDI instruction after the analysis.

2. The double row key foot music score kicking method of claim 1, wherein: in step 4, the MIDI command format is F043730103F 7, where F0 represents a system setting command, F7 represents a command end flag, and 43730103 represents command contents representing a touch key to be set.

3. The double row key foot music score kicking and turning method as claimed in claim 2, characterized in that: in step 4, the App calls an MIDISend packaging interface, firstly, the instruction is encrypted, the encryption adopts an AES algorithm, a secret key is added with a random seed to ensure the encryption security, the random seed uses 32-bit characters, numbers and special characters, a Unix timestamp is introduced, an effective time range is set, double rows of keys are used as receivers, firstly, the Unix timestamp is judged, whether the secret key is in the effective time or not is judged, and if the secret key exceeds the effective time, the secret key is directly discarded; if the effective time is reached, the MIDI starting instruction is analyzed according to the secret key rule and the decryption rule agreed by the two parties, after the analysis is successful, the pedal touch switch with the double rows of keys is set to enter a playing mode, an ACK (acknowledgement character) confirmation instruction is returned to the App, and after the App on the iPad receives the ACK confirmation instruction, the App prompts a user to start playing according to the music score.

4. The dual row key-press kick-over menu method as claimed in claim 3, wherein in step 5, the left touch key of the pedal triggers the circuit switch to generate a level signal, and the trigger signal is translated to generate a MIDI command for scrolling over the menu, the command format is: F043730102F 7, generating a key, encrypting the key by using an AES algorithm, and after the encryption is completed, sending the MIDI instruction TO the USB TO HOST port of the double-row key sent by the instruction by using a USB serial port protocol according TO the baud rate of 31.25 KBaud.

5. The method for turning the music score by using double row of keys as claimed in claim 4, wherein in step 6, if the analyzed music score is a music score turning MIDI instruction, the music score turning logic is started to be executed, and firstly, the position to which the music score is turned is calculated, and the specific steps are as follows:

step 6.1, firstly, acquiring the height H of a screen;

step 6.2, acquiring coordinates (x, y) of the upper left corner of the current song picture;

step 6.3, calculating a new y coordinate value of the picture: y + H, obtaining a new upper left corner coordinate (x, y + H);

step 6.4, setting a new coordinate of the upper left corner of the picture to realize the picture scrolling effect;

and 6.5, if one screen of pictures spanning multiple music scores appears, splicing the multiple pictures into a long picture, and placing the long picture in a view, so that the corresponding coordinates can be obtained by calculation in the step 6.3 each time.

6. The utility model provides a double key foot is played and is turned over music score system which characterized in that, the system includes double key, and sets up two touch switches on the running-board of this double key, and the left side switch is the instruction switch of turning over the music score, the system still includes:

the manufacturing module is used for manufacturing an electronic music book and uploading the electronic music book to a cloud terminal;

the acquisition module is used for opening an App on the iPad and pulling an electronic music book to be opened from the cloud;

the playing module is used for entering a playing state according to the command of clicking the App playing start button and sending a MIDI starting command to the double-row keys;

the instruction sending module is used for kicking a left touch key of a pedal of a double-row key by a foot in the playing process when a music score needs to be turned, and the double-row key sends a MIDI instruction defined by the touch key to an App in the iPad through a data line;

and the instruction execution module is used for the App to analyze the MIDI instruction after receiving the MIDI instruction, and then to scroll the music score if the MIDI instruction is a music score scrolling instruction after the analysis.

7. The dual row key foot pedal music score system of claim 6, wherein: the MIDI command format is F043730103F 7, where F0 represents a system setting command, F7 represents a command end flag, and 43730103 represents command contents representing a touch key to be set.

8. The dual row key foot pedal music score system of claim 7, wherein: the playing module is also used for calling an MIDISend packaging interface to encrypt the instruction, the encryption adopts an AES algorithm, a secret key is added with a random seed to ensure the encryption security, the random seed uses 32-bit characters, numbers and special characters, a Unix time stamp is introduced, an effective time range is set, double rows of keys are used as a receiver, after the receiver receives the random seed, the Unix time stamp is firstly judged, whether the secret key is in the effective time is judged, and if the secret key exceeds the effective time, the secret key is directly discarded; if the effective time is reached, the MIDI starting instruction is analyzed according to the secret key rule and the decryption rule agreed by the two parties, after the analysis is successful, the pedal touch switch with the double rows of keys is set to enter a playing mode, an ACK (acknowledgement character) confirmation instruction is returned to the App, and after the App on the iPad receives the ACK confirmation instruction, the App prompts a user to start playing according to the music score.

9. The dual row key pedal music score system of claim 8 wherein the pedal left touch key triggers the circuit switch to generate a level signal and translates the trigger signal to generate a music score MIDI command in the format of: F043730102F 7, generating a key, encrypting the key by using an AES algorithm, and after the encryption is completed, sending the MIDI instruction TO the USB TO HOST port of the double-row key sent by the instruction by using a USB serial port protocol according TO the baud rate of 31.25 KBaud.

Technical Field

The invention belongs to the field of music education, and particularly relates to a method and a system for turning music by using double rows of key feet.

Background

With the development of internet technology, more and more internet technologies are applied to the field of music education. For example, music scores are electronized, paper music scores are gradually replaced, the electronized music scores are stored in a general cloud, and the electronized music scores are pulled from the cloud in use, so that various music Apps are conveniently used. After a plurality of music apps adopt electronic music scores, the music scores can be automatically drawn according to the time sequence of the electronic music scores without manual participation, and the music score pictures can be turned and read according to the picture format and manually switched.

The existing music score turning table on the market has the following defects:

1. the paper music score is adopted, manual music score turning is needed when the music score is turned, and the hands still need to play, so that the paper music score and the music score can be mutually collided and influenced.

2. When the existing music teaching App presents a staff, a music score is automatically played according to the time playing sequence of the music, although manual music turning is not needed, the music score cannot be paused and reciprocated at any time in the mode, and the music score cannot be freely played by finding a strict time sequence.

3. Some apps adopt a picture music score or a PDF music score format, and the music score needs to be manually read on electronic equipment in a manual mode when being played, which is not greatly different from the traditional paper music score.

Disclosure of Invention

In view of the above, the present invention aims to provide a method and a system for turning a music score by using double-row keys to solve the problems that a paper music score needs manual participation and automatic music score walking is not free.

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

in a first aspect, the invention provides a method for turning a music score by using double rows of key feet, which comprises the following steps:

2 touch switches are arranged on the pedal of the double-row key, wherein a left switch is a music score turning instruction switch;

making an electronic music book, and uploading the electronic music book to a cloud terminal; opening an App on the iPad, pulling an electronic music score to be opened from the cloud, clicking an App playing starting button, entering a playing state, and sending an MIDI starting instruction to the double-row keys;

the two hands start playing according to the music score, in the playing process, when the music score needs to be turned over, the feet are used for kicking the left touch key of the pedal with the double rows of keys, and the double rows of keys send MIDI instructions defined by the touch key to an App in the iPad through a data line;

and the App analyzes the MIDI instruction after receiving the MIDI instruction, and performs score turning if the MIDI instruction is a score turning MIDI instruction after the analysis.

In a second aspect, the invention further provides a double-row key foot-operated music score turning system, which comprises double-row keys, wherein two touch switches are arranged on the pedals of the double-row keys, and the left switch is a music score turning instruction switch.

Wherein the system further comprises:

the manufacturing module is used for manufacturing an electronic music book and uploading the electronic music book to a cloud terminal;

the acquisition module is used for opening an App on the iPad and pulling an electronic music book to be opened from the cloud;

the playing module is used for entering a playing state according to the command of clicking the App playing start button and sending a MIDI starting command to the double-row keys;

the instruction sending module is used for kicking a left touch key of a pedal of a double-row key by a foot in the playing process when a music score needs to be turned, and the double-row key sends a MIDI instruction defined by the touch key to an App in the iPad through a data line;

and the instruction execution module is used for the App to analyze the MIDI instruction after receiving the MIDI instruction, and then to scroll the music score if the MIDI instruction is a music score scrolling instruction after the analysis.

In a third aspect, the present invention also provides a computer-readable storage medium on which a computer program is stored, which, when executed by a processor, implements the steps of the double-row key kick spectrum-flipping method as described above.

Compared with the prior art, the method and the system for turning the music score by the double-row key feet have the advantages that the two touch switches are arranged on the double-row key feet pedal, the left switch is the music score turning instruction switch, the left touch key of the double-row key feet pedal is defined as the MIDI instruction for turning the music score, the music score is turned after the MIDI instruction for turning the music score is received, the music score is turned by feet, the method and the system cannot conflict with the performance of hands, convenience and high efficiency are realized, the playing form is free, the repeated playing and pause can be realized at any time, and the advantages of playing the music score like paper are realized.

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 flow chart of a method for turning a music score by using a double row of key feet according to an embodiment of the present invention;

fig. 2 is a block diagram of a dual-row key foot pedal music score system according to an embodiment of the present invention.

Detailed Description

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

In the description of the present invention, it is to be understood that the terms "center", "longitudinal", "lateral", "up", "down", "front", "back", "left", "right", "vertical", "horizontal", "top", "bottom", "inner", "outer", and the like, indicate orientations or positional relationships based on those shown in the drawings, and are used only for convenience in describing the present invention and for simplicity in description, and do not indicate or imply that the referenced devices or elements must have a particular orientation, be constructed and operated in a particular orientation, and thus, are not to be construed as limiting the present invention. 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, a method for turning a music score by using double rows of key feet comprises the following steps:

step 1: 2 touch switches are arranged on the pedal of the double-row key, wherein a left switch is a music score turning instruction switch;

step 2: making an electronic music book, and uploading the electronic music book to a cloud terminal;

and step 3: opening an App on the iPad, and pulling an electronic music book to be opened from the cloud;

and 4, step 4: clicking App start playing button, entering playing state, and sending MIDI start instruction to the double rows of keys.

Specifically, the instruction format is: F043730103F 7, wherein F0 represents a system setting command, F7 represents a command end flag, and 43730103 represents a command content and a touch key to be set.

Specifically, the App calls and calls an MIDISend packaging interface, firstly, an instruction is encrypted, the encryption adopts an AES algorithm, a secret key is added with a random seed to ensure the encryption security, the random seed uses 32-bit characters, numbers and special characters, a Unix timestamp is introduced, an effective time range is set, for example, 1 minute, double rows of keys are used as a receiving party, after the receiving party receives the random seed, the Unix timestamp is firstly judged, whether the secret key is in the effective time is judged, and if the secret key exceeds the effective time, the secret key is directly discarded; if the effective time is reached, the MIDI starting instruction is analyzed according to the secret key rule and the decryption rule agreed by the two parties, after the analysis is successful, the pedal touch switch with the double rows of keys is set to enter a playing mode, an ACK (acknowledgement character) confirmation instruction is returned to the App, and after the App on the iPad receives the ACK confirmation instruction, the App prompts a user to start playing according to the music score.

And 5: the method is used for kicking the left touch key of the pedal of the double-row key during playing and when a music score needs to be turned, and the double-row key sends the MIDI instruction defined by the touch key to the App in the iPad through the data line.

Specifically, the left touch key of the pedal triggers the circuit switch to generate a level signal, and the trigger signal is translated to generate a MIDI instruction for turning the music score, wherein the instruction format is as follows: F043730102F 7, generating a key, encrypting the key by using an AES algorithm, and after the encryption is completed, sending the MIDI instruction TO the USB TO HOST port of the double-row key sent by the instruction by using a USB serial port protocol according TO the baud rate of 31.25 KBaud.

Step 6: and the App analyzes the MIDI instruction after receiving the MIDI instruction, and performs score turning if the MIDI instruction is a score turning MIDI instruction after the analysis.

Specifically, if the instruction is a music score turning MIDI instruction after the analysis, the music score turning logic is started to be executed, and firstly, which position the music score is to be turned to is calculated, and the specific steps are as follows:

step 6.1 first obtain the screen height H

Step 6.2 then obtain the coordinates (x, y) of the upper left corner of the current song picture

Step 6.3, calculating a new y coordinate value of the picture: y + H, to obtain a new upper left corner coordinate (x, y + H)

Step 6.4, setting new coordinates of the upper left corner of the picture to realize the picture scrolling effect

Step 6.5 if a screen of pictures spanning multiple music scores appears, the multiple pictures can be spliced into a long picture to be placed in a view, and corresponding coordinates can be obtained by calculation in the step 6.3 each time

Fig. 2 shows a double-row key foot-operated music score turning system, which comprises double-row keys, wherein two touch switches are arranged on pedals of the double-row keys, and a left switch is a music score turning instruction switch.

Wherein the system further comprises:

the manufacturing module is used for manufacturing an electronic music book and uploading the electronic music book to a cloud terminal;

the acquisition module is used for opening an App on the iPad and pulling an electronic music book to be opened from the cloud;

the playing module is used for entering a playing state according to the command of clicking the App playing start button and sending a MIDI starting command to the double-row keys;

specifically, the instruction format is: F043730103F 7, wherein F0 represents a system setting instruction, F7 represents an instruction ending mark, 43730103 represents instruction content and represents a touch key to be set, App calls and calls an MIDISend packaging interface, firstly, the instruction is encrypted, an AES algorithm is adopted for encryption, a random seed is added to a secret key to ensure encryption security, the random seed uses 32-bit characters, numbers and special characters, a Unix time stamp is introduced, an effective time range is set, for example, 1 minute, double keys are used as a receiving party, after the receiving party, the Unix time stamp is firstly judged, whether the secret key is within the effective time is judged, and if the secret key exceeds the effective time, the secret key is directly discarded; if the effective time is reached, the MIDI starting instruction is analyzed according to the secret key rule and the decryption rule agreed by the two parties, after the analysis is successful, the pedal touch switch with the double rows of keys is set to enter a playing mode, an ACK (acknowledgement character) confirmation instruction is returned to the App, and after the App on the iPad receives the ACK confirmation instruction, the App prompts a user to start playing according to the music score.

The instruction sending module is used for kicking a left touch key of a pedal of a double-row key by a foot in the playing process when a music score needs to be turned, and the double-row key sends a MIDI instruction defined by the touch key to an App in the iPad through a data line;

specifically, the left touch key of the pedal triggers the circuit switch to generate a level signal, and the trigger signal is translated to generate a MIDI instruction for turning the music score, wherein the instruction format is as follows: F04373O 102F 7, generate the key, encrypt with AES algorithm, after encryption, send the USB TO HOST port of the double-row key that the order sends, use the USB serial port protocol, send the MIDI order according TO the baud rate of 31.25 KBaud.

And the instruction execution module is used for the App to analyze the MIDI instruction after receiving the MIDI instruction, and then to scroll the music score if the MIDI instruction is a music score scrolling instruction after the analysis.

Specifically, the instruction execution module performs instruction analysis, and if the instruction is a music score turning MIDI instruction, the instruction execution module starts to execute music score turning logic, and first calculates which position the music score is to be turned to, and the specific steps are as follows:

step 6.1 first obtain the screen height H

Step 6.2 then obtain the coordinates (x, y) of the upper left corner of the current song picture

Step 6.3, calculating a new y coordinate value of the picture: y + H, to obtain a new upper left corner coordinate (x, y + H)

Step 6.4, setting new coordinates of the upper left corner of the picture to realize the picture scrolling effect

Step 6.5, if a screen of pictures spanning multiple music scores appears, multiple pictures can be spliced into a long picture to be placed in a view, and corresponding coordinates can be obtained by calculation in step 6.3 each time.

Specifically, the invention further provides a computer readable storage medium, on which a computer program is stored, which when executed by a processor implements the steps of the double-row key foot kicking spectrum method as described above.

The method and the system for turning music scores by double-row key feet are characterized in that two touch switches are arranged on a double-row key foot pedal, a left switch is a score turning instruction switch, a left touch key of the double-row key foot pedal is defined as a MIDI instruction for turning the music scores, the music score is turned after the MIDI instruction for turning the music scores is received, and the music score is turned by feet, so that the method and the system are not in conflict with the playing of hands, are convenient and efficient, have free playing forms, can be repeated and paused at any time, and have the same advantages as the playing of paper music scores.

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.

8页详细技术资料下载
上一篇:一种医用注射器针头装配设备
下一篇:一种电子键盘乐器重奏方法和系统

网友询问留言

已有0条留言

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

精彩留言,会给你点赞!