A method for generating drum rhythm
By associating the percussion icon with the instrument timbre and realizing the timbre output of the icon click event, the problem of loud sound and high price of the drum kit is solved, and an economical and practical method of generating and practicing drum beat rhythm is provided. The user can customize the position and color of the icon. , achieving the convenience and low-noise effect of practicing at home.
Patent Information
- Application Number
- CN202110754265.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-07-02
- Publication Date
- 2024-09-03
- Estimated Expiration
- 2041-07-02
AI Technical Summary
Drums are noisy when played and practiced, are easily disturbing, and are expensive. It is difficult for the existing technology to provide an economical and practical solution for generating and practicing drumming rhythms.
By associating the percussion icon with the instrument timbre, monitoring and playing the corresponding audio file, the icon click event and timbre output are realized, and the recording function is supported. The user can customize the icon position and color through the graphical user interface, count the click frequency for icon management, and provide Icon selection and clearing functions.
Users can practice drumming rhythms without purchasing a drum kit, and the sound volume can be adjusted to avoid disturbing people, achieving an economical and practical drumming practice and performance experience.
Smart Images

Figure CN113539212B
Abstract
Description
Technical Field
[0001] The invention belongs to the technical field of music score playing, and in particular relates to a method for generating drum beat rhythm. Background Art
[0002] Drum set, also known as jazz drum, is a very important percussion instrument in a jazz band. It is usually composed of a foot-operated bass drum, a snare drum, two or more tom-toms, one or two cymbals, a rhythm cymbal and a hi-hat with a pedal. Sometimes, some cowbells, wooden fish, maracas, triangles, etc. are added for the needs of the performance. On this basis, additional percussion instruments can be added or removed at any time according to the needs of the performance. The drummer strikes each part with a drumstick to make it sound. It can be played with other instruments or as a solo. Drum set is expensive and makes a loud noise during practice, which will disturb people nearby. Summary of the invention
[0003] In order to solve the above technical problems, the present invention provides a method for generating a drum rhythm, the method comprising the following steps:
[0004] Associate percussion icons with instrument sounds;
[0005] Listen for music insertion events. When a music event is detected, open and insert the local audio file.
[0006] Monitor strike events, and when any strike event is monitored, play the instrument timbre and / or audio file associated with any strike icon;
[0007] Monitor recording events. When any recording event is detected, the audio played by the current audio file and / or the instrument sound produced by tapping the icon will be recorded.
[0008] The strike event includes a strike event on a strike icon and / or a strike event on audio.
[0009] Furthermore, the timbres of musical instruments include bass drum, snare drum, snare drum rim, hi-hat closed, hi-hat open, left cymbal, right cymbal, high tom, middle tom, low tom, triangle, timpani, claps, shakers, string bells, clappers, wooden fish, tambourine, bass drum, bass drum rim, snare cymbals, bass cymbals, gong, djembe bass, djembe open, djembe closed, and djembe treble.
[0010] Furthermore, the method further comprises the following steps:
[0011] Identify the terminal device type. If the terminal device type is a PC, identify the icon clicked by the user based on the user's keyboard or mouse operation.
[0012] When the terminal device type is a mobile phone or a tablet, the icon clicked by the user is identified according to the user's touch screen operation on the display screen or the key operation on the terminal.
[0013] Furthermore, the format type of the music event is an audio format or a MIDI format; the instrument timbre includes a system timbre and / or a built-in timbre, and the method can simultaneously play timbre in no more than 16 audio tracks.
[0014] Furthermore, the method also includes an icon position preset step, defining a number of coordinate areas, defining the position coordinates of each strike icon, and associating the coordinate area with the position coordinates. The definitions of the coordinate area and the position coordinates include random definition, definition based on expert experience, or definition based on artificial intelligence.
[0015] Furthermore, the method also includes the step of generating a graphical user interface, wherein the graphical user interface includes at least one rhythm beat icon area, and the area is configured with a plurality of beat icons.
[0016] Furthermore, the icon position preset step is: counting the frequency of each position coordinate being clicked and arranging them in order, counting the frequency of each strike icon being clicked and arranging them in order, and associating position coordinates with the same ranking with the strike icon.
[0017] Furthermore, the icon position preset steps are:
[0018] The number of all strike icons associated with the coordinate area A is counted through big data, and the strike icon with the largest number of counts is associated with the coordinate area A.
[0019] Furthermore, the icon position preset step also includes:
[0020] The total amount of all strike icons associated with each coordinate area is counted through big data and arranged in descending order. The top X coordinate areas are regarded as popular coordinate areas, and the other coordinate areas are regarded as non-popular coordinate areas.
[0021] Check whether the strike icon removed by the user is located in the hot coordinate area. If so, determine whether the user sends a request to associate a strike icon with a blank hot coordinate within P seconds. If sent, operate according to the user's instructions. If not sent, associate the strike icon in the coordinate area ranked X+1 with the blank hot coordinate area, and associate the strike icon removed by the user with the coordinate area ranked X+1.
[0022] Furthermore, the method also includes the step of preset color of the strike icon:
[0023] A plurality of strike icon libraries are established based on different timbres, each of which is provided with at least two strike icons of different depths of color. The number of times all the strike icons in a certain drum rhythm are struck is counted and arranged in descending order, and the strike icons associated with the coordinate area are divided into at least two groups according to the number of times they are struck, and the strike icons in different groups have different depths of color.
[0024] Furthermore, the method also includes the step of changing the color gradient of the striking icon:
[0025] Multiple strike icon libraries are established based on different timbres, each of which is provided with at least two strike icons of different depths and colors, and strike events are monitored. Each time a strike event is monitored, the strike icon associated with the corresponding coordinate area is replaced with a strike icon of a darker or lighter color depth.
[0026] Furthermore, the method also includes a strike icon clearing step: counting the number of clicks on all strike icons corresponding to a certain drum rhythm as a strike count threshold, monitoring the number of strikes on each strike icon by the user, and when the number of strikes on any strike icon by the user reaches the strike count threshold, the strike icon is no longer associated with the coordinate area.
[0027] Furthermore, the method further comprises a strike icon selection step: counting the number of times each strike icon is struck in any drum beat rhythm, associating the strike icons whose number of strikes is greater than or equal to 1 with the coordinate area, and the method of counting the number of times each strike icon is struck is one of the following two methods;
[0028] (1) receiving an input request sent by a user, displaying all the striking icons and the numeric input boxes corresponding to the striking icons on a graphical user interface, receiving the numbers input by the user in the numeric input boxes, and obtaining the number of times each striking icon has been struck;
[0029] (2) Receive a selection request sent by the user, display all the strike icons on the graphical user interface, and count the number of times the user clicks on each strike icon, that is, the number of times each strike icon is hit.
[0030] Furthermore, the graphical user interface includes at least two rhythm strike icon areas, and receives user instructions to configure each strike icon to different rhythm strike icon areas.
[0031] The method provided by the present invention associates the striking icons with the timbre of the musical instrument. When the association is needed, the corresponding timbre can be emitted by directly clicking on each striking icon. The user can practice without purchasing a drum set, and the volume of the sound can be adjusted to avoid disturbing others, which is economical and practical. BRIEF DESCRIPTION OF THE DRAWINGS
[0032] Figure 1 It is a schematic diagram of the attack icon structure;
[0033] Figure 2 It is the interface for selecting musical instrument sounds;
[0034] Figure 3 is a flow chart of the method of Example 1;
[0035] Figure 4 is a flow chart of the method of Example 2;
[0036] Figure 5 Schematic diagram of the association method of Example 3;
[0037] Figure 6 is a schematic diagram of the association method of Example 4;
[0038] Figure 7 A schematic diagram of the icon position preset step of Example 5;
[0039] Figure 8 It is a schematic diagram of a strike icon displayed on a graphical user interface and a digital input box corresponding to the strike icon. DETAILED DESCRIPTION
[0040] In some embodiments, embodiment 1 of the present invention provides a method for generating a drum rhythm, such as Figure 3 As shown, the method comprises the following steps:
[0041] Associate percussion icons with instrument sounds;
[0042] Listen for music insertion events. When a music event is detected, open and insert the local audio file.
[0043] Monitor strike events, and when any strike event is monitored, play the instrument timbre and / or audio file associated with any strike icon;
[0044] Monitor recording events. When any recording event is monitored, the audio played by the current audio file and / or the instrument sound produced by tapping the icon will be recorded.
[0045] The format types of music events include any of the following: audio format, Midi format, MP3 (Moving Picture Experts Audio Layer 3), WAV (Waveform Audio File), ogg (oggVorbis); MIDI format MIDI files are binary files, and such files generally have the following basic structure: file header + data description The file header generally includes the file type, and the instrument timbre includes system timbre and / or built-in timbre, and can play timbre in up to 16 tracks at the same time;
[0046] Among them, each time the user clicks the strike icon, it is a strike event, such as Figure 1As shown, the strike icon is for users to click, and can be of any shape and color. Text, symbols, etc. can also be added to the icon to facilitate user identification, such as Figure 2 As shown, the musical instrument timbres include bass drum, snare drum, snare drum edge, hi-hat closed, hi-hat open, left cymbal, right cymbal, high tom tom, middle tom tom, low tom tom, triangle, timpani, clapping, shaker, string bells, rattles, wooden fish, tambourine, bass drum, bass drum edge, snare cymbal, bass cymbal, gong, djembe bass, djembe open, djembe closed, and djembe treble. Associating the strike icon with the musical instrument timbre means associating different strike icons with different musical instrument timbres. For example, after associating the strike icon marked with a snare drum with the timbre of the snare drum, when the strike icon of the snare drum is monitored to be clicked (strike event), the timbre of the snare drum can be emitted. Each time the user opens and plays a soundtrack file, it is a soundtrack event. The soundtrack file The components are generally the timbre of other musical instruments. By playing them together with the timbre of the musical instrument corresponding to the striking icon, the technical effect of playing the drum set and other musical instruments together is achieved. Each time the user clicks on the recording icon, it is recorded as a recording event. Through recording, the user can go back to listen to the music score he has practiced and check the results of the practice. The method provided by the present invention also includes the step of editing and expanding the timbre, which can realize more music composition editing functions. The user can change the timbre that needs to be struck on the desktop by himself, match it with the inserted accompaniment, and make new accompaniment audio through the playback and recording function of the software. It supports 128 timbre extension editing of Windows computers. Select the timbre that can be supported. Click the play button to refer to whether the current timbre is the timbre you want to select.
[0047] The audio format is the format of the audio file uploaded by the user; the system timbre is the 128 built-in timbre of the Windows system, and the system timbre is played by calling the method; the built-in timbre is a method implemented by software developers to adapt to more timbre implementations, so that the software can play some timbre added by the developer by calling the built-in timbre. This timbre may be included in the 128 timbre of the system, but may be slightly different from the timbre of the system, and custom timbre can be played; the timbre of 16 audio tracks in the system is reset through this method, and the audio supports up to 16 audio tracks to be played simultaneously.
[0048] In certain embodiments, such as Figure 4As shown, the method also includes an icon position preset step, defining a plurality of coordinate areas, defining the position coordinates of each strike icon, associating the coordinate area with the position coordinates, the definitions of the coordinate area and the position coordinates respectively include random definition, definition based on expert experience or definition based on artificial intelligence, associating the coordinate area with the position coordinates means displaying a certain strike icon in a certain coordinate area, all coordinate areas are located on the display screen, the icon position preset step is used to initialize the position of each strike icon, the user can freely adjust according to personal habits, and multiple modes can be set according to different user terminals. For example, when the identified terminal device type is a PC terminal, then based on According to the user's operation on the keyboard or mouse, the icon hit by the user is identified; when the terminal device type is a mobile phone or a tablet, the icon hit by the user is identified according to the user's touch screen operation on the display screen or the key operation on the terminal. Random definition refers to randomly associating each hit icon with each coordinate area, that is, each hit icon is randomly displayed on each coordinate area of the display screen. Definition based on expert experience refers to displaying each hit icon on each coordinate area of the display screen according to a certain rule based on expert experience. Definition based on artificial intelligence refers to definition through big data. "Big data" refers to a huge data set collected from many sources in multiple forms, often in real time. These data can be obtained from social networks, e-commerce websites, customer visit records, and many other sources. By counting the frequency of use of each musical instrument in the above data and the setting rules of each icon position, the rules of coordinate area and position coordinates are obtained, and each hit icon is displayed on each coordinate area of the display screen according to a certain rule.
[0049] In some embodiments, the icon position preset step is: counting the frequency of each position coordinate being clicked and arranging them in order, counting the frequency of each strike icon being clicked and arranging them in order, and associating the position coordinates with the same ranking with the strike icon; Figure 5 As shown, when the user uses the keyboard to operate, the coordinate area can be set to be the same as the key pattern on the keyboard. Assuming that the "F" key on the keyboard is clicked most frequently, such as the "snare drum" in the drum set is clicked most frequently, the strike icon of the "snare drum" is associated with the coordinate area corresponding to the "F" key. Assuming that the "J" key is clicked second frequently, and the "tambourine" in the drum set is clicked second frequently, the strike icon of the "tambourine" is set to be associated with the coordinate area corresponding to the "J" key. In this way, the strike icon with a high click rate can be set at the position where the hand is accustomed to clicking, which is easy to operate.
[0050] In some embodiments, the icon position preset step is: using big data to count the number of all strike icons associated with coordinate area A, and associating the strike icon with the largest number of counts with coordinate area A; in this example, through big data statistics, the strike icon corresponding to each coordinate area is associated with the coordinate area, and the icon position is preset according to the habits of most people, such as Figure 6 As shown, according to big data statistics, a certain coordinate area is associated with the "snare drum" strike icon the most (100 times), so the "snare drum" strike icon is preset to this coordinate area, which conforms to the usage habits of most people, thereby facilitating the use of new users. If users feel uncomfortable with certain positions, they can customize and modify them according to their own habits.
[0051] In some embodiments, the icon position preset step further includes:
[0052] The total amount of all strike icons associated with each coordinate area is counted through big data and arranged in descending order. The top X coordinate areas are regarded as popular coordinate areas, and the other coordinate areas are regarded as non-popular coordinate areas.
[0053] Check whether the strike icon removed by the user is located in the hot coordinate area. If so, determine whether the user sends a request to associate a strike icon with a blank hot coordinate within P seconds. If sent, operate according to the user's instructions. If not sent, associate the strike icon in the coordinate area ranked X+1 with the blank hot coordinate area, and associate the strike icon removed by the user with the coordinate area ranked X+1.
[0054] In this example, the popular coordinate areas and non-popular coordinate areas are counted through big data, such as Figure 7 As shown, if the positions of the strike icons 1-12 are all coordinate areas, the number itself is the total number of all strike icons associated with the coordinate area, assuming that X is 4, then the coordinate area corresponding to the numbers 9-12 is the hot area, as shown in B1, when the user removes the strike icon 10 from the current coordinate area, it is determined whether the user has moved other strike icons to the coordinate area, if not, as shown in B2, the strike icon (strike icon 8) associated with the coordinate area ranked 5 (i.e., the coordinate area corresponding to the number 8) is associated with the coordinate area to avoid wasting the hot area.
[0055] In some embodiments, the method further comprises the step of:
[0056] A plurality of strike icon libraries are established based on different timbres, each of which is provided with at least two strike icons of different depths of color. The number of times all the strike icons in a certain drum rhythm are struck is counted and arranged in descending order, and the strike icons associated with the coordinate area are divided into at least two groups according to the number of times they are struck, and the strike icons in different groups have different depths of color.
[0057] Among them, Figure 1 As shown, assuming that in a certain drum rhythm, the hi-hat closed, high tom and timpani are each clicked a total of once, their colors are the lightest, while the bass drum, hi-hat open, low tom and claps are each clicked a total of twice, and their colors are slightly darker, while the snare drum, snare drum edge, shaker and string bells are each clicked a total of three times, and their colors are the darkest. During the striking process, the color of each strike icon does not change. This example divides the strike icons into multiple groups by setting the strike icon color preset step. The strike icons in different groups have different color shades, that is, the number of times a strike icon is used can be marked by the different color shades to distinguish them, so that users can find the corresponding strike icon more quickly.
[0058] In some embodiments, the method further comprises the step of:
[0059] Multiple strike icon libraries are established based on different timbres, each of which is provided with at least two strike icons of different depths and colors, and strike events are monitored. Each time a strike event is monitored, the strike icon associated with the corresponding coordinate area is replaced with a strike icon of a darker or lighter color depth.
[0060] like Figure 1 As shown, assuming that in practice, the hi-hat closed, high tom and timpani are clicked once, their colors are the lightest, while the bass drum, hi-hat open, low tom and claps are clicked twice and their colors are slightly darker, while the snare drum, snare drum edge, shaker and string bells are clicked three times and their colors are the darkest. This example can prompt the user which strike icons are clicked more times and which strike icons are clicked less times by setting the color gradient steps of the strike icons, thereby increasing the fun. For example, when the "snare drum" strike icon is not clicked, it has the lightest color. When it is clicked once, the color is darker, and when it is clicked again, it is even darker. During the striking process, the color of each strike icon changes with the number of clicks.
[0061] In some embodiments, the method further includes a strike icon selection step: counting the number of times each strike icon is struck in any drum beat rhythm, associating strike icons having a number of strikes greater than or equal to 1 with the coordinate area, and the method for counting the number of times each strike icon is struck is one of the following two methods;
[0062] (1) receiving an input request sent by a user, displaying all the striking icons and the numeric input boxes corresponding to the striking icons on a graphical user interface, receiving the numbers input by the user in the numeric input boxes, and obtaining the number of times each striking icon has been struck;
[0063] (2) Receive a selection request sent by the user, display all the strike icons on the graphical user interface, and count the number of times the user clicks on each strike icon, that is, the number of times each strike icon is hit.
[0064] Method (1) collects the number of times each strike icon is struck through user input, such as Figure 8 As shown, the name of each strike icon is displayed on the screen, and the user fills in the number of times. Since the number of clapping and hi-hat combination is 0, the icons of clapping and hi-hat combination are not associated with the corresponding coordinate area, that is, these two strike icons are not displayed in the practice page. Method (2) first receives the request sent by the user, presents all the strike icons in the user interface, and the user clicks on each strike icon in turn according to the drum rhythm, and the number of times each strike icon is struck can be counted. This example associates the struck icon with the corresponding coordinate area by counting the total number of times each strike icon is struck in the drum rhythm, that is, the strike icon that does not participate in the drum rhythm can be not displayed, reducing the number of strike icons on the screen, so that the user can find the required strike icon more quickly when practicing.
[0065] In some embodiments, the method also includes a strike icon clearing step: counting the number of clicks on all strike icons corresponding to a certain drum rhythm as a strike count threshold, monitoring the number of strikes on each strike icon by the user, and when the number of strikes on any strike icon by the user reaches the strike count threshold, the strike icon is no longer associated with the coordinate area.
[0066] This example sets a strike icon clearing step, which can clear the strike icons whose strike times reach a threshold, that is, they are not displayed on the screen, thereby increasing fun. As the number of strike icons decreases, users can find the required strike icons more quickly. For example, in a certain drum rhythm, it is counted that the "snare drum" needs to be struck a total of 3 times. The statistical method can be the same as in Example 8. When the user clicks the "snare drum" for the third time, the strike icon of the "snare drum" disappears.
[0067] In summary, the above are only preferred embodiments of the present invention, and the protection scope of the present invention is not limited thereto. All equivalent changes and modifications made according to the patent scope of the present invention and the contents of the specification are within the scope covered by the patent of the present invention.
Claims
1. A method for generating a drum rhythm, characterized in that: The method comprises the following steps: Associate percussion icons with instrument sounds; Listen for music insertion events. When a music event is detected, open and insert the local audio file. Monitor strike events, and when any strike event is detected, play the instrument timbre and / or audio file associated with any strike icon; Monitor recording events. When any recording event is detected, the audio played by the current audio file and / or the instrument sound produced by tapping the icon will be recorded. Icon position presetting step: defining a plurality of coordinate areas, defining the position coordinates of each strike icon, and associating the coordinate areas with the position coordinates, wherein the definitions of the coordinate areas and the position coordinates include random definition, definition based on expert experience, or definition based on artificial intelligence; Counting the number of all strike icons associated with the coordinate area A through big data, and associating the strike icon with the largest number of strike icons with the coordinate area A; The total amount of all strike icons associated with each coordinate area is counted through big data and arranged in descending order. The top X coordinate areas are regarded as popular coordinate areas, and the other coordinate areas are regarded as non-popular coordinate areas. Detect whether the strike icon removed by the user is located in the hot coordinate area. If so, determine whether the user sends a request to associate a strike icon with a blank hot coordinate within P seconds. If sent, operate according to the user's instructions. If not sent, associate the strike icon in the coordinate area ranked X+1 with the blank hot coordinate area, and associate the strike icon removed by the user with the coordinate area ranked X+1.
2. The method according to claim 1, characterized in that The format type of the music event is an audio format or a MIDI format; the instrument timbre includes a system timbre and / or a built-in timbre, and the method can simultaneously play timbre in no more than 16 audio tracks.
3. The method according to claim 1, characterized in that The icon position preset step is: counting the position frequency of each of the position coordinates being clicked and arranging them in sequence, counting the icon frequency of each of the strike icons being clicked and arranging them in sequence, and associating the position coordinates with the same ranking with the strike icon.
4. The method according to claim 1, characterized in that The method further comprises the step of presetting the color of the strike icon: A plurality of strike icon libraries are established based on different timbres, each of the strike icon libraries is provided with at least two strike icons of different depths of color, the number of times all the strike icons in a certain drum rhythm are struck is counted and arranged in descending order, the strike icons associated with the coordinate area are divided into at least two groups according to the number of times they are struck, and the strike icons in different groups have different depths of color.
5. The method according to claim 1, characterized in that The method also includes the step of changing the color gradient of the icon: Multiple strike icon libraries are established based on different timbres, each of which is provided with at least two strike icons of different depths of color, and strike events are monitored. Each time a strike event is monitored, the strike icon associated with the corresponding coordinate area is replaced with a strike icon with a darker or lighter color depth.
6. The method according to claim 1, characterized in that The method further comprises a strike icon selection step: counting the number of times each strike icon is struck in any drum beat rhythm, associating strike icons having a number of strikes greater than or equal to 1 with the coordinate area, and counting the number of times each strike icon is struck by one of the following two methods; (1) receiving an input request sent by a user, displaying all the strike icons and the numeric input boxes corresponding to the strike icons on a graphical user interface, receiving the numbers input by the user in the numeric input boxes, and obtaining the number of times each strike icon has been struck; (2) Receive a selection request sent by the user, display all the strike icons on the graphical user interface, and count the number of times the user clicks on each of the strike icons, that is, the number of times each strike icon is hit.
7. The method according to claim 1, characterized in that The method also includes a strike icon clearing step: counting the number of clicks on all strike icons corresponding to a certain drum beat rhythm as a strike count threshold, monitoring the number of strikes on each strike icon by the user, and when the number of strikes on any strike icon by the user reaches the strike count threshold, the strike icon is no longer associated with the coordinate area.
