A method and device for recognizing music score of drum set

By converting music score images into text sequences and training an end-to-end model, the problem of information loss and error superposition in the drum music score recognition process in the existing technology is solved, and a more efficient recognition effect and more robust feature extraction are achieved.

CN115146649BActive Publication Date: 2024-09-13XIAMEN UNIV
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202210730185.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-06-24
Publication Date
2024-09-13
Estimated Expiration
2042-06-24

AI Technical Summary

Technical Problem

The existing technology needs to continuously delete images when processing drum music scores, resulting in information loss, and methods based on image segmentation and template matching may lead to erroneous superposition between components and amplify errors.

Method used

By converting music score images into text sequences and using semantic dictionaries to convert them into digital sequences, an end-to-end convolutional neural network model is trained, omitting the intermediate steps of identifying musical lines and individual musical notes, and directly identifying them.

Benefits of technology

It eases the assembly design, improves the recognition effect, enhances the capture and extraction of various attributes and advanced features, reduces error accumulation, and improves the robustness of the recognition.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115146649B
    Figure CN115146649B
Patent Text Reader

Abstract

The present invention discloses a method and device for recognizing a drum music score, and relates to the technical field of music score recognition. The present invention creatively transforms a drum music score image and generates its corresponding text sequence, and then transforms the semantic item into a digital sequence through a semantic dictionary, so that the recognition training of the drum music score image can be performed through a convolutional recurrent neural network, omitting the intermediate steps of recognizing the spectrum line and recognizing a single musical note, reducing the laborious assembly design, and making it easier to capture and extract features of various attributes or high-level features; a single model is more robust than the accumulated errors of each component, can effectively reduce the accumulation of errors, and has advantages in recognition effect.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of music score recognition, and in particular to a method and device for recognizing music scores for a drum set. Background Art

[0002] The existing solution for processing drum music scores is to convert the drum image into a binary image, obtain a horizontal image by correcting it, locate the spectrum lines of the horizontal image, delete the spectrum lines, and then locate and delete the stems, tail bridges, and note heads in turn, and match the stems, tail bridges, and note heads to complete the recognition of the drum music score. The disadvantage of this method is that it is necessary to continuously delete images to complete the recognition of the drum score, resulting in the loss of image information of the drum score. Therefore, someone proposed a method based on image segmentation and template matching, which identifies the spectrum lines in the pre-processed drum music score image, selects various notes on the spectrum lines based on column cutting, obtains several note images, and then creates several note template images, and matches the note images and note template images through the template matching algorithm to identify the note images.

[0003] However, the separate training of the components of this method may cause the errors between each component to be superimposed, thereby continuously amplifying the error. Summary of the invention

[0004] The technical problem to be solved by the present invention is to provide a method and device for recognizing music scores for a drum set, which trains an end-to-end model through music score images and text sequences corresponding to the images, omitting the intermediate steps of identifying music lines and individual musical notes, reducing laborious assembly design, and making it easier to capture and extract features of various attributes or high-level features, thereby having advantages in recognition effect.

[0005] In a first aspect, the present invention provides a drum music score recognition method, comprising:

[0006] Step 10: converting a line of drum music score into a drum music score text sequence and an image file corresponding to the text sequence one by one; processing a large number of drum music scores to obtain a drum music score data set;

[0007] Step 20: Generate a semantic dictionary for drum music score, wherein the semantic dictionary includes all possible semantic items in the text sequence of the drum music score, and is used for mutual conversion between semantic items and digital sequences;

[0008] Step 30, training a drum music score recognition model, converting the drum music score text sequence in the data set into a music score digital sequence through the semantic dictionary, then converting the digital sequence into a standard two-dimensional variable and filling the unplayed notes with specified symbols, then taking the drum music score text sequence and its corresponding drum music score image as inputs of a convolutional recurrent neural network model, taking the corresponding two-dimensional variables as outputs of the model, and training the model until completion;

[0009] Step 40: input the drum music score image to be identified into the trained model to obtain a corresponding two-dimensional variable, delete the specified symbols in the two-dimensional variable and convert it into a digital sequence, and then convert it into a drum music score text sequence through the semantic dictionary.

[0010] Furthermore, the step 10 specifically includes:

[0011] Step 11. Convert .mxl to .musicxml file by using the plug-in - BatchConvert Resize Height in MuseScore.

[0012] Step 12, run the removecredits.py file to process the .musicxml file and remove the credit text, thereby cleaning the .musicxml file;

[0013] Step 13. Convert the cleaned .musicxml file into a .mscz file by using the "Plugin-Batch Convert Orig" in MuseScore.

[0014] Step 14: Convert the .mscz file into .musicxml and .png files by using the "plug-in - Batch Convert Orig" in MuseScore. The .png file is a picture file corresponding to the text sequence one by one.

[0015] Step 15: Use the genlabels.py file to convert the .musicxml file into a .semantic file, which is a drum music score text sequence.

[0016] In a second aspect, the present invention provides a drum music score recognition device, comprising: a data set generation module, a semantic dictionary module, a training module and a recognition module;

[0017] The data set generation module is used to convert a line of drum music score into a drum music score text sequence and an image file corresponding to the text sequence one by one; a large number of drum music scores are processed to obtain a drum music score data set;

[0018] The semantic dictionary module is used to generate a semantic dictionary for drum music scores, wherein the semantic dictionary includes all possible semantic items in the drum music score text sequence and is used for mutual conversion between semantic items and digital sequences;

[0019] The training module is used to train a drum music score recognition model. The drum music score text sequence in the data set is converted into a music score digital sequence through the semantic dictionary, and then the digital sequence is converted into a standard two-dimensional variable and the unplayed notes are filled with specified symbols. Then, the drum music score text sequence and its corresponding drum music score image are used as inputs of a convolutional recurrent neural network model, and the corresponding two-dimensional variables are used as outputs of the model, and the model is trained until completion;

[0020] The recognition module is used to input the drum music score image to be recognized into the trained model to obtain the corresponding two-dimensional variable, delete the specified symbols in the two-dimensional variable and convert it into a digital sequence, and then convert it into a drum music score text sequence through the semantic dictionary.

[0021] Furthermore, the step data set generation module is specifically used to perform the following steps:

[0022] Step 11. Convert .mxl to .musicxml file by using the plug-in - BatchConvert Resize Height in MuseScore.

[0023] Step 12, run the removecredits.py file to process the .musicxml file and remove the credit text, thereby cleaning the .musicxml file;

[0024] Step 13. Convert the cleaned .musicxml file into a .mscz file by using the "Plugin-Batch Convert Orig" in MuseScore.

[0025] Step 14: Convert the .mscz file into .musicxml and .png files by using the "plug-in - Batch Convert Orig" in MuseScore. The .png file is a picture file corresponding to the text sequence one by one.

[0026] Step 15: Use the genlabels.py file to convert the .musicxml file into a .semantic file, which is a drum music score text sequence.

[0027] The present invention has the following advantages:

[0028] By creatively converting the drum music score image and generating its corresponding text sequence, and then converting the semantic items into digital sequences through the semantic dictionary, it is possible to use a convolutional recurrent neural network to perform recognition training for drum music score images, omitting the intermediate steps of identifying the score lines and individual musical notes, reducing the laborious assembly design and making it easier to capture and extract features of various attributes or high-level features. Compared with the accumulated errors of each component, a single model is more robust, can effectively reduce the accumulation of errors, and has an advantage in recognition effect. BRIEF DESCRIPTION OF THE DRAWINGS

[0029] The present invention will be further described below in conjunction with embodiments with reference to the accompanying drawings.

[0030] Figure 1 Flow chart for executing the method of the present invention;

[0031] Figure 2 This is an example of a drum music score dataset according to an embodiment of the present invention, where (a) is a drum music score image and (b) is a drum music score text sequence;

[0032] Figure 3 This is an example of a musicxml file according to an embodiment of the present invention;

[0033] Figure 4 This is an example of a semantic dictionary according to an embodiment of the present invention;

[0034] Figure 5 A schematic diagram of the process of model training and recognition according to an embodiment of the present invention;

[0035] Figure 6 A drum music score picture to be identified in an embodiment of the present invention;

[0036] Figure 7 It is a schematic diagram of the structure of the device of the present invention. DETAILED DESCRIPTION

[0037] The embodiment of the present application trains an end-to-end model through music score images and text sequences corresponding to the images, omitting intermediate steps such as identifying musical lines and individual musical notes, alleviating laborious assembly design, and making it easier to capture and extract features of various attributes or high-level features, thus having advantages in recognition effect.

[0038] like Figure 1As shown, the technical solution in the embodiment of the present application has the following general idea:

[0039] 1. Generate a drum music score dataset for training neural networks. Convert the original drum music score .mxl file into a .png file (music score image) and a .semantic file (text sequence). The drum music score used by the network is a polyphonic score. The musical notes of the drum music score include three information: time value, pitch and note head. The drum music score dataset includes many folders, each of which contains a .png file (music score) image and a .semantic file (text file), a line of drum music score ( Figure 2 a) corresponds to a semantic sequence file ( Figure 2 b).

[0040] exist Figure 2 b, "+" and space are used to separate different musical note information. "+" separates information played at different times (that is, information not in the same column), while space separates information played at the same time. For example, "note-F4_quarter_normalnote-A5_quarter_x" means playing the F4 quarter note normal note head and the A5 quarter note x note head at the same time. In the picture, the two notes are in the same column ( Figure 2 (a) the part marked with a box.

[0041] Notes are divided into ordinary notes and rests: (1) Ordinary notes include three pieces of information: duration, pitch, and note head. For example, the note-F4_quarter_normal has a duration of quarter (quarter note), a pitch of F4, and a note head of normal (ordinary note head). Note heads are divided into ordinary note heads (that is, normal in the semantic sequence) and special note heads (such as x, circle-x, triangle, etc.); (2) Rests include two pieces of information: duration and note head. For example, the note-rest-quarter_normal has a duration of quarter and a note head of normal.

[0042] In the process of converting the drum music score data from .mxl to .png and .semantic files, MuseScore software can be used, which is a music software. The present invention uses it to convert music score files of different formats.

[0043] The process of converting drum sheet music data from .mxl to .png and .semantic files is as follows:

[0044] 1) Convert .mxl to .musicxml file. Use the plugin - Batch ConvertResizeHeight in MuseScore to convert.

[0045] 2) Run the removecredits.py file. This will process the .musicxml file and remove the credittext. This means that the .musicxml file will be cleaned up.

[0046] 3) Convert the .musicxml file to a .mscz file. Use the "Plugin-Batch ConvertOrig" in MuseScore to convert it.

[0047] 4) Convert the .mscz file into .musicxml and .png files. Use the "Plugin-BatchConvert Orig" in MuseScore to convert. The .musicxml file at this time is different from the .musicxml file in 2). The .musicxml file at this time corresponds to one line of music score, while the file in 2) corresponds to multiple lines of music score.

[0048] 5) Use the genlabels.py file (musicxml.py and measure.py are also required) to convert the .musicxml file into a .semantic file. Musicxml file is an xml file that uses various xml tags to mark the various musical notation information of the score. By identifying the .musicxml file, the musical notation information is output in text form.

[0049] Figure 3 For the measure information in the musicxml file, <measure>Marked as a section, <note>Marked as a musical note.

[0050] 6) Place the .semantic files and .png files in a folder one by one, and finally form many folders corresponding to many music score images, which is the data set used to train the network.

[0051] 2. Generate a semantic dictionary for drum music scores. This dictionary will be used as an auxiliary file in the CRNN network (an end-to-end neural network). The semantic dictionary contains all possible semantic items that may appear in the .semantic file, that is, any semantic item that appears in the .semantic file in the drum dataset can be found in this semantic dictionary. Figure 4 As shown (part of it is shown): the semantic dictionary of the drum music score mainly contains three kinds of information: 1) clef (clef-XX), time signature (keySignature-X / X), 2) ordinary musical notes (note-XX_XX_XX) and rests (rest_XX_XX), 3) separator (barline).

[0052] 3. Develop an end-to-end solution that can recognize drum music scores.

[0053] This solution is a modified solution for piano score recognition. Based on the difference between piano score and drum score, this solution modifies the piano score recognition solution to recognize drum score. The key point is to process the polyphonic features of drum score, so that the neural network can recognize the non-standard one-dimensional digital sequence generated by polyphonic score. The whole solution is shown in the figure below:

[0054] The first part of training the model requires image files and text files, but the neural network cannot directly recognize text files, so the semantic items in the text files need to be converted into digital sequences. At this time, an auxiliary file, the semantic dictionary, is needed to match all possible semantic items with numbers one by one, such as barline corresponds to 0, clef-C5 corresponds to 5, note-A4_quarter_normal corresponds to 294, and so on. In this way, a text sequence of a score can be converted into a digital sequence for neural network recognition. The digital sequence is a non-standard one-dimensional list variable. Each item in the list is a separate number or a list. If it is a separate number, it means that only one note is played at the same time. If it is a list, it means that multiple notes are played at the same time. For example, [1,350, [479,788,1330]] means playing the note corresponding to 1 first, then playing the note corresponding to 350, and then playing the notes corresponding to 479, 788, and 1330 at the same time. Then convert this digital sequence into a standard two-dimensional variable (such as Figure 5 As shown), use -1 to fill in the unplayed notes.

[0055] The second part recognizes the picture, inputs the picture (such as Figure 6 As shown in the figure, the image is converted into a two-dimensional variable, and then the -1 (that is, the blank note filled in) in the two-dimensional variable is deleted to form a non-standard one-dimensional list variable digital sequence. After that, the conversion is still carried out according to the one-to-one correspondence between the semantic items and numbers formed by the semantic dictionary, and finally a text sequence is obtained.

[0056] In the original scheme for identifying piano music, the generated digital sequence is a standard one-dimensional list (the piano music recognized by the original scheme is monophonic and can only play one note at a time), while the digital sequence generated by this scheme (the scheme for identifying drums) is a non-standard one-dimensional list (drum music is polyphonic and can play several notes at the same time, so some items in the list are several numbers). This is the focus of the present invention. Figure 6 After looking at the drum music score shown, the following semantic sequence is recognized:

[0057] clef-percussion2+keySignature-CM+note-F4_eighth_normal note-A5_eighth_x+note-G5_eighth_x+note-C5_eighth_normal note-G5_eighth_x+note-G5_eighth_x+note-F4_eighth_normal note-G5_eighth_x+note-F4_eighth_normal note-G5_eighth_x+note-C5_eighth_normal note-G5_eighth_x+note-G5_eighth_x+barline+note-C5_eighth_normal+note-C5_eighth_normal+note-F4_eighth_normal+note-E5_eighth_normal+note-E5_eighth_normal+note -F4_eighth_normal+note-A4_eighth_normal+note-A4_eighth_normal+note-F4_eighth_normal+note-A4_eighth_normalnote-C5_eighth_normal+note-F4_eighth_normal+barline

[0058] Embodiment 1

[0059] This embodiment provides a drum music score recognition method. Figure 1 As shown, including;

[0060] Step 10: converting a line of drum music score into a drum music score text sequence and an image file corresponding to the text sequence one by one; processing a large number of drum music scores to obtain a drum music score data set;

[0061] Step 20: Generate a semantic dictionary for drum music score, wherein the semantic dictionary includes all possible semantic items in the text sequence of the drum music score, and is used for mutual conversion between semantic items and digital sequences;

[0062] Step 30, training a drum music score recognition model, converting the drum music score text sequence in the data set into a music score digital sequence through the semantic dictionary, then converting the digital sequence into a standard two-dimensional variable and filling the unplayed notes with specified symbols, then taking the drum music score text sequence and its corresponding drum music score image as inputs of a convolutional recurrent neural network model, taking the corresponding two-dimensional variables as outputs of the model, and training the model until completion;

[0063] Step 40: Input the drum music score image to be recognized into the trained model to obtain the corresponding two-dimensional variable, and then add the specified symbol in the two-dimensional variable (i.e., the symbol used to fill the unplayed sound in step 30, for example, Figure 5 "-1" is used as a designation symbol in the text) and then converted into a digital sequence by deleting it, and then converted into a drum music score text sequence through the semantic dictionary.

[0064] In a possible implementation, step 10 specifically includes:

[0065] Step 11. Convert .mxl to .musicxml file by using the plug-in - BatchConvertResize Height in MuseScore.

[0066] Step 12, run the removecredits.py file to process the .musicxml file and remove the credit text, thereby cleaning the .musicxml file;

[0067] Step 13. Convert the cleaned .musicxml file into a .mscz file by using the "Plugin-Batch Convert Orig" in MuseScore.

[0068] Step 14: Convert the .mscz file into .musicxml and .png files by using "plug-in-Batch Convert Orig" in MuseScore. The .png file is a picture file corresponding to the text sequence one by one.

[0069] Step 15: Use the genlabels.py file to convert the .musicxml file into a .semantic file, which is a drum music score text sequence.

[0070] Based on the same inventive concept, the present application also provides a device corresponding to the method in Example 1, see Example 2 for details.

[0071] Embodiment 2

[0072] In this embodiment, a drum music score recognition device is provided. Figure 7 As shown, it includes: a data set generation module, a semantic dictionary module, a training module and a recognition module;

[0073] The data set generation module is used to convert a line of drum music score into a drum music score text sequence and an image file corresponding to the text sequence one by one; a large number of drum music scores are processed to obtain a drum music score data set;

[0074] The semantic dictionary module is used to generate a semantic dictionary for drum music scores, wherein the semantic dictionary includes all possible semantic items in the drum music score text sequence and is used for mutual conversion between semantic items and digital sequences;

[0075] The training module is used to train a drum music score recognition model. The drum music score text sequence in the data set is converted into a music score digital sequence through the semantic dictionary, and then the digital sequence is converted into a standard two-dimensional variable and the unplayed notes are filled with specified symbols. Then, the drum music score text sequence and its corresponding drum music score image are used as inputs of a convolutional recurrent neural network model, and the corresponding two-dimensional variables are used as outputs of the model, and the model is trained until completion;

[0076] The recognition module is used to input the drum music score image to be recognized into the trained model to obtain the corresponding two-dimensional variable, delete the specified symbols in the two-dimensional variable and convert it into a digital sequence, and then convert it into a drum music score text sequence through the semantic dictionary.

[0077] In a possible implementation, the step data set generation module is specifically used to perform the following steps:

[0078] Step 11. Convert .mxl to .musicxml file by using the plug-in - BatchConvert Resize Height in MuseScore.

[0079] Step 12, run the removecredits.py file to process the .musicxml file and remove the credit text, thereby cleaning the .musicxml file;

[0080] Step 13. Convert the cleaned .musicxml file into a .mscz file by using the "Plugin-Batch Convert Orig" in MuseScore.

[0081] Step 14: Convert the .mscz file into .musicxml and .png files by using "plug-in-Batch Convert Orig" in MuseScore. The .png file is a picture file corresponding to the text sequence one by one.

[0082] Step 15: Use the genlabels.py file to convert the .musicxml file into a .semantic file, which is a drum music score text sequence.

[0083] Since the device introduced in the second embodiment of the present invention is a device used to implement the method of the first embodiment of the present invention, those skilled in the art can understand the specific structure and deformation of the device based on the method introduced in the first embodiment of the present invention, so it is not described here in detail. All devices used in the method of the first embodiment of the present invention belong to the scope of protection of the present invention.

[0084] The present invention creatively transforms a drum music score image and generates its corresponding text sequence, and then transforms the semantic items into digital sequences through a semantic dictionary, so that the recognition training of the drum music score image can be performed through a convolutional recurrent neural network, omitting the intermediate steps of identifying the spectrum lines and identifying individual musical notes, reducing the laborious assembly design, and making it easier to capture and extract features of various attributes or high-level features; a single model is more robust than the accumulated errors of each component, can effectively reduce the accumulation of errors, and has an advantage in recognition effect.

[0085] It will be appreciated by those skilled in the art that embodiments of the present invention may be provided as methods, devices, or computer program products. Therefore, the present invention may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the present invention may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.

[0086] The present invention is described with reference to flowcharts and / or block diagrams of methods, devices (systems), and computer program products according to embodiments of the present invention. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.

[0087] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.

[0088] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.

[0089] Although the specific implementation modes of the present invention are described above, those skilled in the art should understand that the specific implementation modes described are only illustrative and are not intended to limit the scope of the present invention. Equivalent modifications and changes made by those skilled in the art in accordance with the spirit of the present invention should be included in the scope of protection of the claims of the present invention.< / note> < / measure>

Claims

1. A drum music score recognition method, characterized in that: include: Step 10, converting a line of drum music score into a drum music score text sequence and an image file corresponding to the text sequence one by one; Process a large number of drum music scores to obtain a drum music score dataset; Step 20: Generate a semantic dictionary for drum music score, wherein the semantic dictionary includes all possible semantic items in the text sequence of the drum music score, and is used for mutual conversion between semantic items and digital sequences; Step 30, training a drum music score recognition model, converting the drum music score text sequence in the data set into a music score digital sequence through the semantic dictionary, then converting the digital sequence into a standard two-dimensional variable and filling the unplayed notes with specified symbols, then taking the drum music score text sequence and its corresponding drum music score image as inputs of a convolutional recurrent neural network model, taking the corresponding two-dimensional variables as outputs of the model, and training the model until completion; Step 40: input the drum music score image to be recognized into the trained model to obtain a corresponding two-dimensional variable, delete the specified symbols in the two-dimensional variable and convert it into a digital sequence, and then convert it into a drum music score text sequence through the semantic dictionary; The step 10 specifically includes: Step 11. Convert .mxl to .musicxml file by using the plug-in - BatchConvert Resize Height in MuseScore. Step 12, run the removecredits.py file to process the .musicxml file and remove the credit text, thereby cleaning the .musicxml file; Step 13. Convert the cleaned .musicxml file into a .mscz file by using the Batch Convert Orig plugin in MuseScore. Step 14: Convert the .mscz file into .musicxml and .png files by using the plug-in - Batch Convert Orig in MuseScore. The .png file is a picture file corresponding to the text sequence one by one. Step 15: Use the genlabels.py file to convert the .musicxml file into a .semantic file, which is a drum music score text sequence.

2. A drum music score recognition device, characterized in that: include: Dataset generation module, semantic dictionary module, training module and recognition module; The data set generation module is used to convert a line of drum music score into a drum music score text sequence and an image file corresponding to the text sequence one by one; a large number of drum music scores are processed to obtain a drum music score data set; The semantic dictionary module is used to generate a semantic dictionary for drum music scores, wherein the semantic dictionary includes all possible semantic items in the drum music score text sequence and is used for mutual conversion between semantic items and digital sequences; The training module is used to train a drum music score recognition model. The drum music score text sequence in the data set is converted into a music score digital sequence through the semantic dictionary, and then the digital sequence is converted into a standard two-dimensional variable and the unplayed notes are filled with specified symbols. Then, the drum music score text sequence and its corresponding drum music score image are used as inputs of a convolutional recurrent neural network model, and the corresponding two-dimensional variables are used as outputs of the model, and the model is trained until completion; The recognition module is used to input the drum music score image to be recognized into the trained model to obtain the corresponding two-dimensional variable, delete the specified symbols in the two-dimensional variable and convert it into a digital sequence, and then convert it into a drum music score text sequence through the semantic dictionary; The step data set generation module is specifically used to perform the following steps: Step 11. Convert .mxl to .musicxml file by using the plug-in - BatchConvert Resize Height in MuseScore. Step 12, run the removecredits.py file to process the .musicxml file and remove the credit text, thereby cleaning the .musicxml file; Step 13. Convert the cleaned .musicxml file into a .mscz file by using the Batch Convert Orig plugin in MuseScore. Step 14: Convert the .mscz file into .musicxml and .png files by using the plug-in - Batch Convert Orig in MuseScore. The .png file is a picture file corresponding to the text sequence one by one. Step 15: Use the genlabels.py file to convert the .musicxml file into a .semantic file, which is a drum music score text sequence.