Control method of key indicator light, piano, storage medium and program product
By setting up indicator light groups on the piano and generating indicator light control instructions based on the music score, the problem of high difficulty in getting started with piano learning is solved, intuitive key guidance without the need for score recognition is achieved, and learning efficiency is improved.
Patent Information
- Application Number
- CN202510492740.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-04-18
- Publication Date
- 2025-08-08
AI Technical Summary
It is difficult to get started with piano learning, especially for beginners who do not have a foundation in music theory, the requirements for reading music scores and pressing the keys are high.
By setting up an indicator group on the piano, an indicator control command is generated based on the notes information on the music score, the indicator group corresponding to the keys is lit, and the different orders of pressing are used to indicate different pressing orders, and the indicator group is turned off after pressing, until the note information of the music score is completed.
You can clearly press the keys through the light of the indicator light without knowing the score, which reduces the difficulty of learning, improves learning efficiency, and helps beginners master the piano playing skills of the score faster.
Smart Images

Figure CN120452111A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of musical instruments, and in particular to a method for controlling piano key indicator lights, a piano, a computer-readable storage medium, and a computer program product. Background Art
[0002] Learning the piano requires the ability to read music and press the keys according to the notes to produce the piano sound. However, this skill requires a certain level of music theory knowledge, creating a learning barrier. Therefore, current piano learning is quite difficult for beginners without a basic understanding of music theory.
[0003] The above information disclosed in this Background section is only for understanding the background of the present invention and therefore it may contain information that does not constitute prior art. Summary of the Invention
[0004] The main purpose of this application is to provide a method for controlling key indicator lights, a piano, a computer-readable storage medium and a computer program product, aiming to solve the current technical problem of high difficulty in learning to play the piano.
[0005] To achieve the above-mentioned object, the present application provides a method for controlling key indicator lights applied to a piano, wherein the piano is communicatively connected to a control terminal, the piano includes a plurality of keys and an indicator light group corresponding to each of the keys, the indicator light group including at least one indicator light, and the method for controlling the key indicator lights includes:
[0006] receiving an indicator light control instruction sent by a control terminal, wherein the indicator light control instruction is generated by note information on a preset musical score;
[0007] According to the indicator light control instruction, light up the indicator light group corresponding to at least three keys on the piano, wherein the indicator light group has at least three different lighting modes, and different lighting modes correspond to different pressing sequences;
[0008] When the key corresponding to the lit indicator light group is pressed, the indicator light group corresponding to the key is controlled to go out, and the process returns to the execution step of receiving the indicator light control instruction sent by the control end until the indicator light control instruction corresponding to the note information of the music score is executed.
[0009] In one embodiment, the indicator light group includes indicator lights at three different positions, and the lighting form of the indicator light group includes lighting the indicator lights at three different positions individually.
[0010] In one embodiment, the positions of the indicator lights in the indicator light group include at least a first position, a second position and a third position. When the indicator light corresponding to the first position is in a lit state, the pressing order of the keys corresponding to the indicator light group is first priority; when at least one indicator light corresponding to the second position is in a lit state, the pressing order of the keys corresponding to the indicator light group is second priority; when at least one indicator light corresponding to the third position is in a lit state, the pressing order of the keys corresponding to the indicator light group is third priority.
[0011] In one embodiment, the indicator light group includes one indicator light, and the lighting modes of the indicator light group include at least three different lighting colors.
[0012] In one embodiment, the lighting colors of the indicator lights in the indicator light group include at least a first color, a second color and a third color. When the indicator light group lights up the first color, the pressing order of the keys corresponding to the indicator light group is the first priority; when the indicator light group lights up the second color, the pressing order of the keys corresponding to the indicator light group is the second priority; when the indicator light group lights up the third color, the pressing order of the keys corresponding to the indicator light group is the third priority.
[0013] The present application also provides a method for controlling a piano key indicator light applied to a control terminal, wherein the control terminal is communicatively connected to a piano, the piano including a plurality of keys and an indicator light group corresponding to each of the keys, the indicator light group including at least one indicator light, and the method for controlling the piano key indicator light includes:
[0014] Generate indicator light control instructions based on preset note information on the musical score, wherein the indicator light control instructions are used to control the lighting of indicator lights of keys on the piano corresponding to the note information, and the indicator light group has at least three different lighting modes, and different lighting modes correspond to different pressing sequences;
[0015] Sending the indicator light control instruction to the piano, so that the piano lights up the indicator light groups corresponding to at least three keys on the piano according to the indicator light control instruction;
[0016] When the key corresponding to the lit indicator light group is pressed, the process returns to the execution step: generating an indicator light control instruction according to the preset note information on the music score, and sending the instruction to the piano until the indicator light control instruction corresponding to the note information on the music score is executed.
[0017] In one embodiment, the step of generating an indicator light control instruction based on preset note information on the music score includes:
[0018] Obtaining the first three notes in the note information and determining the keys corresponding to the first three notes, wherein the first three notes are the first three notes from the first note of the music score, or the first three notes from the note corresponding to the second key in the previous indicator light control instruction;
[0019] Generate indicator light control instructions corresponding to the keys corresponding to the first three notes, wherein the indicator light control instructions are used to control the lighting of the indicator light groups corresponding to the keys corresponding to the first three notes, and the lighting forms of the indicator light groups are different.
[0020] In addition, the present application also provides a control device for a piano key indicator light, which is applied to a piano. The control device for the piano key indicator light includes:
[0021] An instruction receiving module, configured to receive an indicator light control instruction sent by a control terminal, wherein the indicator light control instruction is generated by note information on a preset musical score;
[0022] a light group lighting module, configured to light up the light groups corresponding to at least three keys on the piano according to the indicator light control instruction, wherein the light groups have at least three different lighting modes, and different lighting modes correspond to different pressing sequences;
[0023] The light group extinguishing module is used to control the light group corresponding to the lighted indicator light group to extinguish when the key corresponding to the key is pressed, and return to the execution step: receiving the light control instruction sent by the control end until the light control instruction corresponding to the note information of the music score is executed.
[0024] In addition, the present application also provides a control device for a piano key indicator light, which is applied to a control terminal. The control device for the piano key indicator light includes:
[0025] an instruction generation module for generating an indicator light control instruction based on preset note information on the musical score, wherein the indicator light control instruction is used to control the lighting of the indicator lights of the piano keys corresponding to the note information, and the indicator light group has at least three different lighting modes, and different lighting modes correspond to different pressing sequences;
[0026] An instruction sending module is used to send the indicator light control instruction to the piano, so that the piano can light up the indicator light groups corresponding to at least three keys on the piano according to the indicator light control instruction;
[0027] The loop module is used to return to the execution step when the key corresponding to the lit indicator light group is pressed: generating an indicator light control instruction according to the preset note information on the music score, and sending it to the piano until the indicator light control instruction corresponding to the note information of the music score is completed.
[0028] In addition, the present application also provides a piano, which includes at least piano keys, a group of indicator lights corresponding to the keys, and a control unit. The control unit includes at least: a memory, a processor, and a computer program stored on the memory and runnable on the processor. The computer program is configured to implement the steps of the control method for the piano key indicator lights applied to the water heater as described above.
[0029] In addition, to achieve the above-mentioned purpose, the present application also provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the steps of the control method of the key indicator light as described above are implemented.
[0030] In addition, to achieve the above-mentioned purpose, the present application also provides a computer program product, including a computer program, which implements the steps of the above-mentioned method for controlling the key indicator lights when executed by a processor.
[0031] The present application provides a method for controlling piano key indicator lights, which is applied to a piano, wherein the piano is in communication with a control terminal, the piano including a plurality of keys and an indicator light group corresponding to each of the keys, the indicator light group including at least one indicator light. The method for controlling the piano key indicator lights comprises: receiving an indicator light control instruction sent by the control terminal, wherein the indicator light control instruction is generated based on note information on a preset musical score; then, according to the indicator light control instruction, lighting up the indicator light groups corresponding to at least three keys on the piano, wherein the indicator light groups have at least three different lighting modes, each corresponding to a different pressing sequence; when the key corresponding to the lit indicator light group is pressed, controlling the indicator light group corresponding to the key to be pressed to be extinguished, and returning to the step of receiving the indicator light control instruction sent by the control terminal until the indicator light control instruction corresponding to the note information on the musical score is executed. In the technical solution of the present application, the piano can continuously receive the indicator light control instruction sent by the control terminal and control the indicator light groups of the keys according to the indicator light control instruction, so as to indicate the order in which the learner should press the keys by lighting up the indicator lights. In this way, learners do not need to read the music score, but can intuitively know the keys to be pressed by the lighting of the indicator lights, which effectively reduces the difficulty of getting started with the piano. Moreover, in this application, three different lighting forms of the indicator light group are used to represent different pressing sequences, so that when learners press the keys according to the indicator lights, they can not only clearly know the at least one key to be pressed at present, but also know in advance the next two keys to be pressed, which makes it easier to press the keys corresponding to the music score smoothly, improves learning efficiency, and helps beginners master the piano playing skills of the music score more quickly. BRIEF DESCRIPTION OF THE DRAWINGS
[0032] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and, together with the description, serve to explain the principles of the present application.
[0033] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the following briefly introduces the drawings required for use in the embodiments or the description of the prior art. Obviously, for ordinary technicians in this field, other drawings can be obtained based on these drawings without any creative work.
[0034] Figure 1 This is a flow chart of an embodiment of a method for controlling piano key indicator lights according to an embodiment of the present application;
[0035] Figure 2 This is a flow chart of an embodiment of a method for controlling a piano key indicator light applied to a control terminal in an embodiment of the present application;
[0036] Figure 3Schematic diagram of the structure of a control device for piano key indicator lights according to an embodiment of the present application;
[0037] Figure 4 Schematic diagram of the structure of the control device for the piano key indicator lights applied to the control terminal in an embodiment of the present application;
[0038] Figure 5 This is a schematic diagram of the device structure of the piano hardware operating environment involved in the method for controlling the key indicator lights in the embodiment of the present application.
[0039] The purpose, features and advantages of this application will be further explained in conjunction with the embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION
[0040] To make the above-mentioned purposes, features, and advantages of the present application more clearly understood, the technical solutions in the embodiments of the present application will be clearly and completely described below in conjunction with the accompanying drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without making any creative work are within the scope of protection of this application.
[0041] It should be understood that the specific embodiments described herein are merely used to explain the technical solutions of the present application and are not intended to limit the present application.
[0042] In order to better understand the technical solution of the present application, a detailed description will be given below in conjunction with the accompanying drawings and specific implementation methods.
[0043] The embodiment of the present application provides a control method for piano key indicator lights, wherein the piano is in communication with a control terminal, the piano comprises a plurality of keys and an indicator light group corresponding to each of the keys, the indicator light group comprising at least one indicator light, Figure 1 , Figure 1 This is a flow chart of an embodiment of a method for controlling a piano key indicator light of the present application, wherein the method for controlling a piano key indicator light includes:
[0044] Step S10, receiving an indicator light control instruction sent by the control terminal, wherein the indicator light control instruction is generated by note information on a preset music score;
[0045] In an embodiment of the present application, the control terminal that establishes a communication connection with the piano (with a built-in communication module) can be a smart mobile device, such as a mobile phone, which has an application installed on it for controlling the piano. The application can pre-load the music score that the user wants to learn and generate corresponding indicator light control instructions based on the note information in the music score. The note information includes the order of the notes, each note corresponding to a key on the piano. When a note is played, the first-order indicator light group in the corresponding indicator light control instruction is the indicator light group of the key corresponding to the note.
[0046] Exemplarily, the piano is an electric piano.
[0047] Specifically, the indicator light control instruction includes an instruction to light up the indicator light group corresponding to at least three designated keys on the piano, so that the user can intuitively know the key that needs to be pressed at present and the next two keys that need to be pressed in sequence.
[0048] Step S20, lighting up indicator light groups corresponding to at least three keys on the piano according to the indicator light control instruction, wherein the indicator light groups have at least three different lighting modes, and different lighting modes correspond to different pressing sequences;
[0049] After receiving the indicator light control instruction, the indicator light group corresponding to each key is determined according to the information of the three keys contained in the indicator light control instruction (such as numbers or preset identifiers), and the indicator light group is controlled to light up according to the lighting form of each key in the indicator light control instruction.
[0050] It should be noted that in the embodiment of the present application, different lighting forms are used to distinguish the pressing order of each key. The lighting forms may include different lighting positions, different lighting colors, etc., as long as they can be distinguished, and there is no limitation here.
[0051] For example, the three lighting patterns correspond to the first, second, and third priority keys, respectively. The first priority key is the key that needs to be pressed currently, the second priority key is the key that needs to be pressed after pressing the first priority key, and the third priority key is the key that needs to be pressed after pressing the second priority key. It should be noted that during the performance of a musical score, multiple keys may need to be pressed simultaneously, that is, the number of keys corresponding to the first, second, and third priority keys may be multiple.
[0052] Step S30: When the key corresponding to the lit indicator light group is pressed, the indicator light group corresponding to the key is controlled to be extinguished, and the process returns to step S10: receiving the indicator light control instruction sent by the control terminal, until the indicator light control instruction corresponding to the note information of the music score is executed.
[0053] It should be noted that after lighting up each indicator light group according to the indicator light control instruction, the user presses a piano key according to the instruction of the indicator light group. At this time, the playing progress on the music score advances one note, and the indicator light group of the key immediately goes out. Afterwards, the communication module on the piano end can send a prompt message to the control end, prompting the control end that the current key has been pressed and a new indicator light control instruction needs to be generated. After the control end receives the prompt message, it needs to generate a new indicator light control instruction based on the key that needs to be pressed and the next two keys. That is, every time the user presses a key, the control end generates a new control instruction and sends it to the piano, and so on, until all the notes on the music score have been played.
[0054] For example, the control end initially issues an indicator light control command to illuminate the indicator light groups corresponding to key A, key B, and key C in different patterns, with the pressing order being: key A, key B, key C. After the user presses key A, the indicator light group corresponding to key A turns off. The control end then generates a control command to illuminate the indicator light groups corresponding to key B, key C, and key D in different patterns, with the pressing order being: key B, key C, key D. It should be noted that each of keys A, B, C, and D may include multiple keys.
[0055] An embodiment of the present application provides a method for controlling a key indicator light, which is applied to a piano, wherein the piano is communicatively connected to a control terminal, the piano includes a plurality of keys and an indicator light group corresponding to each of the keys, the indicator light group including at least one indicator light, and the method for controlling the key indicator light includes: receiving an indicator light control instruction sent by the control terminal, wherein the indicator light control instruction is generated by note information on a preset music score, and then lighting up the indicator light groups corresponding to at least three keys on the piano according to the indicator light control instruction, wherein the indicator light groups have at least three different lighting forms, and different lighting forms correspond to different pressing sequences, and when the key corresponding to the lit indicator light group is pressed, the indicator light group corresponding to the key is controlled to go out, and the execution step is returned to: receiving the indicator light control instruction sent by the control terminal until the indicator light control instruction corresponding to the note information of the music score is executed. In the technical solution of the embodiment of the present application, the piano can continuously receive the indicator light control instructions sent by the control end, and control the indicator light group of the keys according to the indicator light control instructions, so as to indicate the order in which the learner presses the keys by lighting the indicator lights. In this way, the learner does not need to read the music score, but can intuitively know the keys to be pressed by the lighting of the indicator lights, which effectively reduces the difficulty of getting started with the piano. Moreover, in the embodiment of the present application, three different lighting forms of the indicator light group are used to represent different pressing sequences, so that when the learner presses the keys according to the indicator lights, he can not only know the current key to be pressed, but also know in advance the next two keys to be pressed, which facilitates the smooth pressing of the keys corresponding to the music score, improves learning efficiency, and helps beginners master the piano playing skills of the music score more quickly.
[0056] Furthermore, in a feasible embodiment, the indicator light group includes indicator lights at three different positions, and the lighting form of the indicator light group includes lighting the indicator lights at three different positions individually.
[0057] In the embodiment of the present application, the indicator light group may include indicator lights at three different positions, and different indicator light groups that are lit at the same time can be distinguished by lighting the indicator lights at different positions in the indicator light group.
[0058] The arrangement of the indicator lights in the indicator light group can be set according to the actual situation of the piano, either from top to bottom or from left to right.
[0059] Furthermore, the positions of the indicator lights in the indicator light group include at least a first position, a second position and a third position. When at least one indicator light corresponding to the first position is in a lit state, the pressing order of the keys corresponding to the indicator light group is first priority; when at least one indicator light corresponding to the second position is in a lit state, the pressing order of the keys corresponding to the indicator light group is second priority; when at least one indicator light corresponding to the third position is in a lit state, the pressing order of the keys corresponding to the indicator light group is third priority.
[0060] For example, a single indicator light group is, from left to right, indicator light number 1 (corresponding to the first position), indicator light number 2 (corresponding to the second position), and indicator light number 3 (corresponding to the third position). When only indicator light number 1 is lit, it indicates that the key pressing sequence corresponding to the indicator light group is first priority; when only indicator light number 2 is lit, it indicates that the key pressing sequence corresponding to the indicator light group is second priority; when only indicator light number 3 is lit, it indicates that the key pressing sequence corresponding to the indicator light group is third priority. Because multiple keys may be pressed in the same order, multiple indicator lights in the first position (or second position, or third position) can be lit at the same time.
[0061] In another feasible embodiment, the indicator light group includes one indicator light, and the lighting mode of the indicator light group includes at least three different lighting colors.
[0062] In an embodiment of the present application, the indicator light group may include only one indicator light, which, when illuminated, can display one of three different colors, such as red, yellow, green, or blue, according to the control command received. Compared to a light group consisting of three indicator lights, fewer indicator lights are consumed, and the indicator light group occupies less area, but the indicator light needs to be able to illuminate in multiple colors. In actual applications, manufacturers can choose to use three single-color indicator lights or one indicator light that can illuminate in three colors to form an indicator light group, depending on the cost of the indicator lights.
[0063] Furthermore, the lighting colors of the indicator lights in the indicator light group include at least a first color (such as red), a second color (such as yellow) and a third color (such as blue). When the indicator light group lights up the first color, the pressing order of the keys corresponding to the indicator light group is the first priority; when the indicator light group lights up the second color, the pressing order of the keys corresponding to the indicator light group is the second priority; when the indicator light group lights up the third color, the pressing order of the keys corresponding to the indicator light group is the third priority.
[0064] The embodiment of the present application also provides another method for controlling a key indicator light applied to a control terminal, wherein the control terminal is connected to a piano for communication, the piano comprising a plurality of keys and an indicator light group corresponding to each of the keys, the indicator light group comprising at least one indicator light, Figure 2 , the control method of the key indicator light includes:
[0065] Step A10: Generate indicator light control instructions based on the preset note information on the musical score, wherein the indicator light control instructions are used to control the lighting of the indicator lights of the piano keys corresponding to the note information. The indicator light group has at least three different lighting modes, and the different lighting modes correspond to different pressing sequences.
[0066] The control terminal may be a mobile communication device, such as a mobile phone, with a corresponding control application installed on the mobile phone. The application can download or import a musical score as needed and generate corresponding indicator light control instructions based on the note information on the score. It is understood that the indicator light control instructions are used to determine the piano keys corresponding to at least three notes based on the note information recorded on the score, and then control the indicator light groups corresponding to each key to illuminate in different patterns, allowing the user to distinguish the order in which the keys were pressed based on the different lighting patterns.
[0067] Step A20, sending the indicator light control instruction to the piano, so that the piano lights up the indicator light groups corresponding to at least three keys on the piano according to the indicator light control instruction;
[0068] After the indicator light control command is generated, it is sent to the piano, which then illuminates the indicator light groups corresponding to at least three keys on the piano in different lighting patterns according to the indicator light control command. It should be noted that the process of lighting the indicator light groups according to the indicator light control command can refer to the aforementioned steps S20 to S30, and the number of indicator lights in the indicator light group or the lighting colors of the indicator lights are also consistent with the aforementioned method for controlling the key indicator lights applied to the piano, and will not be further described here.
[0069] In step A30, when the key corresponding to the lit indicator light group is pressed, the process returns to step A10, generates an indicator light control instruction based on the preset note information on the music score, and sends it to the piano until the indicator light control instruction corresponding to the note information on the music score is executed.
[0070] When a key corresponding to a lit indicator light group on the piano is pressed, the note on the score advances one, and the indicator light group for that key immediately turns off. The piano's communication module then sends a prompt to the control terminal, notifying it that the current key has been pressed and that a new indicator light control instruction needs to be generated. The control terminal then returns to step A10. In other words, each time the user presses a key, the control terminal generates a new control instruction and sends it to the piano, and so on, until all notes on the score have been played.
[0071] For example, the control end initially issues an indicator light control command to illuminate the indicator light groups corresponding to key A, key B, and key C in different patterns, with the pressing order being: key A, key B, key C. After the user presses key A, the indicator light group corresponding to key A turns off. The control end then generates a control command to illuminate the indicator light groups corresponding to key B, key C, and key D in different patterns, with the pressing order being: key B, key C, key D. It should be noted that each of keys A, B, C, and D may include multiple keys.
[0072] Furthermore, in a feasible embodiment, the step of generating an indicator light control instruction according to preset note information on the music score may include:
[0073] Step A11, obtaining the first three notes in the note information and determining the keys corresponding to the first three notes, wherein the first three notes refer to the first three notes from the first note in the music score, or the first three notes from the note corresponding to the second key in the previous indicator light control instruction;
[0074] Step A12: Generate indicator light control instructions corresponding to the keys corresponding to the first three notes, wherein the indicator light control instructions are used to control the lighting of the indicator light groups corresponding to the keys corresponding to the first three notes, and the lighting forms of the indicator light groups are different.
[0075] For example, when the control end first generates the indicator light control instruction, it takes the first note of the music score as the starting point, determines the keys corresponding to the first three notes, and generates indicator light control instructions for controlling the indicator light groups corresponding to the three keys to light up in different forms according to the order of the three notes.
[0076] For example, when the control end generates an indicator light control instruction for a non-initial time, the note corresponding to the second-ranked key in the last generated indicator light control instruction is used as the starting point, the keys corresponding to the first three notes starting from the note are determined, and indicator light control instructions are generated in the order of the three notes to control the indicator light groups corresponding to the three keys to light up in different ways. This is because after the indicator light control instruction sent last time is executed by the piano and the user presses the first-ranked key, the key corresponding to the second-ranked key in the last sent indicator light control instruction becomes the first-ranked key in this pressing sequence, so this key needs to be used as the starting point, and the key corresponding to the third-ranked key in the last sent indicator light control instruction becomes the second-ranked key in the indicator light control instruction generated this time. Finally, the third-ranked key in the indicator light control instruction generated this time needs to be postponed by one based on the note that has been determined as the second-ranked key in the music score to determine the next note and the third-ranked key corresponding to the note.
[0077] The control method for the key indicator lights applied to the control terminal provided in the embodiment of the present application adopts the control method for the key indicator lights in the above embodiment, which can solve the technical problem that it is currently difficult to learn piano. Compared with the existing technology, the beneficial effects of the control method for the key indicator lights applied to the control terminal provided in the embodiment of the present application are the same as the beneficial effects of the control method for the key indicator lights applied to the control terminal provided in the above embodiment, and the other technical features of the control method for the key indicator lights are the same as the features disclosed in the above embodiment, and are not further described here.
[0078] It should be noted that this example is only used to assist in understanding the present application and does not constitute a limitation on the control method of the piano key indicator light of the present application. More simple transformations based on this technical concept are all within the scope of protection of the present application.
[0079] The present application also provides a control device for a piano key indicator light, which is applied to a piano. Figure 3 , the control device of the key indicator light includes:
[0080] The instruction receiving module 11 is used to receive the indicator light control instruction sent by the control terminal, wherein the indicator light control instruction is generated by the note information on the preset music score;
[0081] A light group lighting module 12 is used to light up the light groups corresponding to at least three keys on the piano according to the indicator light control instruction, wherein the indicator light group has at least three different lighting modes, and different lighting modes correspond to different pressing sequences;
[0082] The light group extinguishing module 13 is used to control the light group corresponding to the lighted indicator light group to extinguish when the key corresponding to the key is pressed, and return to the execution step: receiving the light control instruction sent by the control end until the light control instruction corresponding to the note information of the music score is executed.
[0083] In one embodiment, the indicator light group includes indicator lights at three different positions, and the lighting form of the indicator light group includes lighting the indicator lights at three different positions individually.
[0084] In one embodiment, the positions of the indicator lights in the indicator light group include at least a first position, a second position and a third position. When at least one indicator light corresponding to the first position is in a lit state, the pressing order of the keys corresponding to the indicator light group is the first priority; when at least one indicator light corresponding to the second position is in a lit state, the pressing order of the keys corresponding to the indicator light group is the second priority; when at least one indicator light corresponding to the third position is in a lit state, the pressing order of the keys corresponding to the indicator light group is the third priority.
[0085] In one embodiment, the indicator light group includes one indicator light, and the lighting modes of the indicator light group include at least three different lighting colors.
[0086] In one embodiment, the lighting colors of the indicator lights in the indicator light group include at least a first color, a second color and a third color. When the indicator light group lights up the first color, the pressing order of the keys corresponding to the indicator light group is the first priority; when the indicator light group lights up the second color, the pressing order of the keys corresponding to the indicator light group is the second priority; when the indicator light group lights up the third color, the pressing order of the keys corresponding to the indicator light group is the third priority.
[0087] The control device for piano key indicator lights provided in the embodiments of the present application utilizes the control method for piano key indicator lights described in the aforementioned embodiments, thereby resolving the current technical issue of the high difficulty in learning to play the piano. Compared to the prior art, the beneficial effects of the control device for piano key indicator lights provided in the embodiments of the present application are the same as those of the control method for piano key indicator lights provided in the aforementioned embodiments. The other technical features of the control device for piano key indicator lights are the same as those disclosed in the aforementioned embodiments and are not further elaborated upon here.
[0088] The present application also provides a control device for a piano key indicator light, which is applied to a control terminal. Figure 4 , the control device of the key indicator light includes:
[0089] An instruction generation module 21 is configured to generate an indicator light control instruction based on preset note information on the musical score, wherein the indicator light control instruction is used to control the lighting of the indicator lights of the piano keys corresponding to the note information, wherein the indicator light group has at least three different lighting modes, and different lighting modes correspond to different pressing sequences;
[0090] An instruction sending module 22 is used to send the indicator light control instruction to the piano, so that the piano can light up the indicator light groups corresponding to at least three keys on the piano according to the indicator light control instruction;
[0091] The loop module 23 is used to return to the execution step when the key corresponding to the lit indicator light group is pressed: generating an indicator light control instruction according to the preset note information on the music score, and sending it to the piano until the indicator light control instruction corresponding to the note information on the music score is executed.
[0092] In one embodiment, the instruction generation module 21 is further configured to:
[0093] Obtaining the first three notes in the note information and determining the keys corresponding to the first three notes, wherein the first three notes are the first three notes from the first note of the music score, or the first three notes from the note corresponding to the second key in the previous indicator light control instruction;
[0094] Generate indicator light control instructions corresponding to the keys corresponding to the first three notes, wherein the indicator light control instructions are used to control the lighting of the indicator light groups corresponding to the keys corresponding to the first three notes, and the lighting forms of the indicator light groups are different.
[0095] The control device for piano key indicator lights provided in the embodiments of the present application utilizes the control method for piano key indicator lights described in the aforementioned embodiments, thereby resolving the current technical issue of the high difficulty in learning to play the piano. Compared to the prior art, the beneficial effects of the control device for piano key indicator lights provided in the embodiments of the present application are the same as those of the control method for piano key indicator lights provided in the aforementioned embodiments. The other technical features of the control device for piano key indicator lights are the same as those disclosed in the aforementioned embodiments and are not further elaborated upon here.
[0096] An embodiment of the present application also provides a piano, which includes at least keys, a group of indicator lights corresponding to the keys, and a control unit, wherein the control unit includes at least: at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute the control method of the key indicator lights in the above embodiment.
[0097] Reference below Figure 5 , which shows a structural schematic diagram of a control unit suitable for implementing an embodiment of the present application. Figure 5 The control unit shown is merely an example and should not limit the functions and scope of use of the embodiments of the present application.
[0098] like Figure 5 As shown, the control unit may include a processing device 101 (e.g., a central processing unit, a graphics processing unit, etc.), which can perform various appropriate actions and processes according to programs stored in a read-only memory (ROM) 102 or programs loaded from a storage device 103 into a random access memory (RAM) 104. RAM 104 also stores various programs and data required for the operation of the control unit. Processing device 101, ROM 102, and RAM 104 are interconnected via a bus 105. An input / output (I / O) interface 106 is also connected to the bus. Typically, the following systems may be connected to I / O interface 106: input devices 107 including, for example, a touch screen, touchpad, keyboard, mouse, image sensor, microphone, accelerometer, gyroscope, etc.; output devices 108 including, for example, a liquid crystal display (LCD), speakers, vibrator, etc.; storage device 103 including, for example, a magnetic tape, hard disk, etc.; and communication device 109. Communication device 109 may allow the control unit to communicate with other devices wirelessly or by wire to exchange data. Although the figures show a control unit with various systems, it should be understood that it is not required to implement or have all of the systems shown. More or fewer systems may be implemented or have instead.
[0099] In particular, according to an embodiment of the present disclosure, the process described above with reference to the flowchart can be implemented as a computer software program. For example, an embodiment of the present disclosure includes a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program includes program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from a network via a communication device, or installed from a storage device 103, or installed from a ROM 102. When the computer program is executed by the processing device 101, the above-mentioned functions defined in the method of the embodiment of the present application are performed.
[0100] The piano provided in the embodiments of the present application utilizes the key indicator light control method of the aforementioned embodiments, thereby resolving the current technical issue of the high difficulty in learning to play the piano. Compared to the prior art, the piano provided in the embodiments of the present application achieves the same beneficial effects as the key indicator light control method of the aforementioned embodiments. Other technical features of the piano are the same as those disclosed in the aforementioned embodiments and are not further elaborated upon here.
[0101] It should be understood that the various parts of the embodiments of the present application can be implemented using hardware, software, firmware, or a combination thereof. In the description of the above embodiments, specific features, structures, materials, or characteristics can be combined in any appropriate manner in any one or more embodiments or examples.
[0102] The above description is merely a specific embodiment of the present invention, but the scope of protection of the present invention is not limited thereto. Any changes or substitutions that can be easily conceived by a person skilled in the art within the technical scope disclosed in this application should be included in the scope of protection of the present invention. Therefore, the scope of protection of the present invention should be based on the scope of protection of the above claims.
[0103] An embodiment of the present application further provides a computer-readable storage medium storing a computer program that can be run on a processor, and the computer program is used to execute the control method of the key indicator light in the above embodiment.
[0104] The computer-readable storage medium provided in the embodiments of the present application may be, for example, a USB flash drive, but is not limited to electrical, magnetic, optical, electromagnetic, infrared, or semiconductor systems or devices, or any combination thereof. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination thereof. In this embodiment, the computer-readable storage medium may be any tangible medium that contains or stores a program that can be used by or in combination with an instruction execution system, system, or device. The program code contained on the computer-readable storage medium may be transmitted using any appropriate medium, including but not limited to: wires, optical cables, RF (Radio Frequency), etc., or any suitable combination thereof.
[0105] The computer-readable storage medium may be included in the control unit, or may exist independently without being assembled into the control unit.
[0106] The computer-readable storage medium carries one or more programs. When the one or more programs are executed by the piano, the control unit executes the following steps: receiving an indicator light control instruction sent by a control terminal, wherein the indicator light control instruction is generated by note information on a preset musical score; lighting up indicator light groups corresponding to at least three keys on the piano according to the indicator light control instruction, wherein the indicator light groups have at least three different lighting modes, and different lighting modes correspond to different pressing sequences; when the key corresponding to the lit indicator light group is pressed, controlling the indicator light group corresponding to the key to go out, and returning to the execution step of receiving the indicator light control instruction sent by the control terminal until the indicator light control instruction corresponding to the note information on the musical score is completed.
[0107] Computer program code for performing the operations of the present disclosure may be written in one or more programming languages, or a combination thereof, including object-oriented programming languages such as Java, Smalltalk, C++, and conventional procedural programming languages such as "C" or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as a stand-alone software package, partially on the user's computer and partially on a remote computer, or entirely on the remote computer or server. In cases involving a remote computer, the remote computer may be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., through the Internet using an Internet service provider).
[0108] The flow charts and block diagrams in the accompanying drawings illustrate the possible architecture, functions and operations of the systems, methods and computer program products according to various embodiments of the present application. In this regard, each box in the flow chart or block diagram can represent a module, program segment or a part of code, and the module, program segment or a part of code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order than that marked in the accompanying drawings. For example, two boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram and / or flow chart, and the combination of the boxes in the block diagram and / or flow chart can be implemented by a dedicated hardware-based system that performs the specified function or operation, or can be implemented by a combination of dedicated hardware and computer instructions.
[0109] The modules described in the embodiments of the present application may be implemented in software or hardware, wherein the name of a module does not necessarily limit the unit itself.
[0110] The computer-readable storage medium provided in the embodiments of the present application stores computer-readable program instructions for executing the aforementioned method for controlling the key indicator lights, thereby resolving the current technical issue of the high difficulty in learning to play the piano. Compared to the prior art, the beneficial effects of the computer-readable storage medium provided in the embodiments of the present application are the same as those of the method for controlling the key indicator lights provided in the aforementioned embodiments, and are not further elaborated here.
[0111] An embodiment of the present application further provides a computer program product, including a computer program, which implements the steps of the above-mentioned method for controlling the key indicator lights when the computer program is executed by a processor.
[0112] The computer program product provided in the embodiments of the present application can solve the current technical problem of high difficulty in learning to play the piano. Compared with the prior art, the beneficial effects of the computer program product provided in the embodiments of the present application are the same as the beneficial effects of the key indicator light control method provided in the above embodiments, and will not be repeated here.
[0113] The above are only preferred embodiments of the present application and do not limit the patent scope of the present application. Any equivalent structure or equivalent process transformation made using the contents of the present application specification and drawings, or directly or indirectly applied in other related technical fields, are also included in the patent processing scope of the present application.
Claims
1. A method for controlling a piano key indicator light, characterized in that: The invention is applied to a piano, the piano being communicatively connected to a control terminal, the piano comprising a plurality of keys and an indicator light group corresponding to each of the keys, the indicator light group comprising at least one indicator light, and the control method of the key indicator light comprising: receiving an indicator light control instruction sent by a control terminal, wherein the indicator light control instruction is generated by note information on a preset musical score; According to the indicator light control instruction, light up the indicator light group corresponding to at least three keys on the piano, wherein the indicator light group has at least three different lighting modes, and different lighting modes correspond to different pressing sequences; When the key corresponding to the lit indicator light group is pressed, the indicator light group corresponding to the key is controlled to go out, and the process returns to the execution step of receiving the indicator light control instruction sent by the control end until the indicator light control instruction corresponding to the note information of the music score is executed.
2. The method for controlling a piano key indicator light according to claim 1, wherein: The indicator light group includes three indicator lights at different positions, and the lighting mode of the indicator light group includes lighting the indicator lights at three different positions individually.
3. The method for controlling a piano key indicator light according to claim 2, wherein: The positions of the indicator lights in the indicator light group include at least a first position, a second position and a third position. When at least one indicator light corresponding to the first position is in a lit state, the pressing order of the keys corresponding to the indicator light group is the first priority; when at least one indicator light corresponding to the second position is in a lit state, the pressing order of the keys corresponding to the indicator light group is the second priority; when at least one indicator light corresponding to the third position is in a lit state, the pressing order of the keys corresponding to the indicator light group is the third priority.
4. The method for controlling a piano key indicator light according to claim 1, wherein: The indicator light group includes an indicator light, and the lighting mode of the indicator light group includes at least three different lighting colors.
5. The method for controlling a piano key indicator light according to claim 4, wherein: The lighting colors of the indicator lights in the indicator light group include at least a first color, a second color and a third color. When the indicator light group lights up the first color, the pressing order of the keys corresponding to the indicator light group is the first priority; when the indicator light group lights up the second color, the pressing order of the keys corresponding to the indicator light group is the second priority; when the indicator light group lights up the third color, the pressing order of the keys corresponding to the indicator light group is the third priority.
6. A method for controlling a piano key indicator light, characterized in that: The invention is applied to a control terminal, the control terminal being communicatively connected to a piano, the piano including a plurality of keys and an indicator light group corresponding to each of the keys, the indicator light group including at least one indicator light, and the control method of the key indicator light comprising: Generate indicator light control instructions based on preset note information on the musical score, wherein the indicator light control instructions are used to control the lighting of indicator lights of keys on the piano corresponding to the note information, and the indicator light group has at least three different lighting modes, and different lighting modes correspond to different pressing sequences; Sending the indicator light control instruction to the piano, so that the piano lights up the indicator light groups corresponding to at least three keys on the piano according to the indicator light control instruction; When the key corresponding to the lit indicator light group is pressed, the process returns to the execution step: generating an indicator light control instruction according to the preset note information on the music score, and sending the instruction to the piano until the indicator light control instruction corresponding to the note information on the music score is executed.
7. The method for controlling a piano key indicator light according to claim 6, wherein: The step of generating an indicator light control instruction according to the preset note information on the music score includes: Obtaining the first three notes in the note information and determining the keys corresponding to the first three notes, wherein the first three notes are the first three notes from the first note of the music score, or the first three notes from the note corresponding to the second key in the previous indicator light control instruction; Generate indicator light control instructions corresponding to the keys corresponding to the first three notes, wherein the indicator light control instructions are used to control the lighting of the indicator light groups corresponding to the keys corresponding to the first three notes, and the lighting forms of the indicator light groups are different.
8. A piano, characterized in that: The piano includes at least keys, a group of indicator lights corresponding to the keys, and a control unit. The control unit includes at least: a memory, a processor, and a computer program stored in the memory and executable on the processor. The computer program is configured to implement the steps of the method for controlling the key indicator lights as described in any one of claims 1 to 5.
9. A readable storage medium, characterized in that: The readable storage medium is a computer-readable storage medium, and a program for implementing a method for controlling a key indicator light is stored on the computer-readable storage medium. The program for implementing a method for controlling a key indicator light is executed by a processor to implement the steps of the method for controlling a key indicator light as described in any one of claims 1 to 5 or claims 6 to 7.
10. A computer program product, characterized in that The computer program product comprises a computer program, and when the computer program is executed by a processor, the steps of the method for controlling the key indicator lights according to any one of claims 1 to 5 or claims 6 to 7 are implemented.