Music score automatic identification and generation method and device, electronic equipment and storage medium

Through an automatic recognition and generation method of music scores, electronic devices are used to obtain audio information and generate music scores, the problem of low score production efficiency in the prior art is solved, and fast and real-time music score generation and adjustment are achieved.

CN119541429APending Publication Date: 2025-02-28CHANGSHA XIAOPU TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411656275.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-11-19
Publication Date
2025-02-28

AI Technical Summary

Technical Problem

The acquisition and production of music scores in the prior art requires manual listening and production by professionals, which is inefficient and time-consuming.

Method used

Through an automatic recognition and generation method of music scores, audio information is obtained using electronic devices, frequency information of a single note is obtained based on the audio information, and pitch and pitch length are obtained, and music scores are generated based on the combination of these information.

Benefits of technology

It realizes the rapid and real-time generation of music scores, improves the efficiency of music score production, is convenient for beginners to learn, and can adjust the music score according to different instrument types.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119541429A_ABST
    Figure CN119541429A_ABST
Patent Text Reader

Abstract

The invention relates to the field of data processing, in particular to a music score automatic identification and generation method and device, electronic equipment and a storage medium, and the method comprises the steps: obtaining audio information; acquiring frequency information of a single note based on the audio information; obtaining a pitch based on the frequency information; acquiring a corresponding length based on the pitch; and generating a music score based on the pitch and the length combination. The music score making method has the effect of improving the music score making efficiency.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of data processing, and in particular to a method, device, electronic device and storage medium for automatically identifying and generating music scores. Background Art

[0002] With the development of society, music has been widely used in people's lives. For beginners who need to learn music, they need to prepare corresponding music scores and then learn based on the existing music scores.

[0003] However, obtaining the sheet music requires professionals to listen to the existing music repeatedly and then make the sheet music according to the music. However, this manual production method is slow, time-consuming and inefficient. Summary of the invention

[0004] In order to improve the efficiency of music score production, the present application provides a method, device, electronic device and storage medium for automatically identifying and generating music scores.

[0005] In the first aspect, the present application provides a method for automatically identifying and generating music scores using the following technical solutions: A method for automatically identifying and generating musical scores, comprising: Get audio information; Acquire frequency information of a single note based on the audio information; Acquire a pitch based on the frequency information; Acquire a corresponding tone length based on the pitch; A musical score is generated based on the combination of the pitch and the note duration.

[0006] By adopting the above technical solution, audio information is obtained by using an electronic device, and then the frequency information of a single note is obtained based on the audio information. The pitch can be obtained based on the frequency information of the sound, and the length of the note is obtained based on the pitch. Then, the pitch and the length of the note corresponding to the pitch are combined to generate a musical score. The musical score can be generated in real time and quickly, which is efficient and easy for beginners to learn.

[0007] Optionally, before generating the music score based on the combination of the pitch and the tone length, the method further includes: Acquire timbre information based on the audio information; The instrument type based on the timbre information; determining a first number of the types of musical instruments; If the first number is one, outputting the score adjustment information based on the instrument type; If the first number is greater than one, determining whether selection information is received; If the selection information is received, determining the type of musical instrument based on the selection information; outputting the score adjustment information based on the determined instrument type; If the selection information is not received, conventional score adjustment information is output.

[0008] By adopting the above technical solution, before finally generating the score, the electronic device obtains the timbre information based on the audio information, and then obtains the instrument type according to the timbre information. The timbre produced by different instruments is different. Then the electronic device determines the first number of instrument types. If the first number is one, the electronic device outputs the score adjustment information based on the instrument type, so that the adjusted score can correspond to the instrument type. If the first number is not one, the electronic device determines whether the selection information is received, that is, whether the selection information input by the user is received. If the user inputs the selection information, the electronic device determines the instrument type based on the selection information, and then outputs the score adjustment information based on the determined instrument type. At this time, the user inputs the selection information, which indicates that the user has selected the instrument type required by the user, and then the electronic device adjusts the score based on the required instrument type. If the selection information is not received, the electronic device outputs conventional score adjustment information, that is, outputs the preset conventional type of score.

[0009] Optionally, before outputting the conventional score adjustment information, the method further includes: Get historical information; Filtering the historical information based on the instrument type to obtain the number of conversions of the instrument type; sorting the instrument types in descending order based on the number of conversions; Acquire the preset sorted musical instrument types and use the acquired musical instrument types as the musical instrument types to be selected; The music score adjustment information and music score options are output based on the type of musical instrument to be selected.

[0010] By adopting the above technical solution, before the electronic device outputs conventional score adjustment information, the electronic device obtains historical information, and the electronic device screens the historical information based on the instrument type, thereby obtaining the number of conversions of the instrument type, that is, obtaining the number of conversions corresponding to each instrument in the history, and then the electronic device sorts the instrument type in descending order based on the number of conversions, and then the electronic device obtains the instrument type of the preset sorting, and uses the obtained instrument type as the instrument type to be selected, and outputs the score adjustment information and the score option based on the instrument type to be selected. That is, the score corresponding to the instrument of the preset sorting is converted and output for the user to select.

[0011] Optionally, after acquiring the audio information, the method further includes: Determining whether the audio information is sound information; If the audio information is sound information, recording the sound information within a preset time and using the recorded sound information as the first sound information; Acquire the pitch and the duration acquired within the preset time before the current moment based on the current moment and use the acquired pitch and the duration as the first note group; Reacquiring the pitch and the duration of the tone based on the first sound information and using the acquired pitch and the duration of the tone as a second note group; determining whether the second note group is the same as the first note group; If the second note group is the same as the first note group, deleting the first sound information, and repeating the step of recording the sound information within the preset time; If the second note group is different from the first note group, obtaining the music score segment corresponding to the first note group; The music score segment is marked and prompt information is output based on the music score segment.

[0012] By adopting the above technical solution, after obtaining the audio information, the electronic device determines whether the audio information is sound information. If the audio information is sound information, the electronic device records the sound information within the preset time, and uses the recorded sound information as the first sound information, obtains the pitch and the sound length obtained within the preset time before the current moment based on the current moment, and uses the obtained pitch and the sound length as the first note group, then obtains the pitch and the sound length again based on the first sound information, and uses the obtained pitch and the sound length as the second note group, and then determines whether the second note group is the same as the first note group, that is, verifies the converted part within the preset time. If the second note group is the same as the first note group, it indicates that the conversion of the part within the preset time is correct, so the first sound information is deleted, and the above steps are repeated to record and verify the part within the next preset time. If the second note group is not the same as the first note group, it indicates that an error occurs in the conversion at this time, so the electronic device obtains the music score segment corresponding to the first note group, marks the music score segment and outputs a prompt message, thereby prompting the user that an error occurs here.

[0013] Optionally, when the second note group is different from the first note group, the method further includes: Determine a time corresponding to when the second note group is different from the first note group as a first time; Obtaining a time adjacent to the first time; Acquire a corresponding third note group based on the adjacent moments; The first note group is adjusted based on the third note group and the adjusted first note group is output as a first note group to be selected.

[0014] By adopting the above technical solution, when the second note group is different from the first note group, the electronic device takes the current moment as the first moment, and then obtains the adjacent moment of the first moment, the adjacent moment is the previous moment and / or the next moment of the current moment, and obtains the corresponding third note group based on the adjacent moment, and then adjusts the first note group based on the third note group, that is, adjusts based on the front and back parts of the erroneous part to correct the erroneous part, and outputs the adjusted first note group for user selection.

[0015] Optionally, after generating the music score based on the combination of the pitch and the tone length, the method further includes: Get the score structure based on the complete score; Determining the position of the first note group based on the music score structure; Adjusting the first group of notes to be selected based on the position and using the adjusted first group of notes to be selected as the second group of notes to be selected; The second group of notes to be selected is outputted.

[0016] By adopting the above technical solution, after the final music score is generated by combination, the music score structure is obtained based on the complete music score, and then the position of the first note group is determined based on the music score structure, and then the first note group to be selected is adjusted based on the position, and the adjusted first note group to be selected is used as the second note group to be selected, and then the second note group to be selected is output for user selection. After the first note group is adjusted locally and globally, it is more accurate.

[0017] Optionally, the method further includes: Determining whether text information is included based on the audio information; If the audio information includes text information, obtaining a first text in the text information based on the pitch and the tone length; The first text is inserted into the musical score.

[0018] By adopting the above technical solution, after generating a musical score based on a combination of pitch and note length, the electronic device determines whether text information is included based on the audio information, that is, whether the audio information also includes lyrics in addition to the music. If the audio information includes text information, the electronic device obtains the first character in the text information based on the pitch and note length, that is, obtains the corresponding first character, and then inserts the first character into the musical score to obtain the musical score corresponding to the music and lyrics.

[0019] In the second aspect, the present application provides a music score automatic recognition and generation device adopts the following technical solution: A music score automatic recognition and generation device, comprising: A first acquisition module, used to acquire audio information; A second acquisition module, used for acquiring frequency information of a single note based on the audio information; A third acquisition module, used to acquire the pitch based on the frequency information; A fourth acquisition module, used for acquiring a corresponding tone length based on the pitch; A combination module is used to generate a music score based on the combination of the pitch and the note length.

[0020] In a third aspect, the present application provides an electronic device that adopts the following technical solution: An electronic device comprises a processor, wherein the processor is coupled to a memory; the processor is used to execute a computer program stored in the memory, so that the electronic device executes the method described in the first aspect.

[0021] In a fourth aspect, the present application provides a computer-readable storage medium that adopts the following technical solution: A computer-readable storage medium includes a computer program or an instruction. When the computer program or the instruction is executed on a computer, the computer is caused to execute the method according to the first aspect. BRIEF DESCRIPTION OF THE DRAWINGS

[0022] Figure 1 It is a flowchart of the method for automatically identifying and generating music scores according to an embodiment of the present application.

[0023] Figure 2 It is a block diagram of the automatic music score recognition and generation device according to an embodiment of the present application.

[0024] Figure 3 It is a block diagram of an electronic device according to an embodiment of the present application. DETAILED DESCRIPTION

[0025] This specific embodiment is merely an explanation of the present application and is not a limitation of the present application. Technical users in this field can make non-creative modifications to the present embodiment as needed after reading this specification. However, as long as it is within the scope of the claims of the present application, it is protected by the patent law.

[0026] In order to make the purpose, technical solution and advantages of the embodiments of the present application clearer, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technical users in the field without creative work are within the scope of protection of this application.

[0027] In addition, the term "and / or" in this article is only a description of the association relationship of associated objects, indicating that there can be three relationships. For example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone. In addition, the character " / " in this article, unless otherwise specified, generally means that the associated objects before and after are in an "or" relationship.

[0028] The embodiment of the present application discloses a method for automatically identifying and generating a musical score. The method for automatically identifying and generating a musical score can be executed by an electronic device. The electronic device can be a server or a terminal device, wherein the server can be an independent physical server, a server cluster or a distributed system composed of multiple physical servers, or a cloud server providing cloud computing services. The terminal device can be a smart phone, a tablet computer, a desktop computer, etc., but is not limited thereto.

[0029] The present application embodiment discloses a method for automatically identifying and generating a musical score. Figure 1 , a method for automatically identifying and generating music scores includes the following main processes (S100~S500): Step S100, obtaining audio information; Step S200, obtaining frequency information of a single note based on audio information; Step S300, obtaining pitch based on frequency information; Step S400, obtaining the corresponding tone length based on the pitch; Step S500, generating a musical score based on the combination of pitch and note length.

[0030] The electronic device obtains audio information, and then obtains frequency information of a single note based on the audio information. Thereafter, the electronic device obtains the pitch based on the frequency information, and obtains the corresponding note length based on the single pitch. Finally, the electronic device generates a musical score based on the combination of pitch and note length. By using the audio information obtained by the electronic device, the musical score can be automatically generated, which can improve generation efficiency compared to manual methods.

[0031] As an optional implementation of an embodiment of the present application, before generating a musical score based on a combination of pitch and length, it also includes: obtaining timbre information based on audio information; obtaining a musical instrument type based on the timbre information; determining a first number of musical instrument types; if the first number is one, outputting musical score adjustment information based on the musical instrument type; if the first number is greater than one, determining whether selection information is received; if selection information is received, determining the musical instrument type based on the selection information; outputting musical score adjustment information based on the determined musical instrument type; if no selection information is received, outputting conventional musical score adjustment information.

[0032] When the electronic device generates a musical score based on a combination of pitch and length, the electronic device obtains timbre information based on audio information. Different musical instruments have different timbres, so the type of musical instrument can be identified and obtained based on the timbre information. Then the electronic device determines the first number of musical instrument types. If the first number is one, it indicates that a single musical instrument is used for performance. At this time, the musical score adjustment information is output based on the obtained musical instrument type, so that the musical score can be more suitable for the corresponding musical instrument and is convenient for users to use. If the first number is greater than one, the electronic device determines whether the selection information is received, that is, whether the selection information of the musical instrument specified by the user is received. If the electronic device receives the selection information, the electronic device determines the type of musical instrument based on the selection information, and then outputs the musical score adjustment information based on the determined musical instrument type. If the electronic device does not obtain the selection information, the electronic device outputs conventional musical score adjustment information.

[0033] As an optional implementation of an embodiment of the present application, before outputting conventional music score adjustment information, it also includes: obtaining historical information; filtering the historical information based on the instrument type to obtain the number of changes in the instrument type; sorting the instrument types in descending order based on the number of changes; obtaining a preset sorted instrument type and using the obtained instrument type as a to-be-selected instrument type; and outputting the music score adjustment information and music score options based on the to-be-selected instrument type.

[0034] Before the electronic device outputs conventional music score adjustment information, the electronic device obtains historical information, filters the historical information based on the instrument type, and obtains the conversion number corresponding to each instrument type, and then sorts the instrument types in descending order based on the conversion number, that is, sorts them from large to small, and then the electronic device obtains the preset sorted instrument type, and uses the obtained instrument type as the instrument type to be selected. The electronic device then outputs music score adjustment information and music score options based on the instrument type to be selected, and can generate music scores of multiple previously converted instrument types for users to choose from, which can be more adaptable to the user's choice to a certain extent.

[0035] The preset sort order is a preset value, which can be the first or second instrument type, or can be set to the first instrument type.

[0036] As an optional implementation of an embodiment of the present application, after obtaining audio information, it also includes: determining whether the audio information is sound information; if the audio information is sound information, recording the sound information within a preset time and using the recorded sound information as the first sound information; obtaining the pitch and length obtained within a preset time before the current moment based on the current moment and using the obtained pitch and length as the first note group; obtaining the pitch and length again based on the first sound information and using the obtained pitch and length as the second note group; determining whether the second note group is the same as the first note group; if the second note group is the same as the first note group, deleting the first sound information, and repeating the step of recording the sound information within the preset time; if the second note group is different from the first note group, obtaining the music score segment corresponding to the first note group; marking the music score segment and outputting prompt information based on the music score segment.

[0037] After the electronic device obtains the audio information, it determines whether the audio information is sound information, that is, it determines whether the audio information is the sound played by other devices and is obtained by the electronic device as audio information. At this time, the audio information has a certain immediacy, that is, the sound source is lost after playing, which is different from the audio information obtained by using the audio file. Therefore, if the audio information is sound information, the electronic device records the sound information within the preset time, and uses the recorded sound information as the first sound information. The electronic device obtains the pitch and sound length obtained within the preset time before the current moment based on the current moment and uses the obtained pitch and sound length as the first note group, and the electronic device obtains the pitch and sound length again based on the first sound information and uses the obtained pitch and sound length as the second note group. Whether the second note group of the electronic device is the same as the first note group, if the second note group is the same as the first note group, it indicates that there is no error in the conversion, so the first sound information is deleted, and the steps of recording the sound information within the preset time and the subsequent steps are repeated. If the second note group is not the same as the first note group, the electronic device obtains the music score segment corresponding to the first note group, marks the music score segment and outputs a prompt message to prompt the user that there is a certain problem here.

[0038] For recording the sound information within the preset time, the electronic device starts timing after acquiring the sound information and starts recording the sound information, and during this process, real-time conversion is still performed, that is, the note frequency is acquired in real time. After the timing time reaches the preset time, the electronic device converts the recorded sound information once more, that is, obtains the second note group, and then compares the second note group with the first note group, where the first note group is the part converted in real time within the preset time.

[0039] After reaching the preset time, the timing will be restarted, and the sound information during the restarted timing will be recorded and converted in real time.

[0040] The above comparison process steps are carried out simultaneously with the process of restarting timing, recording and conversion, that is, the effect of real-time conversion can be achieved, and the converted part within each preset time can be verified.

[0041] As an optional implementation of an embodiment of the present application, when the second note group is different from the first note group, it also includes: determining the moment corresponding to the moment when the second note group is different from the first note group as the first moment; obtaining an adjacent moment of the first moment; obtaining a corresponding third note group based on the adjacent moment; adjusting the first note group based on the third note group and outputting the adjusted first note group as the first note group to be selected.

[0042] When the second note group is different from the first note group, a first moment is determined, the electronic device obtains a moment adjacent to the first moment, and the electronic device obtains a corresponding third note group based on the adjacent moment, where the adjacent moment may be a moment before and / or a moment after the first moment. Thereafter, the electronic device adjusts the first note group based on the third note group and outputs the adjusted first note group as a first selected note group for the user to select.

[0043] As an optional implementation of an embodiment of the present application, after generating a musical score based on a combination of pitch and note length, it also includes: obtaining a musical score structure based on the complete musical score; determining a position of a first note group based on the musical score structure; adjusting the first note group to be selected based on the position and using the adjusted first note group to be selected as a second note group to be selected; and outputting the second note group to be selected.

[0044] After the electronic device generates the score based on the pitch and the duration, the electronic device obtains the score structure based on the complete score, then determines the position of the first note group based on the score structure, adjusts the first note group to be selected based on the position, and outputs the adjusted first note group to be selected as the second note group to be selected. After the first note group is locally adjusted, it is also globally adjusted.

[0045] As an optional implementation of the embodiment of the present application, it also includes: judging whether the audio information includes text information based on the audio information; if the audio information includes text information, obtaining the first text in the text information based on the pitch and the length of the sound; and inserting the first text into the music score.

[0046] The electronic device determines whether the audio information includes text information based on the audio information. If the audio information includes text information, the electronic device obtains the corresponding first text based on the pitch and the length of the sound, and then inserts the first text into the music score to make the lyrics and music correspond to each other.

[0047] Figure 2 A structural block diagram of a music score automatic recognition and generation device 600 provided in an embodiment of the present application is shown in FIG. Figure 2As shown, the music score automatic recognition and generation device 600 includes: A first acquisition module 601 is used to acquire audio information; A second acquisition module 602 is used to acquire frequency information of a single note based on audio information; A third acquisition module 603, used to acquire the pitch based on the frequency information; A fourth acquisition module 604 is used to acquire a corresponding tone length based on the pitch; The combination module 605 is used to generate a musical score based on the combination of pitch and note length.

[0048] In this optional embodiment, the music score automatic recognition and generation device 600 further includes: A first acquisition submodule is used to acquire timbre information based on audio information before generating a musical score based on a combination of pitch and note length; The second acquisition submodule is used to acquire the instrument type based on the timbre information; A first judgment submodule is used to judge a first number of instrument types; if the first number is one, the score adjustment information is output based on the instrument type; if the first number is greater than one, the second judgment submodule is entered; The second judgment submodule is used to judge whether the selection information is received; if the selection information is received, determine the instrument type based on the selection information; output the score adjustment information based on the determined instrument type; if the selection information is not received, output the conventional score adjustment information.

[0049] In this optional embodiment, the music score automatic recognition and generation device 600 further includes: The third acquisition submodule is used to acquire historical information before outputting conventional score adjustment information; A first screening submodule, for screening the historical information based on the instrument type to obtain the number of conversions of the instrument type; A first sorting submodule, for sorting the instrument types in descending order based on the number of conversions; A fourth acquisition submodule is used to acquire the preset sorted instrument types and use the acquired instrument types as the instrument types to be selected; The first output submodule is used to output music score adjustment information and music score options based on the type of musical instrument to be selected.

[0050] In this optional embodiment, the music score automatic recognition and generation device 600 further includes: The third judgment submodule is used to judge whether the audio information is sound information after obtaining the audio information; if the audio information is sound information, it is transferred to the recording module; A recording module, used for recording sound information within a preset time and using the recorded sound information as the first sound information; A fifth acquisition submodule, configured to acquire, based on the current moment, the pitch and the length of the tone acquired within a preset time before the current moment and use the acquired pitch and the length of the tone as the first note group; a sixth acquisition submodule, configured to acquire the pitch and the length of the sound again based on the first sound information and use the acquired pitch and the length of the sound as the second note group; The fourth judgment submodule is used to judge whether the second note group is the same as the first note group; if the second note group is the same as the first note group, the first sound information is deleted, and the step of recording the sound information within a preset time is repeated; if the second note group is not the same as the first note group, the music score segment corresponding to the first note group is obtained; The marking output module is used to mark the music score segments and output prompt information based on the music score segments.

[0051] In this optional embodiment, the music score automatic recognition and generation device 600 further includes: A first determining submodule, for determining, when the second note group is different from the first note group, a time corresponding to the difference between the second note group and the first note group as a first time; A seventh acquisition submodule, used to acquire an adjacent moment of the first moment; An eighth acquisition submodule, acquiring a corresponding third note group based on adjacent moments; The first adjustment output submodule is used to adjust the first note group based on the third note group and output the adjusted first note group as a first note group to be selected.

[0052] In this optional embodiment, the music score automatic recognition and generation device 600 further includes: A ninth acquisition submodule, for acquiring a music score structure based on the complete music score after generating the music score based on the combination of pitch and note length; A fifth judgment submodule, used for judging the position of the first note group based on the score structure; A first adjustment submodule, configured to adjust the first note group to be selected based on the position and use the adjusted first note group to be selected as the second note group to be selected; The second output submodule is used to output a second group of notes to be selected.

[0053] In this optional embodiment, the music score automatic recognition and generation device 600 further includes: A sixth judgment submodule is used to judge whether the audio information includes text information after generating the music score based on the combination of pitch and tone length; if the audio information includes text information, obtain the first text in the text information based on the pitch and tone length; The first inserting submodule is used to insert the first text into the music score.

[0054] Figure 3The electronic device 700 is a block diagram of a structure of an electronic device 700 provided in an embodiment of the present application. The electronic device 700 may be a mobile phone, a tablet computer, a PC, a server, etc. Figure 3 As shown, the electronic device 700 includes a memory 701, a processor 702 and a communication bus 703; the memory and the processor 702 are connected via the communication bus 703. The memory 701 stores a computer program that can be loaded by the processor 702 and execute the automatic music score recognition and generation method provided in the above embodiment.

[0055] The memory 701 can be used to store instructions, programs, codes, code sets or instruction sets. The memory 701 can include a program storage area and a managed data storage area, wherein the program storage area can store instructions for implementing an operating system, instructions for at least one function, and instructions for implementing the music score automatic recognition and generation method provided in the above embodiment, etc.; the managed data storage area can store managed data involved in the music score automatic recognition and generation method provided in the above embodiment, etc.

[0056] The processor 702 may include one or more processing cores. The processor 702 calls the managed data stored in the memory 701 by running or executing the instructions, programs, code sets or instruction sets stored in the memory 701, performs various functions of the present application and processes the managed data. The processor 702 may be at least one of an application-specific integrated circuit (ASIC), a digital signal processor (DSP), a digital signal processing device (DSPD), a programmable logic device (PLD), a field programmable gate array (FPGA), a central processing unit (CPU), a controller, a microcontroller and a microprocessor. It is understandable that for different devices, the electronic device used to implement the above-mentioned processor 702 function can also be other, and the embodiment of the present application is not specifically limited.

[0057] The communication bus 703 may include a path to transmit information between the above components. The communication bus 703 may be a PCI (Peripheral Component Interconnect) bus or an EISA (Extended Industry Standard Architecture) bus. The communication bus 703 may be divided into an address bus, a managed data bus, a control bus, etc. For ease of representation, Figure 3 Only one double arrow is used in the diagram, but this does not mean that there is only one bus or only one type of bus.

[0058] The embodiment of the present application provides a computer storage medium storing a computer program that can be loaded by a processor and execute the method for automatically identifying and generating music scores as provided in the above embodiment.

[0059] In this embodiment, the computer storage medium may be a tangible device that holds and stores instructions used by the instruction execution device. The computer storage medium may be, but is not limited to, an electrical storage device, a magnetic storage device, an optical storage device, an electromagnetic storage device, a semiconductor storage device, or any combination thereof. Specifically, the computer storage medium may be a portable computer disk, a hard disk, a USB flash drive, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), a podium random access memory (SRAM), a portable compact disk read-only memory (CD-ROM), a digital versatile disk (DVD), a memory stick, a floppy disk, an optical disk, a magnetic disk, a mechanical encoding device, and any combination thereof.

[0060] The terms "comprises," "comprising," or any other variations thereof are intended to cover non-exclusive inclusion such that a process, method, article, or apparatus that includes a list of elements includes not only those elements but also other elements not expressly listed, or also includes elements inherent to such process, method, article, or apparatus.

Claims

1. A method for automatically identifying and generating musical scores, characterized in that: include: Get audio information; Acquire frequency information of a single note based on the audio information; Acquire a pitch based on the frequency information; Acquire a corresponding tone length based on the pitch; A musical score is generated based on the combination of the pitch and the note duration.

2. The method according to claim 1, characterized in that Before generating the music score based on the combination of the pitch and the tone length, the method further includes: Acquire timbre information based on the audio information; Acquire the instrument type based on the timbre information; determining a first number of the types of musical instruments; If the first number is one, outputting the score adjustment information based on the instrument type; If the first number is greater than one, determining whether selection information is received; If the selection information is received, determining the type of musical instrument based on the selection information; outputting the score adjustment information based on the determined instrument type; If the selection information is not received, conventional score adjustment information is output.

3. The method according to claim 2, characterized in that Before outputting the conventional score adjustment information, the method further includes: Get historical information; Filtering the historical information based on the instrument type to obtain the number of conversions of the instrument type; sorting the instrument types in descending order based on the number of conversions; Acquire the preset sorted musical instrument types and use the acquired musical instrument types as the musical instrument types to be selected; The music score adjustment information and music score options are output based on the type of musical instrument to be selected.

4. The method according to claim 1, characterized in that: After obtaining the audio information, the method further includes: Determining whether the audio information is sound information; If the audio information is sound information, recording the sound information within a preset time and using the recorded sound information as the first sound information; Acquire the pitch and the duration acquired within the preset time before the current moment based on the current moment and use the acquired pitch and the duration as the first note group; Reacquiring the pitch and the duration of the tone based on the first sound information and using the acquired pitch and the duration of the tone as a second note group; determining whether the second note group is the same as the first note group; If the second note group is the same as the first note group, deleting the first sound information, and repeating the step of recording the sound information within the preset time; If the second note group is different from the first note group, obtaining the music score segment corresponding to the first note group; The music score segment is marked and prompt information is output based on the music score segment.

5. The method according to claim 4, characterized in that When the second note group is different from the first note group, the method further comprises: Determine a time corresponding to when the second note group is different from the first note group as a first time; Obtaining a time adjacent to the first time; Acquire a corresponding third note group based on the adjacent moments; The first note group is adjusted based on the third note group and the adjusted first note group is output as a first note group to be selected.

6. The method according to claim 5, characterized in that After generating the music score based on the pitch and the tone length combination, the method further comprises: Get the score structure based on the complete score; Determining the position of the first note group based on the music score structure; Adjusting the first group of notes to be selected based on the position and using the adjusted first group of notes to be selected as the second group of notes to be selected; The second group of notes to be selected is outputted.

7. The method according to claim 1, characterized in that The method further comprises: Determining whether text information is included based on the audio information; If the audio information includes text information, obtaining a first text in the text information based on the pitch and the tone length; The first text is inserted into the musical score.

8. A device for automatically identifying and generating musical scores, characterized in that: include: A first acquisition module, used to acquire audio information; A second acquisition module, used for acquiring frequency information of a single note based on the audio information; A third acquisition module, used to acquire the pitch based on the frequency information; A fourth acquisition module, used for acquiring a corresponding tone length based on the pitch; A combination module is used to generate a music score based on the combination of the pitch and the note length.

9. An electronic device, characterized in that: The electronic device comprises a processor coupled to a memory; the processor is used to execute a computer program stored in the memory so that the electronic device executes the method according to any one of claims 1 to 7.

10. A computer-readable storage medium, characterized in that: The method comprises a computer program or an instruction, which, when executed on a computer, causes the computer to execute the method according to any one of claims 1 to 7.