Control method of electronic musical instrument, electronic musical instrument and storage medium

Through the multi-key design of electronic instruments and music data processing, the main melody is played with the user, solving the problem of users singing out of tune under the accompaniment, improving the effect of practicing songs, and especially suitable for novice users.

CN120452400APending Publication Date: 2025-08-08SHENZHEN SUIDAN TECHNOLOGY CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510746307.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-06-05
Publication Date
2025-08-08

AI Technical Summary

Technical Problem

When existing string instruments such as electronic guitars sing under accompaniment, users are prone to having problems such as singing off-tune or not knowing whether they are singing accurately, and the main melody of some instruments cannot follow the user's rhythm, which leads to inconvenience in practicing songs.

Method used

The electronic instrument uses multiple performance keys and music data processing to obtain several consecutive music segments after determining the track to be played, and plays the music segments corresponding to the current timestamp when the key is triggered, so as to achieve the main melody following the user's playing, support fallback or fast forward operations, and provide performance guidance through the display window.

Benefits of technology

With the accompaniment, users can clearly know whether they sing accurately and are not easy to get out of tune, which improves the effect of practicing songs and is suitable for all kinds of users, especially novices.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120452400A_ABST
    Figure CN120452400A_ABST
Patent Text Reader

Abstract

The invention discloses a control method of an electronic musical instrument, the electronic musical instrument and a storage medium, the electronic musical instrument is provided with a plurality of playing keys, and the control method of the electronic musical instrument comprises the steps of determining a to-be-played track; music data corresponding to a to-be-played track are obtained, the music data are a plurality of continuous music segments obtained by dividing preset audio track data, and the preset audio track data comprise melody audio track data; and when the playing key is triggered, playing the to-be-played music fragment corresponding to the current timestamp of the music data. According to the technical scheme, the electronic musical instrument can give out the main melody of the song, a user can clearly see whether singing is accurate or not under accompaniment of the electronic musical instrument, the melody is not prone to shifting, and the user can practice the song more easily.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of electronic musical instruments, and in particular to a control method for an electronic musical instrument, an electronic musical instrument, and a storage medium. Background Art

[0002] As the pace of life accelerates, people tend to pursue simpler and easier-to-learn instruments, such as electronic guitars. However, existing string instruments, such as electronic guitars, can only produce chords. Therefore, when singing to the accompaniment of an electronic guitar, users can easily sing out of tune or lose track of their singing accuracy, making it difficult for users to practice songs. Alternatively, some string instruments have players that can play the main melody, but because the player plays forward continuously, the main melody played by the player cannot keep up with the user's playing rhythm, requiring users to play quickly to chase the main melody, which is only possible for very experienced users and is not conducive to song practice for most users. Summary of the Invention

[0003] The present application provides a control method for an electronic musical instrument, which can enable the electronic musical instrument to play the main melody of a song in accordance with the user's playing rhythm, so that the user can clearly know whether his singing is accurate with the accompaniment of the electronic musical instrument, and is not prone to singing out of tune, which is more conducive to the user's song practice.

[0004] To achieve the above-mentioned purpose, the present application proposes a control method for an electronic musical instrument, wherein the electronic musical instrument has a plurality of playing keys, and the control method for the electronic musical instrument comprises:

[0005] Determine the repertoire to be performed;

[0006] Acquiring music data corresponding to the piece to be played, the music data being a plurality of continuous music segments obtained by dividing preset track data, the preset track data including melody track data;

[0007] When the play button is triggered, the music segment to be played corresponding to the current timestamp of the music data is played.

[0008] In some embodiments, each performance key corresponds to a chord or a single note, and the method for controlling the electronic musical instrument further includes:

[0009] When the performance key is triggered, the sound of the chord or single note corresponding to the triggered performance key is played.

[0010] In some embodiments, after the step of obtaining the music data corresponding to the piece to be played, the method for controlling the electronic musical instrument further includes:

[0011] When a rewind or fast-forward operation on the playing progress is detected, the current timestamp of the music data is adjusted to the timestamp corresponding to the playing progress after the rewind or fast-forward operation.

[0012] In some embodiments, each music clip corresponds to a play button; when the play button is triggered, playing the music clip to be played corresponding to the current timestamp of the music data includes:

[0013] When the play button is triggered, determining whether the triggered play button is the play button corresponding to the music segment to be played corresponding to the current timestamp of the music data;

[0014] If the triggered play button is the play button corresponding to the music clip to be played, the music clip to be played is played;

[0015] If the triggered play button is not the play button corresponding to the music segment to be played, the music segment to be played will not be played.

[0016] In some embodiments, each play button corresponds to a chord or a single note; if the triggered play button is the play button corresponding to the music clip to be played, playing the music clip to be played includes:

[0017] If the triggered play button is the play button corresponding to the music clip to be played, determining whether the chord or single note corresponding to the triggered play button corresponds to the music clip to be played;

[0018] If yes, play the music clip to be played and the chord or single note corresponding to the triggered performance key;

[0019] If not, only the music clip to be played is played.

[0020] In some embodiments, each performance key corresponds to a chord or a single note; after the step of obtaining the music data corresponding to the piece to be played, the method for controlling the electronic musical instrument further includes:

[0021] Determining a performance order of the performance keys according to the music data and the chord information of the piece to be performed;

[0022] The display window is controlled to display performance guide information based on the performance sequence to guide the user to trigger the performance buttons according to the performance sequence.

[0023] In some embodiments, controlling the display window to display performance guide information based on the performance order includes:

[0024] The display window is controlled to display all the performance keys, and the performance key corresponding to the to-be-played music segment corresponding to the current time stamp of the music data is highlighted.

[0025] In some embodiments, controlling the display window to display performance guide information based on the performance order includes:

[0026] The performance guide information is sent to a terminal communicatively connected to the electronic musical instrument, so that a display window of the terminal displays the performance guide information.

[0027] In some embodiments, obtaining the music data corresponding to the piece to be played includes:

[0028] Obtaining preset track data corresponding to the piece to be played;

[0029] The preset audio track data is divided into a number of continuous music segments according to a preset rule to obtain the music data.

[0030] In some embodiments, the preset audio track data further includes rhythm audio track data and / or drum audio track data.

[0031] In some embodiments, dividing the preset audio track data into a plurality of continuous music segments according to a preset rule includes:

[0032] The preset audio track data is divided into a number of continuous music segments according to measures.

[0033] The present application also proposes an electronic musical instrument, which includes a memory, a processor, and a computer program stored in the memory and executable on the processor. When the computer program is executed by the processor, the steps of the above-mentioned electronic musical instrument control method are implemented.

[0034] The present application also proposes a storage medium having a computer program stored thereon. When the computer program is executed by a processor, the steps of the above-mentioned method for controlling an electronic musical instrument are implemented.

[0035] The technical solution of the control method of the electronic musical instrument of the present application is that the electronic musical instrument first determines the song to be played before playing, so as to obtain the music data corresponding to the song to be played. The music data is a number of continuous music segments obtained by dividing the preset track data containing the melody track data. When the user plays the electronic musical instrument, each time the electronic musical instrument detects that the play button is triggered, it will play the music segment to be played corresponding to the current timestamp of the music data. In this way, when the user plays the electronic musical instrument for accompaniment, the electronic musical instrument will gradually trigger the play button as the user, and play the various music segments of the music data corresponding to the current playing song in sequence, that is, it will play the melody of the current playing song in sequence. The technical solution of the present application realizes that the electronic musical instrument can follow the user's playing rhythm to emit the main melody sound of the song when playing, so that the user can clearly know whether he or she is singing accurately according to the main melody sound under the accompaniment of the electronic musical instrument, and is not likely to be out of tune, which is beneficial for the user to practice songs. BRIEF DESCRIPTION OF THE DRAWINGS

[0036] Figure 1 This is a flow chart of an embodiment of a control method for an electronic musical instrument of the present application;

[0037] Figure 2 This is a flow chart of an embodiment of a control method for an electronic musical instrument of the present application;

[0038] Figure 3 This is a flow chart of an embodiment of a control method for an electronic musical instrument of the present application;

[0039] Figure 4 This is a flow chart of an embodiment of a control method for an electronic musical instrument of the present application;

[0040] Figure 5 This is a flow chart of an embodiment of a control method for an electronic musical instrument of the present application;

[0041] Figure 6 This is a schematic diagram of the structure of an electronic device in the hardware operating environment involved in the embodiment of the present application. DETAILED DESCRIPTION

[0042] The following will be combined with the drawings in the embodiments of this application to clearly and completely describe the technical solutions in the embodiments of this application. Obviously, the embodiments described are only part of the embodiments of this application, not all of the embodiments. Based on the embodiments of this application, all other embodiments obtained by ordinary technicians in this field without making creative efforts are within the scope of protection of this application.

[0043] It should be noted that all directional indications in the embodiments of the present application (such as up, down, left, right, front, back, etc.) are only used to explain the relative position relationship, movement status, etc. between the various components under a certain specific posture (as shown in the accompanying drawings). If the specific posture changes, the directional indication will also change accordingly.

[0044] It should also be noted that when an element is referred to as being "fixed on" or "disposed on" another element, it may be directly on the other element or there may be an intermediate element. When an element is referred to as being "connected to" another element, it may be directly connected to the other element or there may be an intermediate element.

[0045] In addition, the descriptions of "first", "second", etc. in this application are for descriptive purposes only and should not be understood as indicating or implying their relative importance or implicitly indicating the number of the technical features indicated. Therefore, the features defined as "first" or "second" may explicitly or implicitly include at least one of such features. In addition, the technical solutions between the various embodiments can be combined with each other, but this must be based on the fact that they can be implemented by ordinary technicians in this field. When the combination of technical solutions is contradictory or cannot be implemented, it should be deemed that such combination of technical solutions does not exist and is not within the scope of protection required by this application.

[0046] As the pace of life quickens, people’s pursuit of musical instruments tends to be simple and easy to learn. For example, the electronic guitar has a low learning threshold and can be played by pressing buttons. There is no need for complicated fingering techniques, making it simpler and easier to play. Therefore, it has become the preferred instrument for most users. However, existing string instruments such as electronic guitars can only produce chord sounds when played, which makes it easy for users to sing out of tune or not know whether they are singing accurately when singing with the accompaniment of the electronic guitar, which is not conducive to the user’s song practice; or, some string instruments have a player that can play the main melody, but because the player plays forward continuously, the main melody played by the player cannot follow the user’s playing rhythm, requiring the user to play quickly to chase the main melody. Only very skilled users can do this, which is not conducive to most users practicing songs. The above are the shortcomings of existing string instruments such as electronic guitars.

[0047] In response to the above-mentioned problems with string instruments such as electronic guitars, the applicant of this application has proposed a control method for electronic musical instruments, which can enable the electronic musical instrument to emit the main melody of a song when playing, so that the user can clearly know whether his singing is accurate with the accompaniment of the electronic instrument, and is not prone to being out of tune, which is more conducive to the user's song practice.

[0048] The implementing subject of the control method of the electronic musical instrument of the present application can be an electronic musical instrument, or it can be an electronic device that communicates with the electronic musical instrument (for example, a tablet computer, a smart phone, etc.); in the embodiments of the present application, the technical solution of the present application is explained in detail by taking the electronic musical instrument as the implementing subject of the control method of the electronic musical instrument as an example.

[0049] The electronic musical instrument in the present application can be an electronic guitar or other stringed instruments. The electronic musical instrument has a plurality of playing keys for the user to press to play.

[0050] Reference Figure 1 In this embodiment, the control method of the electronic musical instrument includes:

[0051] Step S10: determining the music to be played.

[0052] After the electronic musical instrument is turned on, the electronic musical instrument will first determine the song to be played, and the song to be played can be a song selected by the user.

[0053] In some embodiments, the electronic musical instrument can be connected to a terminal (e.g., a smartphone, tablet computer, smartwatch, etc.) via communication (e.g., Bluetooth connection), and the terminal is installed with an electronic musical instrument app. The electronic musical instrument app has, for example, a song list display function and an online song search function, and the user can select the song they want to play through the electronic musical instrument app on the terminal. When the user selects a song, the terminal sends the song information (e.g., including the song title, song data, etc.) to the electronic musical instrument. After receiving the song information, the electronic musical instrument determines that the song is the song to be played.

[0054] In some embodiments, the user may also select a song through the electronic instrument. For example, the electronic instrument may be provided with a display screen (which may be a touch screen display or a normal display screen) and may display a song list or a song search interface on the display screen for the user to select a song. After the user selects a song, the electronic instrument may determine the song as the track to be played.

[0055] Step S20: Obtain music data corresponding to the piece to be played.

[0056] After determining the piece to be played, the electronic instrument obtains music data corresponding to the piece to be played, wherein the music data is a plurality of continuous music segments obtained by dividing the preset track data, and the preset track data includes melody track data, that is, each music segment includes a melody track segment.

[0057] In some embodiments, the electronic musical instrument may have a music database storing music data of some songs. The electronic musical instrument may directly obtain the music data corresponding to the song to be played from the music database.

[0058] In some embodiments, the song information sent by the terminal and received by the electronic instrument may include the music data of the song, and the electronic instrument extracts the music data of the song from the received song information to obtain the music data corresponding to the track to be played. Alternatively, the song information sent by the terminal and received by the electronic instrument may include a song file, and the electronic instrument extracts the song file from the received song information and performs a predetermined process (such as a partitioning process) to obtain the music data of the song, i.e., the music data corresponding to the track to be played.

[0059] In some embodiments, the electronic musical instrument can also communicate with a cloud server and download music data corresponding to the song to be played from the cloud server.

[0060] Step S30: When the play button is triggered, the music segment to be played corresponding to the current timestamp of the music data is played.

[0061] In this embodiment, the timestamps of the music data and the music track to be played are sequentially associated. When the electronic instrument detects a key trigger, it determines the music track to be played based on the timestamp of the current music data and plays it. During the user's performance, as the user continuously triggers the key, the electronic instrument plays the music tracks in sequence. That is, during the user's performance, the electronic instrument plays the melody track segments in sequence, so that when the user plays, the electronic instrument will emit the main melody of the current music track.

[0062] For example, the music data includes 30 consecutive music clips, namely music clip 1, music clip 2, music clip 3, music clip 4, music clip 5, music clip 6, ..., music clip 26, music clip 27, music clip 28, music clip 29, and music clip 30; wherein music clip 1 corresponds to time stamp A1, music clip 2 corresponds to time stamp A2, music clip 3 corresponds to time stamp A3, music clip 4 corresponds to time stamp A4, ..., music clip 28 corresponds to time stamp A28, music clip 29 corresponds to time stamp A29, and music clip 30 corresponds to time stamp A30. The time stamp intervals between any two adjacent music clips may be equal, or the time stamp intervals between any two adjacent music clips may not be equal; for example, among the various music clips in the music data, the interval between some adjacent music clips is T1, the interval between some adjacent music clips is T2, and the interval between some adjacent music clips is T3, etc.

[0063] It should be noted that in some embodiments of the present application, the timestamp may represent the number of samples. For example, a timestamp of 160 indicates 160 samples. If the sampling rate is 8000, then 1 second is divided into 1 / 8000. Converting the timestamp 160 to time (i.e., the time occupied by 160 samples) is 160*(1 / 8000) seconds, or 20 milliseconds.

[0064] In some embodiments of the present application, the timestamp may also be a time point represented by the music data. For example, the timestamps 2, 5, 8, and 11 represent the 2nd, 5th, 8th, and 11th seconds of the music data, respectively.

[0065] In some embodiments of the present application, the timestamp may also represent the playback progress of the music data. For example, the timestamps 2, 5, 8, and 11 represent 2%, 5%, 8%, and 11% of the total progress of the music data, respectively.

[0066] Furthermore, in some embodiments of the present application, the timestamp may also be represented as a progress number. For example, if the music data includes 30 consecutive music segments, the timestamps corresponding to the 30 consecutive music segments are 30 progress numbers from 0 to 29, i.e., music segment 1 corresponds to progress number 0, music segment 2 corresponds to progress number 1, music segment 3 corresponds to progress number 2, ..., music segment 29 corresponds to progress number 28, and music segment 30 corresponds to progress number 29. Of course, in other embodiments, the timestamps of the music data may also be represented in other similar ways or forms.

[0067] When the electronic instrument detects that the play button has been triggered, it determines the corresponding music segment to be played based on the current timestamp of the music data. Taking the 30 consecutive music segments included in the music data listed in the above example as an example, when the user first triggers the play button during the performance of the music to be played, the timestamp of the music data is A1, and the corresponding music segment to be played is music segment 1. At this time, the electronic instrument plays music segment 1, and the current timestamp of the music data becomes A2. When the play button is triggered again, the corresponding music segment to be played is music segment 2. At this time, the electronic instrument plays music segment 2, and the current timestamp of the music data becomes A3. And so on.

[0068] If the electronic musical instrument is played only by pressing a play button, the electronic musical instrument determines that the play button has been triggered when it detects that the play button has been pressed. If the electronic musical instrument includes a plectrum device and the electronic musical instrument is played by pressing the play button and plucking the plectrum device, the electronic musical instrument determines that the play button has been triggered when it detects that the play button has been pressed and the plectrum has been plucking.

[0069] The technical solution of the electronic musical instrument control method of this embodiment is that before playing, the electronic instrument first determines the song to be played and obtains the music data corresponding to the song to be played. The music data is a number of continuous music segments obtained by dividing the preset track data containing melody track data. When the user plays the electronic instrument, each time the electronic instrument detects that the play button has been triggered, it will play the music segment to be played corresponding to the current timestamp of the music data. In this way, as the user plays the electronic instrument to accompany the instrument, the electronic instrument will gradually trigger the play button as the user, and will play the various music segments of the music data corresponding to the current song in sequence, that is, it will play the melody of the current song in sequence. The technical solution of this embodiment enables the electronic instrument to emit the main melody sound of the song when playing. With the accompaniment of the electronic instrument, the user can clearly know whether they are singing accurately based on the main melody sound, and is less likely to be out of tune, which is beneficial for the user to practice songs.

[0070] In some embodiments, after step S20, the method for controlling an electronic musical instrument further includes: when a rewind or fast-forward operation on the playback progress is detected, adjusting the current timestamp of the music data to the timestamp corresponding to the playback progress after the rewind or fast-forward operation.

[0071] The user can also adjust the playback progress of the current performance track through the electronic instrument APP on the terminal that communicates with the electronic instrument, or through the touch display or adjustment button on the electronic instrument, to rewind or fast-forward the playback progress of the performance track. When rewinding or fast-forwarding the playback progress of the performance area, a corresponding rewind or fast-forward instruction will be generated. When the electronic instrument receives the rewind or fast-forward instruction, it confirms that a rewind or fast-forward operation has occurred. The electronic instrument will determine the playback progress after the rewind or fast-forward operation, and adjust the current timestamp of the music data to the timestamp corresponding to the playback progress after the rewind or fast-forward operation. In this way, the user can more flexibly adjust the playback progress of the current performance track according to needs, so that the user can manually adjust to the part he wants to play, thereby improving the user experience.

[0072] For example, when the current playing progress of the performance track is 50% (e.g., the corresponding timestamp is A15), when the playing progress of the performance track is rewound to 20% (e.g., the corresponding timestamp is A6), the electronic musical instrument will adjust the current timestamp of the music data from A15 to A6. At this time, if the play button is triggered, the music segment to be played corresponding to the timestamp A6 (i.e., the current timestamp) of the music data will be played. For another example, when the current playing progress of the performance track is 50% (e.g., the corresponding timestamp is A15), when the playing progress of the performance track is fast forwarded to 80% (e.g., the corresponding timestamp is A24), the electronic musical instrument will adjust the current timestamp of the music data from A15 to A24. At this time, if the play button is triggered, the music segment to be played corresponding to the timestamp A24 (i.e., the current timestamp) of the music data will be played.

[0073] In some embodiments, each performance key corresponds to a chord or a single note; the method for controlling the electronic musical instrument further includes: when the performance key is triggered, playing the sound of the chord or single note corresponding to the triggered performance key.

[0074] In this embodiment, when the electronic instrument detects a key being triggered, it also determines the chord or single note corresponding to the triggered key, and plays the sound of the determined chord or single note. Thus, when the user plays the electronic instrument, the electronic instrument simultaneously plays the corresponding music clip and the corresponding chord or single note. That is, the electronic instrument simultaneously emits the corresponding main melody and chord or single note. Compared to existing electronic instruments that only produce chords when played, this embodiment produces a combination of chords or single notes and the main melody, resulting in a better accompaniment effect when the electronic instrument is played.

[0075] In some embodiments, each music clip corresponds to a performance key; for example, the music clip may contain information about the corresponding performance key (such as a key identifier). Specifically, for example, an electronic musical instrument includes 7 performance keys, namely key 1, key 2, key 3, key 4, key 5, key 6, and key 7; the music data includes 20 consecutive music clips, namely music clip 1, music clip 2, music clip 3, ..., music clip 19, and music clip 20; if the key identifier contained in music clip 1 is 1, it means that the performance key corresponding to music clip 1 is key 1, and if the key identifier contained in music clip 2 is 7, it means that the performance key corresponding to music clip 2 is key 7.

[0076] The corresponding relationship between music clips and play keys can be set as follows: based on the music score of the song to be played (including melody, rhythm, chords, etc.), the corresponding chords or single notes in the music score of each music clip in the music data (i.e., the music data corresponding to the song to be played) are determined, and each chord or single note corresponds to a play key. Therefore, the corresponding play keys for most music clips in the music data can be obtained. Since the chords in a song are not continuous, some music clips in the music data do not have corresponding chords or single notes in the music score. For these music clips without corresponding chords or single notes in the music score, these music clips can be defaulted to correspond to a preset play key, or these music clips can be randomly matched to a corresponding play key in a random matching manner.

[0077] Of course, in other embodiments, the corresponding relationship between the music clips and the performance keys can also be set in other ways.

[0078] Reference Figure 2 In some embodiments, step S30 includes:

[0079] Step S31, when a play button is triggered, determining whether the triggered play button is the play button corresponding to the music segment to be played corresponding to the current timestamp of the music data;

[0080] Step S32: If the triggered play button is the play button corresponding to the music clip to be played, the music clip to be played is played;

[0081] Step S33: If the triggered play button is not the play button corresponding to the music segment to be played, the music segment to be played is not played.

[0082] In this embodiment, when the electronic instrument detects a play key trigger, it does not immediately play the music clip to be played corresponding to the current timestamp. Instead, it first determines whether the triggered play key is the play key corresponding to the music clip to be played corresponding to the current timestamp of the music data, thereby determining whether the user's playing is correct. If the electronic instrument determines that the triggered play key is the play key corresponding to the music clip to be played, the music clip to be played will be played. If the electronic instrument determines that the triggered play key is not the play key corresponding to the music clip to be played, the music clip to be played will not be played, and the current timestamp of the music data will remain unchanged.

[0083] The technical solution of this embodiment verifies the consistency of the triggered play key with the play key corresponding to the music clip to be played corresponding to the current timestamp to determine whether the user's playing is correct. Only when it is determined that the triggered play key is consistent with the play key corresponding to the music clip to be played, that is, when the user is determined to have played correctly, will the music clip to be played be played. If it is determined that the triggered play key is inconsistent with the play key corresponding to the music clip to be played, that is, when the user is determined to have played incorrectly, the music clip to be played will not be played. In this way, when playing an electronic musical instrument, the user can clearly know whether their playing is correct based on whether the electronic musical instrument plays the music clip to be played, that is, whether it emits the main melody, so as to correct errors in a timely manner, guide the user to play accurately, and enable the user to learn to play each piece correctly more quickly.

[0084] Reference Figure 3 This embodiment is based on the above Figure 2 In this embodiment, the step S32 includes:

[0085] Step S321: If the triggered play button is the play button corresponding to the music clip to be played, then determine whether the chord or single note corresponding to the triggered play button corresponds to the music clip to be played;

[0086] Step S322: If yes, play the music clip to be played and the chord or single note corresponding to the triggered performance key;

[0087] Step S323: If not, only play the music clip to be played.

[0088] Because among the various music clips of the music data, some of the music clips have corresponding chords or single notes in the music score, while other music clips do not have corresponding chords or single notes in the music score, that is, when the song corresponding to the music data is sung, part of the main melody is played together with the corresponding chords or single notes, and the other part of the main melody is played alone without corresponding chord or single note accompaniment.

[0089] In this embodiment, when the electronic musical instrument determines that the triggered play key is consistent with the play key corresponding to the music clip to be played, it further determines whether the chord or single note corresponding to the triggered play key corresponds to the music clip to be played.

[0090] When it is determined that the chord or single note corresponding to the triggered play button corresponds to the music clip to be played, it means that in the currently played song, the music clip to be played and the chord or single note corresponding to the triggered play button are matched and need to be played at the same time. At this time, the electronic instrument plays the music clip to be played and the chord or single note corresponding to the triggered play button at the same time, so that the sound effect of the electronic instrument is more consistent with the original sound effect of the currently played song.

[0091] When it is determined that the chord or single note corresponding to the triggered performance key does not correspond to the music clip to be played, it means that in the currently played song, the music clip to be played is played alone without chords or single notes. At this time, the electronic instrument only plays the music clip to be played, and does not play the chord or single note corresponding to the triggered performance key, so as to avoid the chord or single note corresponding to the triggered performance key interfering with the sound effect of the music clip to be played, so that the sound effect played by the electronic instrument is more consistent with the original sound effect of the currently played song.

[0092] The technical solution of this embodiment is to further judge whether the chord or single note corresponding to the triggered play key corresponds to the music clip to be played when it is determined that the triggered play key is consistent with the play key corresponding to the music clip to be played, so as to determine whether the music clip to be played in the currently played song needs to be matched with the chord or single note corresponding to the triggered play key; and when it is determined that the music clip to be played needs to be matched with the chord or single note corresponding to the triggered play key, play the music clip to be played and the chord or single note corresponding to the triggered play key at the same time, and when it is determined that the music clip to be played does not need to be matched with the chord or single note corresponding to the triggered play key, only play the music clip to be played. In this way, the electronic musical instrument only plays the corresponding chord or single note in the part of the currently played song with chords or single notes, and does not play the chord or single note in the part of the currently played song without chords or single notes, so that the sound effect played by the electronic musical instrument is more consistent with the original sound effect of the currently played song.

[0093] Reference Figure 4 In some embodiments, after step S20, the method for controlling an electronic musical instrument further includes:

[0094] Step S40, determining the order of playing keys according to the music data and the chord information of the song to be played;

[0095] Step S50: Control the display window to display performance guidance information based on the performance sequence to guide the user to trigger the performance buttons according to the performance sequence.

[0096] In this embodiment, the music score of the song to be played contains information such as the main melody, chords, and rhythm. After the electronic musical instrument obtains the music data corresponding to the song to be played, it can determine the correspondence between the chords or single notes in the song to be played and the music segments of the music data based on the music data and the chord information in the music score of the song to be played. Each chord or single note corresponds to a performance key. Therefore, based on the correspondence between the chords or single notes in the song to be played and the music segments of the music data, the performance keys corresponding to each music segment with the corresponding chord or single note can be determined, thereby preliminarily obtaining the performance order of each performance key; then, the performance keys corresponding to the remaining music segments (i.e., each music segment without the corresponding chord or single note) are determined. The remaining music segments can be assigned to the same preset performance key, or each remaining music segment can be randomly assigned to a performance key as its corresponding performance key; of course, other methods can also be used to determine the performance keys corresponding to the remaining music segments.

[0097] For example, the electronic musical instrument includes 7 playing buttons, namely button 1, button 2, button 3, button 4, button 5, button 6 and button 7, among which button 1 corresponds to chord 1, button 2 corresponds to chord 2, button 3 corresponds to chord 3, button 4 corresponds to chord 4, button 5 corresponds to chord 5, button 6 corresponds to chord 6, and button 7 corresponds to chord 7; the music data corresponding to the piece to be played includes 15 consecutive music clips, namely music clip 1, music clip 2, music clip 3, music clip 4, music clip 5, music clip 6, music clip 7, music clip 8, music clip 9, music clip 10, music clip 11, music clip 12, music clip 13, music clip 14 and music clip 15.

[0098] Among them, the music clip 2, music clip 3, music clip 4, music clip 5, music clip 7, music clip 8, music clip 9, music clip 11, music clip 12, music clip 13, music clip 15, the corresponding chords are chord 3, chord 6, chord 2, chord 4, chord 7, chord 2, chord 5, chord 4, chord 1, chord 7, chord 6, then the music clip 2, music clip 3, music clip 4, music clip 5, music clip 7, music clip 8, music clip 9, music clip 11, music clip 12, music clip 13, music clip 15, the corresponding playing keys are key 3, key 4, key 5, key 6, key 7 ... Key 6, Key 2, Key 4, Key 7, Key 2, Key 5, Key 4, Key 1, Key 7, Key 6; while music clip 1, music clip 6, music clip 10, and music clip 14 have no corresponding chords, music clip 1, music clip 6, music clip 10, and music clip 14 are all associated with preset performance keys (such as Key 1); then, based on the music data and the chord information of the piece to be played, the performance order of the performance keys is determined to be: Key 1, Key 3, Key 6, Key 2, Key 4, Key 1, Key 7, Key 2, Key 5, Key 1, Key 4, Key 1, Key 7, Key 1, Key 6.

[0099] After the electronic musical instrument determines the playing order, it controls a display window to display playing guidance information based on the playing order, thereby guiding the user to trigger the playing buttons according to the playing order. The user can play according to the playing guidance information displayed in the display window, enabling even novice users to play accurately. The display window can be a display screen area of a terminal communicating with the electronic musical instrument, or the electronic musical instrument can be provided with a display screen, and the display window is the display screen area of the electronic musical instrument.

[0100] The technical solution of this embodiment, after obtaining the music data corresponding to the song to be played, determines the playing order of the playing keys according to the music data and the chord information of the song to be played, and controls the display window to display the playing guidance information based on the playing order to guide the user to trigger the playing keys according to the playing order, so that both novice users and users without relevant music theory knowledge can accurately use electronic musical instruments to play the songs according to the playing guidance information in the display window. The use threshold is extremely low and it can be suitable for various users.

[0101] In some embodiments, in the above-mentioned step S50, the step of controlling the display window to display the performance guidance information based on the performance order may include: controlling the display window to display all the performance keys, and highlighting the performance keys corresponding to the music segment to be played corresponding to the current timestamp of the music data.

[0102] The play button corresponding to the music clip to be played is the next play button that the user needs to press to trigger. The play buttons can be displayed on the display window in a layout consistent with the play button layout on the electronic instrument. The layout of the play buttons displayed in the display window can be mirrored to the layout of the play buttons on the electronic instrument. In this way, when the user plays the electronic instrument facing the display window (such as the display screen of a mobile phone or tablet), the play buttons can be highlighted in the display window to quickly determine the play button to be played, so that even novice users can complete the playing of the song smoothly.

[0103] Of course, in other embodiments, other solutions can be used to control the display window to display the performance guidance information based on the performance order, and there is no limitation on this, as long as it can provide guidance to the user's performance.

[0104] In some embodiments, an electronic musical instrument includes a plectrum device comprising at least one plectrum. The electronic musical instrument is played by pressing a play key and plucking the plectrum. The plucking speed of the plectrum is related to the speed of a chord or the weight of a note played by the electronic musical instrument. The method for controlling the electronic musical instrument may further include displaying information about the plucking speed of the plectrum on a display window.

[0105] For example, green, yellow, and red are used to represent fast plucking, normal speed plucking, and slow speed plucking, respectively; the information on the speed of the plucking speed of the pick can be displayed on the display window by controlling the performance key corresponding to the music clip to be played to be highlighted in the corresponding color (such as green, yellow, and red) according to the speed of the chords or the weight of the notes in the music score of the currently played piece; the information on the speed of the plucking speed of the plucking can also be displayed on the display window by displaying "fast", "medium", or "slow" on the real window; the information on the speed of the plucking speed of the plucking can also be displayed on the display window by controlling the display window to flash at a frequency corresponding to the speed of the plucking, with a fast flashing frequency indicating fast plucking, a normal flashing frequency indicating normal speed plucking, and a slow flashing frequency indicating slow plucking. Of course, in other embodiments, the information on the speed of the plucking speed of the plucking can also be displayed on the display window in other ways.

[0106] In this embodiment, by displaying the information of the plucking speed of the pick on the display window, the user can determine the plucking speed of the pick based on the information of the plucking speed of the pick displayed in the display window, and then pluck the pick at the corresponding speed, so that the chords or notes played are more consistent with the original sound of the currently played song.

[0107] In some embodiments, the method for controlling an electronic musical instrument may further include displaying the lyrics of the song to be played on the display window, which may be the entire lyrics or the lyrics corresponding to the music segment to be played. This makes it more convenient for the user to practice songs while using the electronic musical instrument for accompaniment.

[0108] In some embodiments, in the above step S50, the step of controlling the display window to display the performance guide information based on the performance order may include: sending the performance guide information to a terminal connected to the electronic musical instrument so that the display window of the terminal displays the performance guide information.

[0109] When the electronic musical instrument is powered on and used, it can communicate with a terminal (a mobile phone, tablet computer, smart watch, smart glasses, etc.), for example, via Bluetooth connection, data cable connection, or other wireless connection. After determining the playing order, the electronic musical instrument sends playing instruction information to the terminal to which it is communicating, so that the playing instruction information is displayed in a display window of the terminal (such as the display screen of a mobile phone or the display interface of an electronic musical instrument app on the mobile phone). In this way, it is more convenient for the user to view the playing instruction information in the display window.

[0110] In some embodiments, the electronic instrument is provided with indicator lights corresponding to the play keys. After step S40, the method for controlling the electronic instrument may further include lighting up the indicator lights corresponding to the play keys corresponding to the music clip to be played. In this way, the user can accurately and smoothly play the music on the electronic instrument by following the guidance of the indicator lights without looking at the display window.

[0111] Reference Figure 5 In some embodiments, step S20 includes:

[0112] Step S21, obtaining preset track data corresponding to the song to be played;

[0113] Step S22: Divide the preset audio track data into a number of continuous music segments according to a preset rule to obtain music data.

[0114] The electronic instrument may include a music database that stores song data (including preset track data). The electronic instrument can directly retrieve the preset track data corresponding to the song to be played from the music database. Alternatively, the electronic instrument may receive song information sent by a terminal that includes the preset track data for the song, and the electronic instrument extracts the preset track data from the received song information. The electronic instrument may also communicate with a cloud server to download the preset track data corresponding to the song to be played from the cloud server. The preset track data includes melody track data.

[0115] The electronic musical instrument is preset with preset rules for dividing preset audio track data. After obtaining the preset audio track data corresponding to the song to be played, the electronic musical instrument divides the preset audio track data into several continuous music segments according to the preset rules, thereby obtaining the music data corresponding to the song to be played.

[0116] In some embodiments, dividing the preset audio track data into a number of continuous music segments according to a preset rule includes: dividing the preset audio track data into a number of continuous music segments according to measures.

[0117] In the musical score of a piece of music, it can be divided into rhythms such as 4 / 4, 3 / 4, and 6 / 8, and there will be strong beats and weak beats in each measure (the unit of beat). For example, in a musical score with a 4 / 4 beat rhythm, the form of the beats in a measure is: strong / weak / secondary strong / weak; for another example, in a musical score with a 3 / 4 beat rhythm, the form of the beats in a measure is: strong / weak / weak; for another example, in a musical score with a 6 / 8 beat rhythm, the form of the beats in a measure is: strong / weak / weak / secondary strong / weak / weak. Based on the above music theory knowledge, it can be known that there will be a strong beat in each measure; therefore, the preset track data between the strong beat and the strong beat or the secondary strong beat in the musical score can be cut to obtain several continuous music clips.

[0118] The solution of this embodiment is to obtain several continuous music clips by cutting and dividing the preset audio track data according to measures. In this way, the melody of a single music clip is relatively complete, and even if the user's playing is not smooth, the overall sound will not appear abrupt.

[0119] Of course, in other embodiments, other rules may be used to switch and divide the preset audio track data, for example, the preset audio track data may be cut and divided according to preset time intervals (eg, 2 seconds, 3 seconds).

[0120] In some embodiments, the preset track data may also include rhythm track data and / or drum track data. That is, the music segment of the music data corresponding to the song to be played may include, in addition to the melody track segment, a rhythm track segment and / or a drum track segment. This allows the electronic instrument to produce not only the main melody but also the corresponding rhythm sounds and drum beats. This enriches the sound effects and provides better accompaniment, making it easier for users to practice songs. Furthermore, in some embodiments, the preset track data may also include chord track data, meaning that the music segment of the music data may include a melody track segment and a corresponding chord music segment.

[0121] In some embodiments, the electronic instrument can switch modes, including chord mode and main melody mode. The steps of each of the above embodiments can be performed in the main melody mode of the electronic instrument. When in chord mode, the electronic instrument can play only chords or single notes of the keys played, just like a regular electronic guitar. In this way, the electronic instrument has at least multiple modes, and different users can choose the corresponding mode to play according to their actual needs, thereby improving the user experience.

[0122] Among them, the electronic musical instrument switching mode method can be to select to switch to the main melody mode or exit the main melody mode on the electronic musical instrument APP of the terminal that is connected to the electronic musical instrument (such as a mobile phone, tablet computer, etc. that is connected to the electronic musical instrument by Bluetooth); or the electronic musical instrument automatically switches to the main melody mode when it is determined that the communication connection with the terminal is established, and exits the main melody mode to return to the chord mode when it is determined that the terminal is disconnected: the mode switching can also be performed through the switching button or switching switch control on the electronic musical instrument.

[0123] It should be noted that all the above-mentioned embodiments of the control method for an electronic musical instrument of the present application can be arbitrarily combined or combined to form new embodiments, provided that there are no contradictions or conflicts between them.

[0124] This application also proposes an electronic musical instrument, see Figure 6 , Figure 6 It is a structural diagram of an electronic musical instrument in a hardware operating environment involved in an embodiment of the present application.

[0125] like Figure 6 As shown, the electronic musical instrument of this embodiment may include: a processor 1001 (such as a CPU), a control IC, a network interface 1004, a user interface 1003, a memory 1005 and a communication bus 1002. Among them, the communication bus 1002 is used to realize the connection and communication between these components. The user interface 1003 may include a display screen (Display), an input unit, such as a keyboard (Keyboard), and the optional user interface 1003 may also include a standard wired interface and a wireless interface. The network interface 1004 may optionally include a standard wired interface and a wireless interface (such as a WI-FI interface). The memory 1005 may be a high-speed RAM memory or a stable memory (non-volatile memory), such as a disk memory. The memory 1005 may optionally be a storage device independent of the aforementioned processor 1001.

[0126] The controller may include a plurality of sub-controllers, such as the control unit and contact IC mentioned above.

[0127] Those skilled in the art will understand that Figure 6 The structure of the electronic musical instrument shown in the figure does not constitute a limitation to the electronic musical instrument, and may include more or fewer components than shown in the figure, or combine certain components, or arrange the components differently.

[0128] like Figure 6 As shown, the memory 1005 as a computer storage medium may include an operating system, a network communication module, a user interface module and a computer program.

[0129] exist Figure 6 In the electronic musical instrument shown, the network interface 1004 is mainly used to connect to the background server and communicate data with the background server; the user interface 1003 is mainly used to connect to the client (user end) and communicate data with the client; and the processor 1001 can be used to call the computer program stored in the memory 1005. When the computer program is called and executed by the processor 1001, the steps of the above-mentioned electronic musical instrument control method are implemented.

[0130] Based on the computer program proposed in the aforementioned embodiment, the present application further proposes a storage medium, which stores the computer program. When the computer program is executed by a controller, the control method of the electronic musical instrument described in the aforementioned embodiment is implemented.

[0131] The electronic musical instrument and storage medium of the present application can implement the steps of the above-mentioned electronic musical instrument control method, and therefore have at least all the beneficial effects brought about by the technical solutions of the above-mentioned electronic musical instrument control method embodiments, which will not be described one by one here.

[0132] In the several embodiments provided in this application, it should be understood that the disclosed methods and devices can be implemented in other ways. For example, the device embodiments described above are merely schematic. For example, the division of the modules is merely a logical function division. In actual implementation, there may be other division methods, such as multiple modules or components can be combined or integrated into another device, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be an indirect coupling or communication connection of devices or modules through some interfaces, which can be electrical, mechanical or other forms.

[0133] The modules described as separate components may or may not be physically separate, and the components shown as modules may or may not be physical modules, that is, they may be located in one place or distributed across multiple network modules. Some or all of the modules may be selected to achieve the purpose of the present embodiment according to actual needs.

[0134] In addition, the functional modules in the various embodiments of the present application may be integrated into a processing module, or each module may exist physically separately, or two or more modules may be integrated into a single module. The above-mentioned integrated modules may be implemented in the form of hardware or software functional modules.

[0135] If the integrated module is implemented in the form of a software functional module and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application is essentially or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions for enabling a computer device (which can be a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: various media that can store program codes, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk.

[0136] The above description is only a partial or preferred embodiment of the present application. Neither the text nor the drawings can limit the scope of protection of the present application. Any equivalent structural transformation made by using the contents of the present application specification and drawings under the overall concept of the present application, or direct / indirect application in other related technical fields, is included in the scope of protection of the present application.

Claims

1. A method for controlling an electronic musical instrument, characterized in that: The electronic musical instrument has a plurality of playing keys, and the control method of the electronic musical instrument includes: Determine the repertoire to be performed; Acquiring music data corresponding to the piece to be played, the music data being a plurality of continuous music segments obtained by dividing preset track data, the preset track data including melody track data; When the play button is triggered, the music segment to be played corresponding to the current timestamp of the music data is played.

2. The method for controlling an electronic musical instrument according to claim 1, wherein: Each playing key corresponds to a chord or a single note, and the control method of the electronic musical instrument further includes: When the play button is triggered, the sound of the chord or single note corresponding to the triggered play button is played; And / or, after the step of obtaining the music data corresponding to the piece to be played, the method for controlling the electronic musical instrument further includes: When a rewind or fast-forward operation on the playing progress is detected, the current timestamp of the music data is adjusted to the timestamp corresponding to the playing progress after the rewind or fast-forward operation.

3. The control method of an electronic musical instrument according to claim 1, wherein: Each music clip corresponds to a play button; when the play button is triggered, the music clip to be played corresponding to the current timestamp of the music data is played, including: When the play button is triggered, determining whether the triggered play button is the play button corresponding to the music segment to be played corresponding to the current timestamp of the music data; If the triggered play button is the play button corresponding to the music clip to be played, the music clip to be played is played; If the triggered play button is not the play button corresponding to the music segment to be played, the music segment to be played will not be played.

4. The method for controlling an electronic musical instrument according to claim 3, wherein: Each play button corresponds to a chord or a single note; if the triggered play button is the play button corresponding to the music clip to be played, the music clip to be played is played, including: If the triggered play button is the play button corresponding to the music clip to be played, determining whether the chord or single note corresponding to the triggered play button corresponds to the music clip to be played; If so, play the music clip to be played and the chord or single note corresponding to the triggered performance key; If not, only the music clip to be played is played.

5. The method for controlling an electronic musical instrument according to any one of claims 1 to 4, wherein: Each playing button corresponds to a chord or a single note; after the step of obtaining the music data corresponding to the piece to be played, the control method of the electronic musical instrument further includes: Determining a performance order of the performance keys according to the music data and the chord information of the piece to be performed; The display window is controlled to display performance guide information based on the performance sequence to guide the user to trigger the performance buttons according to the performance sequence.

6. The method for controlling an electronic musical instrument according to claim 5, wherein: The controlling the display window to display the performance guide information based on the performance sequence includes: Controlling the display window to display all the performance keys, and highlighting the performance key corresponding to the to-be-played music segment corresponding to the current time stamp of the music data; And / or, controlling the display window to display the performance guide information based on the performance sequence includes: The performance guide information is sent to a terminal communicatively connected to the electronic musical instrument, so that a display window of the terminal displays the performance guide information.

7. The method for controlling an electronic musical instrument according to any one of claims 1 to 4, wherein: The step of obtaining music data corresponding to the piece to be played includes: Obtaining preset track data corresponding to the piece to be played; Dividing the preset audio track data into a plurality of continuous music segments according to a preset rule to obtain the music data; and / or, The preset audio track data also includes rhythm audio track data and / or drum audio track data.

8. The method for controlling an electronic musical instrument according to claim 7, wherein: The step of dividing the preset audio track data into a plurality of continuous music segments according to a preset rule includes: The preset audio track data is divided into a number of continuous music segments according to measures.

9. An electronic musical instrument, characterized in that The electronic musical instrument includes a memory, a processor, and a computer program stored in the memory and executable on the processor. When the computer program is executed by the processor, the steps of the method for controlling an electronic musical instrument according to any one of claims 1 to 8 are implemented.

10. A storage medium, characterized in that: The storage medium stores a computer program, which, when executed by a processor, implements the steps of the method for controlling an electronic musical instrument according to any one of claims 1 to 8.