A five-line musical score marking method, device, electronic equipment and storage medium
By identifying and marking musical scores to generate tag strings, the problem of finding scores with different layouts is solved, and convenient score searching is achieved.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- NEW WANAKA LTD
- Filing Date
- 2023-01-06
- Publication Date
- 2026-05-12
AI Technical Summary
Existing technology cannot effectively search for sheet music with different layouts, making it difficult to search for sheet music online.
By identifying the musical score using the staff, determining the staff group, and using preset characters to mark each specified musical score element, a staff group string is generated. Finally, these strings are combined into a marker string for the staff score, making it easy to find the staff score by string.
It makes it easier to find the same sheet music in different types of sheet music, improves search efficiency, and reduces the possibility of omissions.
Smart Images

Figure CN116089666B_ABST
Abstract
Description
Technical Field
[0001] This invention belongs to the field of computer application technology, and in particular relates to a method, device, electronic device and storage medium for marking musical scores. Background Technology
[0002] To facilitate online previewing of sheet music, traditional paper sheet music needs to be converted into electronic sheet music. Currently, the main approach is to convert paper sheet music into image format. This allows searching for sheet music by name, but if only partial sheet music is available without knowing the name, it's impossible to find the corresponding sheet music for that portion. If the partial sheet music is in image format, image search can be used to find the corresponding sheet music. However, image search only finds sheet music with the same layout as the provided portion; if the database used for searching contains sheet music with a different layout, it also fails to retrieve the original sheet music, making the search for sheet music quite cumbersome. Summary of the Invention
[0003] In view of this, embodiments of the present invention provide a method, apparatus, electronic device and storage medium for marking musical scores on a staff, which facilitates the search and retrieval of musical scores on a staff.
[0004] In a first aspect, embodiments of the present invention provide a method for marking musical scores on a staff, comprising: identifying the musical score on a staff to determine at least one staff group in the musical score; marking each specified musical element in each staff group with a preset character according to its order in the staff group to obtain a corresponding staff group string; and combining the staff group strings corresponding to each staff group according to the order of each staff group to obtain a marking string for the musical score.
[0005] According to a specific implementation of an embodiment of the present invention, the step of performing music score recognition on a five-line musical score and determining at least one staff group in the five-line musical score includes: performing music score recognition on an image containing a five-line musical score and determining at least one staff group in the five-line musical score.
[0006] According to a specific implementation of an embodiment of the present invention, the step of identifying the musical score and determining at least one staff group in the musical score includes: identifying the musical score and taking a line of musical score composed of multiple measures as a staff group in the musical score.
[0007] According to a specific implementation of an embodiment of the present invention, the step of marking each specified musical element in each staff group with a preset character according to its order in the staff group to obtain the corresponding staff group string includes: determining each staff in each staff group; marking each specified musical element in each staff with a preset character according to its order in the staff to obtain the corresponding staff string; and combining the staff strings according to the order of the staffs to obtain the staff group string.
[0008] According to a specific implementation of an embodiment of the present invention, determining each spectrogram in each spectrogram group includes: determining each measure in each spectrogram group; and determining a set of five lines in each measure as a spectrogram.
[0009] According to a specific implementation of an embodiment of the present invention, the step of marking each specified musical element in each of the musical staves with preset characters according to their order in the musical staves to obtain a corresponding musical stave string includes: determining the clef in the first musical stave and marking the clef with preset characters; determining each note in the first musical stave and marking each note in the first musical stave with preset characters based on the relative position of the noteheads of each note in the first musical stave; arranging the marks corresponding to the clef and the marks corresponding to each note in the first musical stave according to the order of the clef and the notes in the first musical stave to obtain a first musical stave string corresponding to the first musical stave.
[0010] Secondly, embodiments of the present invention provide a staff notation marking device, comprising: a staff group determination module, used for identifying the staff notation and determining at least one staff group in the staff notation; a staff group string acquisition module, used for marking each specified musical element in each staff group with preset characters according to their order in the staff group, to obtain the corresponding staff group string; and a staff notation marking acquisition module, used for combining the staff group strings corresponding to each staff group according to the order of each staff group, to obtain the marking string of the staff notation.
[0011] According to a specific implementation of an embodiment of the present invention, the staff group determination module is specifically used to: perform music score recognition on an image with a staff score, and determine at least one staff group in the staff score.
[0012] According to a specific implementation of an embodiment of the present invention, the staff group determination module is specifically used for: identifying the musical score on the staff and taking a line of musical score consisting of multiple measures as a staff group in the staff score.
[0013] According to a specific implementation of an embodiment of the present invention, a musical score group string acquisition module includes: a musical score acquisition unit, used to determine each musical score in each musical score group; a musical score string acquisition unit, used to mark each specified musical score element in each musical score with preset characters according to the order in the musical score to obtain the corresponding musical score string; and a musical score group string acquisition unit, used to combine the musical score strings according to the order in which the musical scores are arranged to obtain the musical score group string.
[0014] According to a specific implementation of an embodiment of the present invention, the spectrum acquisition unit includes: a sub-unit for determining each sub-unit in each spectrum group; and a spectrum acquisition sub-unit for determining a set of five lines in each sub-unit as a spectrum.
[0015] According to a specific implementation of an embodiment of the present invention, a staff string acquisition unit includes: a clef marking subunit, used to determine the clef in a first staff and mark the clef with a preset character; a note marking subunit, used to determine each note in the first staff and mark each note in the first staff with a preset character based on the relative position of the noteheads of each note in the first staff; and a staff string acquisition subunit, used to arrange the marks corresponding to the clef and the marks corresponding to each note in the first staff according to the order of the clef and the notes in the first staff to obtain a first staff string corresponding to the first staff.
[0016] Thirdly, embodiments of the present invention provide an electronic device, the electronic device comprising: a housing, a processor, a memory, a circuit board, and a power supply circuit, wherein the circuit board is disposed within the space enclosed by the housing, and the processor and the memory are disposed on the circuit board; the power supply circuit is used to supply power to various circuits or devices of the electronic device; the memory is used to store executable program code; the processor runs a program corresponding to the executable program code by reading the executable program code stored in the memory, for executing the staff notation method described in any of the embodiments of the first aspect.
[0017] Fourthly, embodiments of the present invention provide a computer-readable storage medium storing one or more programs, which can be executed by one or more processors to implement the staff notation method described in any of the embodiments of the first aspect.
[0018] This invention provides a method, apparatus, electronic device, and storage medium for marking musical scores on a staff. By identifying the staff score, at least one clef group is determined. Preset characters are used to mark each specified musical element in the clef group according to their order within the clef group, resulting in a corresponding clef group string. The clef group strings are then combined according to the order of the clef groups to obtain the marked string for the staff score. This allows for searching the staff score by looking up the string, facilitating the retrieval of the score. Attached Figure Description
[0019] To more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0020] Figure 1 A flowchart illustrating a method for marking musical scores using the five-line staff provided in an embodiment of the present invention;
[0021] Figure 2 This is a schematic diagram of a staff notation method provided in an embodiment of the present invention;
[0022] Figure 3 This is a schematic diagram illustrating the relationship between preset characters and wireless musical notation in a five-line musical notation method provided by an embodiment of the present invention;
[0023] Figure 4 A schematic diagram of the treble clef in a musical score provided by an embodiment of the present invention;
[0024] Figure 5 A schematic diagram of the bass clef in a staff notation method provided in an embodiment of the present invention;
[0025] Figure 6 A schematic diagram of the alto clef in a staff notation method provided in an embodiment of the present invention;
[0026] Figure 7 A schematic diagram of a five-line musical notation method provided in an embodiment of the present invention;
[0027] Figure 8 for Figure 7 A schematic diagram of another layout of the musical score shown;
[0028] Figure 9 This is a schematic diagram of a five-line musical notation device provided in an embodiment of the present invention;
[0029] Figure 10 This is a schematic diagram of a module of an electronic device provided in an embodiment of the present invention. Detailed Implementation
[0030] The embodiments of the present invention will now be described in detail with reference to the accompanying drawings.
[0031] It should be understood that the described embodiments are merely some, not all, of the embodiments of the present invention. All other embodiments obtained by those skilled in the art based on the embodiments of the present invention without inventive effort are within the scope of protection of the present invention.
[0032] With the advancement of technology, more and more technologies are being applied to the music field, and online music teaching has become a trend. Traditional paper-based sheet music has been converted into online sheet music through scanning, making it convenient for people to preview online. While online sheet music previewing is convenient, it also brings another problem: how to find the sheet music you need from the vast amount of online sheet music. Currently, searching for sheet music by name is not possible when you don't know the name, and image search cannot find the same sheet music with different layouts, leading to missed sheet music. All of these situations make finding sheet music very troublesome.
[0033] To solve the above problem, see Figure 1 The present invention provides an embodiment of a method for marking musical scores on a five-line staff, the method comprising the following steps S101-S103:
[0034] S101. Perform music score recognition on the staff notation to determine at least one clef group in the staff notation.
[0035] Five-line musical notation, also known as staff notation, is a musical notation system that consists of five parallel lines. Generally, a single page of five-line musical notation contains multiple clefs, and a piece of music may comprise multiple pages of five-line musical notation.
[0036] S102. For each specified musical element in each staff group, mark it with preset characters according to its order in the staff group to obtain the corresponding staff group string.
[0037] Specifying musical notation elements can include clefs, notes, etc. Different musical notation elements have different meanings. For example, clefs represent pitch, and notes represent rhythm through their duration.
[0038] In some examples, after marking each specified musical element in a staff group with preset characters, the staff group string can be obtained by arranging each specified musical element in the order from left to right in a set of five lines.
[0039] S103. Combine the string strings corresponding to each staff group according to the order of each staff group to obtain the marker string of the staff score.
[0040] In some examples, each character in the staff string can be used as an array element to construct a first array in the order of the characters, representing the staff in array form; the first array representing the staff can be used as an array element to construct a second array in the order of the staffs, representing the sheet music in array form, thus obtaining the label string of the sheet music.
[0041] The staff notation marking method provided in this invention identifies at least one staff group in the staff notation, marks each specified musical element in the staff group according to the order of the specified musical elements in the staff group using preset characters, obtains the corresponding staff group string, and combines the corresponding staff group strings according to the order of the staff groups to obtain the staff notation marking string. In this way, the staff notation can be searched by searching the string, which is convenient for finding and obtaining the staff notation.
[0042] Optionally, in one embodiment of the present invention, step S101, which involves identifying the musical score and determining at least one musical staff group in the musical score, may include: identifying the musical score in an image containing the musical score and determining at least one musical staff group in the musical score.
[0043] In another embodiment of the present invention, step S101, which involves identifying the musical score and determining at least one musical staff group in the musical score, may further include: identifying the musical score in text format, such as Word format musical score, PDF format musical score, etc., and determining at least one musical staff group in the musical score.
[0044] In some examples, target detection in computer vision technology can be used to identify and locate (determine the position of a specified musical element in the staff notation) a specified musical element in a staff notation in the form of an image or text, thereby performing music notation recognition and identifying at least one clef group in the staff notation.
[0045] See Figure 2 Optionally, in one embodiment of the present invention, step S101 of identifying the musical score and determining at least one staff group in the musical score may further include: identifying the musical score and taking a line of musical score composed of multiple measures as a staff group in the musical score.
[0046] In musical notation, bar lines are vertical lines perpendicular to the five parallel lines mentioned earlier. A measure is the area on the five-line staff between adjacent bar lines, and multiple measures can be included in a single line of five lines. Measures are used to determine the rhythm and structure of musical notation.
[0047] In some examples, a staff line may include two rows of lines, one above the other, which can be used for the left and right hands respectively. For instance, in piano sheet music, a staff line consists of two rows of lines. In this case, a measure includes two sets of lines. Arranging the measures according to the order of the lines from left to right yields a set of staves in the sheet music.
[0048] After identifying at least one staff group in the staff score in step S101, in step S102, preset characters can be used to mark each specified musical element in each staff group. Specifically, in one embodiment of the present invention, marking each specified musical element in each staff group with preset characters according to its order in the staff group to obtain the corresponding staff group string includes: determining each staff in each staff group; marking each specified musical element in each staff with preset characters according to its order in the staff to obtain the corresponding staff string; and combining the staff strings according to the order of the staffs to obtain the staff group string.
[0049] In some examples, the staff refers to a set of lines within a measure. After marking each specified musical element in the staff with preset characters, the preset characters corresponding to each specified musical element can be combined according to the left-to-right order of the specified musical elements on the lines to obtain the corresponding staff string. During the combination process, if at least two musical elements overlap in the left-to-right direction on the lines, then the combination is based on the top-to-bottom order of those at least two musical elements on the lines.
[0050] As mentioned earlier, in some examples, a spectral group may include two rows of five lines, one above the other. In this case, a measure includes two sets of five lines, meaning a measure contains two spectral groups. Since a spectral group consists of multiple measures, the individual spectral strings can be combined into a measure string according to the order of their corresponding spectral lines from top to bottom within the measure. Then, the measure strings can be combined according to the order of their corresponding measures from left to right within the five lines to obtain the spectral group string.
[0051] In some examples, the characters in the staff string can be used as array elements to construct a first array according to the order of the characters, representing the staff in array form; the first arrays of each staff in a staff group can be arranged according to their order in the staff group, representing the staff group in array form; or the characters in a staff group can be used as array elements, that is, using the first array of the staff as array elements, constructing a second array according to the order of the staff groups, representing the sheet music in array form. If a staff has no specified musical elements, it can be represented by an empty array.
[0052] For example, Figure 2 The spectral table set shown can be represented as
[0053] ["G","d9","d8"],
[0054] ["F"],
[0055] ["d9","m2","m4","m6","d9","d8"],
[0056] ["u9","m7"],
[0057] ["d9","m2","m4","m6","m5","m4"],
[0058] ["u9","m7"]
[0059] Furthermore, in order to determine each spectral in each spectral group, in one embodiment of the present invention, the staff notation method further includes: determining each measure in each spectral group; and determining a set of five lines in each measure as a spectral.
[0060] As mentioned above, a bar refers to the five-line area between adjacent bar lines. Therefore, the bars in a spectral group can be identified by recognizing adjacent bar lines in each spectral group.
[0061] After determining the measures in the staff, a staff can be determined by identifying the positions of specific musical elements in the measures on the fifth line, such as clefs and notes.
[0062] Furthermore, after determining each measure in each staff group, in order to represent each staff with a preset string, in one embodiment of the present invention, the step of marking each specified musical element in each staff with preset characters according to its order in the staff to obtain the corresponding staff string includes: determining the clef in the first staff and marking the clef with preset characters; determining each note in the first staff and marking each note in the first staff with preset characters based on the relative position of the notehead 3 of each note in the first staff; arranging the marks corresponding to the clef and the marks corresponding to each note in the first staff according to the order of the clef and the notes in the first staff to obtain the first staff string corresponding to the first staff.
[0063] The clef is an element of musical notation, usually located at the beginning of a set of five lines, used to indicate pitch. Clefs include the treble clef, bass clef, and alto clef; their specific symbol images can be found in [link to image]. Figures 4 to 6 In some examples, the preset character "G" can be used to mark high-pitched characters, the preset character "F" can be used to mark low-pitched characters, and the preset character "C" can be used to mark mid-pitched characters.
[0064] Notes are also an element of musical notation. They are typically classified according to their duration, such as whole notes, half notes, quarter notes, etc. (See also...) Figure 2 The notehead 3, also known as the stem, is generally the black ellipse on the note.
[0065] In sheet music, the area above the five parallel lines is the high-pitched range, the area below the five parallel lines is the low-pitched range, and the area between the five parallel lines is the middle-pitched range. (See also...) Figure 3 In some examples, similar to the middle register, when marking the staff notation, the high and low registers can be divided separately using five parallel lines. After the register division is completed, the preset characters uu, u0, u1, u2, u3, u4, u5, u6, u7, u8, u9 can be used to represent the empty space (the area between the two parallel lines) and the parallel lines in the high register, one by one from top to bottom. The preset characters m8, m7, m6, m5, m4, m3, m2, m1, m0 can be used to represent the parallel lines and empty space in the middle register, one by one from top to bottom. The preset characters d9, d8, d7, d6, d5, d4, d3, d2, d1, d0, dd can be used to represent the empty space and the parallel lines in the middle register, one by one from top to bottom.
[0066] Musical elements can be distributed along the five parallel lines of a staff, in the areas between the parallel lines, above the top line, or below the bottom line. See also... Figure 3 In some examples, the positions of musical elements distributed in the staff may include position 1 on a parallel line and position 2 in a space.
[0067] After determining the preset characters corresponding to each position in the staff notation, each clef and note in the first staff can be marked with the preset characters based on their position in the staff. For example, the notehead 3 is on the bottom line of the first staff, and this bottom line corresponds to the preset character m0. Therefore, the preset character m0 is used to represent this note. After marking each clef and note with the preset characters, the markings of each clef and note can be combined into the first staff string of the first staff according to the left-to-right order of each clef and note in the first section of the staff.
[0068] After processing the staff notation, the staff notation marking method provided in this embodiment of the invention can retrieve the same notation in different layouts based on the staff notation marking string.
[0069] See Figure 7 The staff notation method provided in this embodiment of the invention is used to... Figure 7 Marking will yield results Figure 7 The symbol string for the sheet music shown is:
[0070]
[0071]
[0072] See Figure 8 The staff notation method provided in this embodiment of the invention is used to... Figure 8 Marking will yield results Figure 8 The symbol string for the sheet music shown is:
[0073]
[0074]
[0075] See Figure 7 and Figure 8 It can be determined that Figure 7 The sheet music shown is... Figure 8 The sheet music shown is the same piece with different layouts. By comparing the above... Figure 7 The symbol string of the sheet music shown is... Figure 8 The symbol strings of the musical score shown can be used to determine if the clef is removed from either of the two symbol strings. Figure 7 The symbol string of the sheet music shown is... Figure 8The musical scores shown in the figure have the same tag strings. Therefore, when searching for musical scores, by first removing the clef tags from the scores and then performing a match, it is possible to find identical scores with different layouts. Compared to image-based search, which can only find scores with the same layout, the musical score tagging method provided in this embodiment of the invention allows for the search of identical scores with different layouts after tagging. Furthermore, because it uses preset characters for tagging, it has strong anti-interference capabilities and can avoid missing scores, thus facilitating the retrieval of musical scores.
[0076] Example 2
[0077] Figure 9 This is a schematic diagram of a module of a staff notation device according to an embodiment of the present invention. (See also:) Figure 9 The device includes:
[0078] The staff group determination module 201 is used to identify the staff notation and determine at least one staff group in the staff notation.
[0079] The staff group string acquisition module 202 is used to mark each specified musical element in each staff group with preset characters according to their order in the staff group, so as to obtain the corresponding staff group string.
[0080] The staff notation tag acquisition module 203 is used to combine the staff group strings corresponding to each staff group according to the order of each staff group to obtain the tag string of the staff notation.
[0081] In some embodiments, the spectral group determination module 201 is specifically used for:
[0082] The image containing musical notation is subjected to musical notation recognition to identify at least one clef group in the musical notation.
[0083] In some embodiments, the spectral group determination module 201 is specifically used for:
[0084] The staff notation is identified by identifying a line of music composed of multiple measures in the staff notation as a staff group in the staff notation.
[0085] In some embodiments, the spectrum group string acquisition module 202 includes:
[0086] The spectrum acquisition unit is used to determine each spectrum in each spectrum group;
[0087] The staff string acquisition unit is used to mark each specified musical element in each staff with preset characters according to the order in the staff, so as to obtain the corresponding staff string;
[0088] The spectrogram string acquisition unit is used to combine the spectrogram strings according to their order to obtain the spectrogram string.
[0089] In some embodiments, the spectrum acquisition unit includes:
[0090] Subsections are used to identify subsections within each spectral group;
[0091] The spectrometer acquisition subunit is used to determine a set of five lines in each measure as a spectrometer.
[0092] In some embodiments, the spectrum string acquisition unit includes:
[0093] The clef marking subunit is used to determine the clefs in the first spectral table and mark the clefs with preset characters;
[0094] The note marking subunit is used to determine each note in the first staff. Based on the relative position of the notehead of each note in the first staff, each note in the first staff is marked with a preset character.
[0095] The staff string acquisition subunit is used to arrange the markers corresponding to the clef and the markers corresponding to each note in the first staff according to the order of the clef and each note in the first staff, so as to obtain the first staff string corresponding to the first staff.
[0096] Example 3
[0097] Figure 10 This is a schematic diagram of a module of an electronic device according to an embodiment of the present invention, which can realize the present invention. Figure 1 The process of the illustrated embodiment is shown in the figure. Figure 10 The aforementioned electronic device may include: a housing 301, a processor 302, a memory 303, a circuit board 304, and a power supply circuit 305. The circuit board 304 is disposed inside the space enclosed by the housing 301, and the processor 302 and the memory 303 are disposed on the circuit board 304. The power supply circuit 305 is used to supply power to the various circuits or devices of the aforementioned electronic device. The memory 303 is used to store executable program code. The processor 302 runs the program corresponding to the executable program code by reading the executable program code stored in the memory 303, and is used to execute any of the five-line musical notation methods described in the aforementioned embodiment one.
[0098] This electronic device exists in various forms, including but not limited to:
[0099] (1) Mobile communication devices: These devices are characterized by their mobile communication capabilities and primarily aim to provide voice and data communication. These terminals include: smartphones (e.g., iPhones), multimedia phones, feature phones, and low-end phones, etc.
[0100] (2) Ultra-mobile personal computer devices: These devices fall under the category of personal computers, possessing computing and processing capabilities, and generally also have mobile internet access features. These terminals include PDAs, MIDs, and UMPCs, such as the iPad.
[0101] (3) Portable entertainment devices: These devices can display and play multimedia content. This category includes: audio and video playback modules (e.g., iPod), handheld game consoles, e-book readers, as well as smart toys and portable car navigation devices.
[0102] (4) Server: A device that provides computing services. The components of a server include a processor, hard disk, memory, system bus, etc. Servers are similar to general computer architectures, but because they need to provide highly reliable services, they have higher requirements in terms of processing power, stability, reliability, security, scalability, and manageability.
[0103] (5) Other electronic devices with data interaction functions.
[0104] Embodiments of the present invention also provide a computer-readable storage medium storing one or more programs, which can be executed by one or more processors to implement any of the five-line musical notation methods provided in Embodiment 1 above, and thus can also achieve the corresponding technical effects. This has been described in detail above and will not be repeated here.
[0105] It should be noted that, in this document, relational terms such as "first" and "second" are used only to distinguish one entity or operation from another, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Furthermore, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Without further limitations, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes said element.
[0106] The various embodiments in this specification are described in a related manner. The same or similar parts between the various embodiments can be referred to each other. Each embodiment focuses on describing the differences from other embodiments.
[0107] In particular, the device embodiment is basically similar to the method embodiment, so the description is relatively simple. For relevant details, please refer to the description of the method embodiment.
[0108] For ease of description, the above apparatus is described by dividing it into various functional units / modules. Of course, in implementing this invention, the functions of each unit / module can be implemented in one or more software and / or hardware.
[0109] Those skilled in the art will understand that all or part of the processes in the above embodiments can be implemented by a computer program instructing related hardware. The program can be stored in a computer-readable storage medium, and when executed, it can include the processes of the embodiments of the above methods. The storage medium can be a magnetic disk, optical disk, read-only memory (ROM), or random access memory (RAM), etc.
[0110] The above description is merely a specific embodiment of the present invention, but the scope of protection of the present invention is not limited thereto. Any variations or substitutions that can be easily conceived by those skilled in the art within the technical scope disclosed in the present invention should be included within the scope of protection of the present invention. Therefore, the scope of protection of the present invention should be determined by the scope of the claims.
Claims
1. A method for marking musical scores using the staff, characterized in that, include: Perform music score recognition on the staff notation to identify at least one clef group in the staff notation; For each specified musical element in each staff group, mark it with preset characters according to its order in the staff group to obtain the corresponding staff group string; The string corresponding to each clef group is combined according to the order of the clef groups to obtain the tag string of the staff score; The step of identifying the musical score on the staff and determining at least one clef group in the staff score includes: The staff notation is identified by identifying a line of music composed of multiple measures in the staff notation as a staff group in the staff notation. The process involves marking each specified musical element in each staff group with preset characters according to their order within the staff group, resulting in the corresponding staff group string, including: Identify the individual spectra in each spectra group; Determine the clefs in the first spectral table and mark the clefs with preset characters; Each note in the first staff is determined, and based on the relative position of the noteheads of each note in the first staff, each note in the first staff is marked with a preset character. Arrange the markers corresponding to the clefs and the markers corresponding to each note in the first clef according to the order of the clefs and the notes in the first clef to obtain the first clef string corresponding to the first clef. The strings of each spectral table are combined according to their order to obtain the string of the spectral table group.
2. The method for marking musical scores according to claim 1, characterized in that, The step of identifying musical scores on the staff, and determining at least one clef group in the staff score, includes: The image containing musical notation is subjected to musical notation recognition to identify at least one clef group in the musical notation.
3. The method for marking musical scores according to claim 1, characterized in that, Determining each spectral table in each spectral table group includes: Identify the sections within each spectral group; Each set of five lines in each measure is designated as a musical score.
4. A musical notation device, characterized in that, include: The staff group determination module is used to identify the staff notation and determine at least one staff group in the staff notation. The staff group string acquisition module is used to mark each specified musical element in each staff group with preset characters according to their order in the staff group, and obtain the corresponding staff group string; The staff notation tag acquisition module is used to combine the staff group strings corresponding to each staff group according to the order of each staff group to obtain the tag string of the staff notation; The spectral group determination module is specifically used for: The staff notation is identified by identifying a line of music composed of multiple measures in the staff notation as a staff group in the staff notation. The spectrum group string acquisition module includes: The spectrum acquisition unit is used to determine each spectrum in each spectrum group; The staff string acquisition unit is used to mark each specified musical element in each staff with preset characters according to the order in the staff, so as to obtain the corresponding staff string; The spectrogram string acquisition unit is used to combine the spectrogram strings according to their order to obtain the spectrogram string. The spectrum string acquisition unit includes: The clef marking subunit is used to determine the clefs in the first spectral table and mark the clefs with preset characters; The note marking subunit is used to determine each note in the first staff. Based on the relative position of the notehead of each note in the first staff, each note in the first staff is marked with a preset character. The staff string acquisition subunit is used to arrange the markers corresponding to the clef and the markers corresponding to each note in the first staff according to the order of the clef and each note in the first staff, so as to obtain the first staff string corresponding to the first staff.
5. The staff notation device according to claim 4, characterized in that, The spectral group determination module is specifically used for: The image containing musical notation is subjected to musical notation recognition to identify at least one clef group in the musical notation.
6. The staff notation device according to claim 4, characterized in that, The spectrum acquisition unit includes: Subsections are used to identify subsections within each spectral group; The spectrometer acquisition subunit is used to determine a set of five lines in each measure as a spectrometer.
7. An electronic device, characterized in that, The electronic device includes: a housing, a processor, a memory, a circuit board, and a power supply circuit, wherein the circuit board is disposed inside the space enclosed by the housing, and the processor and the memory are disposed on the circuit board; the power supply circuit is used to supply power to the various circuits or devices of the electronic device; the memory is used to store executable program code; the processor runs a program corresponding to the executable program code by reading the executable program code stored in the memory, for executing the staff notation method according to any one of claims 1-3.
8. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores one or more programs, which can be executed by one or more processors to implement the staff notation method according to any one of claims 1-3.