Music score generation method and device

By performing feature extraction and deep learning model processing on user humming audio signals to generate musical scores, it solves the problems of complexity and high threshold of music creation in the existing technology, simplifies the music creation process and improves user experience.

CN118711549APending Publication Date: 2024-09-27BEIJING SOHU INTERNET INFORMATION SERVICE
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410971886.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-19
Publication Date
2024-09-27

AI Technical Summary

Technical Problem

In the existing technology, the music creation process requires users to master complex music theory knowledge and professional musical instrument operation skills, resulting in poor experience for ordinary users, high thresholds, and difficulty in simplifying the music creation process.

Method used

By obtaining the audio signal of the user's humming, feature extraction is performed, including pitch, rhythm and note duration features, and input into the pre-trained music score generation model to generate the music score, lowering the user's creation threshold and simplifying the music creation process.

Benefits of technology

Users do not need to master music theory knowledge and professional musical instrument skills. They can generate music scores by just humming, which lowers the threshold for music creation, simplifies the process, improves the user experience, is suitable for ordinary users, and provides auxiliary tools for professional creation.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118711549A
    Figure CN118711549A
Patent Text Reader

Abstract

The invention discloses a music score generation method and device which are applied to the field of deep learning, and the method comprises the steps: obtaining an audio signal generated by humming of a user, then carrying out the feature extraction of the audio signal, and obtaining the feature information of the audio signal, the feature information comprising a pitch feature, a rhythm feature and a time value feature of a note, the feature information can be input into a pre-trained music score generation model, the construction information of the music score is output, the construction information can comprise the types of notes, the singing name of each note and the beat number information, and finally the music score can be generated according to the construction information. In the music creation process, the user does not need to master music theory knowledge and practical knowledge of professional musical instruments, and only needs to humming, so that the threshold of music creation is reduced, the flow of music creation is simplified, more common users can easily and conveniently create music, and the experience feeling of the user is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of deep learning, and in particular to a method and device for generating music scores. Background Art

[0002] Music is an art form. People can convey their personal emotions, express their thoughts and stories through music creation. As a result, more and more people are beginning to try to create music.

[0003] At present, the music creation process mainly involves users inputting music information such as notes and pitches through professional music equipment, such as music equipment digital interface equipment, so that the music information input by users can be converted into music scores, thereby completing the music creation. Since users need to input music information such as notes and pitches themselves, the entire music creation process requires users to master complex music theory knowledge and professional instrument operation skills. For ordinary users, this operation is relatively complicated and the threshold is high, resulting in a poor user experience. Summary of the invention

[0004] The present application provides a music score generation method and device to simplify the process of music creation, lower the threshold of music creation, and improve the user experience.

[0005] In a first aspect, the present application provides a method for generating a music score, comprising:

[0006] Acquire an audio signal generated by a user humming;

[0007] Extracting features from the audio signal to obtain feature information of the audio signal, wherein the feature information includes: pitch features, rhythm features, and duration features of musical notes;

[0008] Input the feature information into a pre-trained music score generation model, and output music score construction information, wherein the construction information includes the type of notes, the name of each note, and the time signature information;

[0009] The music score is generated according to the construction information.

[0010] Optionally, the feature information further includes legato features and staccato features; and the step of inputting the feature information into a pre-trained score generation model and outputting score construction information includes:

[0011] The pitch feature, the rhythm feature, the duration feature of the note, the legato feature and the staccato feature are input into a pre-trained music score generation model, and the construction information of the music score is output.

[0012] Optionally, the method further includes:

[0013] Presenting a score type selection interface, wherein the score type selection interface includes a plurality of score type selection controls;

[0014] Determining a target music score type according to a user's selection operation on a target selection control among the plurality of music score type selection controls;

[0015] The step of generating the music score according to the construction information comprises:

[0016] A music score corresponding to the target music score type is generated according to the construction information.

[0017] Optionally, the method further includes:

[0018] Displaying the music score on a display screen of an electronic device;

[0019] When it is detected that the user performs a modification operation on the music score on the display screen, the music score is modified according to the modification operation and the modified music score is displayed.

[0020] Optionally, the extracting features from the audio signal to obtain feature information of the audio signal includes:

[0021] Perform pitch detection, beat detection and note duration analysis on the audio signal to obtain the pitch characteristics, rhythm characteristics and note duration characteristics of the audio signal

[0022] In a second aspect, the present application further provides a music score generating device, the device comprising:

[0023] An acquisition unit, used for acquiring an audio signal generated by a user humming;

[0024] A feature extraction unit, configured to extract features from the audio signal to obtain feature information of the audio signal, wherein the feature information includes: pitch features, rhythm features, and duration features of musical notes;

[0025] An input unit, used to input the feature information into a pre-trained music score generation model, and output music score construction information, wherein the construction information includes the type of notes, the name of each note, and the time signature information;

[0026] A production unit is used to generate the music score according to the construction information.

[0027] Optionally, the feature information further includes a legato feature and a staccato feature; and the input unit is specifically used to:

[0028] The pitch feature, the rhythm feature, the duration feature of the note, the legato feature and the staccato feature are input into a pre-trained music score generation model, and the construction information of the music score is output.

[0029] Optionally, the device further comprises:

[0030] A first presentation unit, configured to present a score type selection interface, wherein the score type selection interface includes a plurality of score type selection controls;

[0031] a determination unit, configured to determine a target score type according to a selection operation of a target selection control among the plurality of score type selection controls by a user;

[0032] The generating unit is specifically used for:

[0033] A music score corresponding to the target music score type is generated according to the construction information.

[0034] Optionally, the device further comprises:

[0035] A display unit, used for displaying the music score on a display screen of an electronic device;

[0036] The modifying unit is configured to modify the music score according to the modifying operation and display the modified music score when detecting that the user performs a modifying operation on the music score on the display screen.

[0037] Optionally, the feature extraction unit is specifically used to:

[0038] The audio signal is subjected to pitch detection, beat detection and note duration analysis to obtain the pitch features, rhythm features and note duration features of the audio signal.

[0039] In a third aspect, an embodiment of the present application provides a device, comprising a memory and a processor, wherein the memory is used to store instructions or codes, and the processor is used to execute the instructions or codes so that the device executes any method described in the first aspect.

[0040] In a fourth aspect, an embodiment of the present application provides a computer storage medium, in which a code is stored. When the code is executed, a device executing the code implements the method described in any one of the first aspects above.

[0041] Compared with the prior art, this application has the following beneficial effects:

[0042] The present application can obtain the audio signal generated by the user's humming, and then perform feature extraction on the audio signal to obtain feature information of the audio signal, wherein the feature information may include: pitch features, rhythm features, and duration features of the notes, and then the feature information can be input into a pre-trained music score generation model to output the construction information of the music score, wherein the construction information may include the type of note, the singing name of each note, and the time signature information, and finally the music score can be generated according to the construction information. In this way, the music creation in the present application does not require the user to master music theory knowledge and practical knowledge of professional musical instruments, and the user only needs to hum, thereby lowering the threshold for music creation, simplifying the process of music creation, and allowing more ordinary users to easily and conveniently create music, thereby improving the user experience. BRIEF DESCRIPTION OF THE DRAWINGS

[0043] In order to more clearly illustrate the technical solutions in this embodiment or the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0044] Figure 1 A flowchart of a music score generation method provided in an embodiment of the present application;

[0045] Figure 2 A flowchart of another music score generation method provided in an embodiment of the present application;

[0046] Figure 3 A schematic structural diagram of a specific implementation of the music score generating device provided in this application. DETAILED DESCRIPTION

[0047] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only 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 technicians in this field without creative work are within the scope of protection of this application.

[0048] It should be noted that the music score generation method and device provided in this application are used in the field of deep learning. The above is only an example and does not limit the application field of the method and device provided in this application.

[0049] Music is an art form. People can convey their personal emotions, express their thoughts and stories through music creation. As a result, more and more people are beginning to try to create music.

[0050] At present, the music creation process mainly relies on users to input through professional music equipment, such as music equipment digital interface equipment, so that the music information such as notes and pitches input by users can be converted into music scores to complete the music creation.

[0051] The music creation process of the prior art requires users to input musical information such as notes and pitches, and thus requires users to master complex music theory knowledge and professional musical instrument operation skills. For ordinary users, this operation is relatively complicated and the threshold is high, resulting in a poor user experience.

[0052] In view of this, the present application provides a music score generation method and device, including obtaining an audio signal generated by a user's humming, and then performing feature extraction on the audio signal to obtain feature information of the audio signal, wherein the feature information may include: pitch features, rhythm features, and duration features of notes, and then the feature information may be input into a pre-trained music score generation model to output music score construction information, wherein the construction information may include the type of note, the name of each note, and the time signature information, and finally the music score may be generated according to the construction information. The present application introduces a deep learning model, and the user only needs to hum, so that the electronic device can process the audio signal generated by the user's humming based on the deep learning model, and then generate a music score according to the processing result. In this way, the music creation in the present application does not require the user to master music theory knowledge and practical knowledge of professional musical instruments, which lowers the threshold for music creation, simplifies the process of music creation, and allows more ordinary users to easily and conveniently create music, thereby improving the user experience, and can also provide auxiliary tools for professional music creation.

[0053] The method provided in the embodiment of the present application may be executed by software on an electronic device. The electronic device may be, for example, a mobile phone, a tablet computer, a computer, etc. The software may be, for example, system software.

[0054] In order to make the technical personnel in this field better understand the present application, the present application is further described in detail below in combination with the drawings and specific implementation methods. The following is an example of the method provided in the present application being executed by an electronic device.

[0055] Figure 1 Flow chart of a music score generation method provided in an embodiment of the present application. Figure 1 As shown, the method includes:

[0056] S101: Acquire an audio signal generated by a user's humming.

[0057] The electronic device obtains an audio signal generated by the user's humming.

[0058] Specifically, the audio receiving device of the electronic device (such as a microphone) can receive the sound information of the user's humming, and then convert the received voice information into an audio signal, where the audio signal refers to a signal carrying sound information, which can be an electrical signal, an analog signal, or of course a digital signal, which is not limited here.

[0059] In some possible implementations, in order to improve the accuracy of subsequent audio signal processing, the acquired audio signal may also be pre-processed in the embodiments of the present application, for example, including background noise filtering (used to remove or reduce unwanted background noise in the audio signal) and audio amplitude normalization (used to adjust the amplitude of the audio signal to have a uniform scale), etc., so that the pre-processed audio signal can be subsequently processed.

[0060] S102: Extract features from the audio signal to obtain feature information of the audio signal.

[0061] The electronic device can perform feature extraction on the acquired audio signal to obtain feature information of the audio signal. Exemplarily, the feature information may include pitch features, rhythm features, and duration features of notes, wherein the pitch feature is an attribute that describes the frequency of a note or sound, for example, notes of different pitches can be represented by letters such as C, D, and E. It is one of the most basic attributes in music and determines the direction of the melody and the structure of the harmony. Rhythm features refer to the duration and interval of the notes, which determines the beat and speed of the music. Duration features are also used to indicate the length of time a note lasts in music.

[0062] The feature information includes pitch feature, rhythm feature and duration feature of musical notes as an example for introduction.

[0063] Electronic devices can perform pitch detection, beat detection and note duration analysis on audio signals, thereby obtaining the pitch characteristics, rhythm characteristics and note duration characteristics of the audio signals.

[0064] Specifically, the electronic device can use a pitch detection algorithm (for example, a YIN algorithm or an autoregressive algorithm, etc.) to perform pitch detection on the audio signal to obtain the pitch characteristics of the audio signal. Among them, the YIN algorithm can calculate the pitch by measuring the instantaneous phase difference of the audio signal. This method does not depend on the periodicity of the signal, so it also has a good effect on non-periodic signals. The autoregressive algorithm calculates the pitch by analyzing the time series characteristics of the audio signal. It can use an autoregressive model to describe the autocorrelation of the audio signal and determine the pitch by solving the autocorrelation function.

[0065] The beat detection algorithm can be used to detect the beat of the audio signal to obtain the rhythm characteristics. The dynamic time warping algorithm can be used to analyze the note duration of the audio signal to obtain the duration characteristics.

[0066] S103: Input the feature information into a pre-trained music score generation model, and output music score construction information.

[0067] The electronic device can input the obtained feature information into a pre-trained music score generation model and output the construction information of the music score, wherein the music score generation model can be a pre-trained deep learning model, and the construction information of the music score can include, for example: the type of note, the name of each note, and the time signature information, etc.

[0068] The types of notes may include, for example, whole notes, half notes, and quarter notes, etc. The solfeggios of notes refer to the names of the notes in the scale, and each note may correspond to a solfeggio, such as do-re-mi. The time signature information refers to the notation in the score used to indicate the rhythmic structure within a measure, that is, it can characterize how many beats there are in each measure and the duration of each beat. The time signature usually consists of two numbers, one above the other. For example, 4 / 4 and 3 / 4, etc., where 4 / 4 refers to a beat with four quarter notes per measure. 3 / 4 refers to a beat with three quarter notes per measure.

[0069] In some possible implementations, the electronic device can also identify the tonality of the audio signal. After determining the tonality of the audio signal, the tonality and feature information can be input into the score generation model together, so that the score generation model can combine the tonality and output the construction information of the score, thereby making the outputted note names more accurate. It should be noted that when the tonality is certain, one pitch can correspond to one name. In addition, a tonality selection option can also be provided, and the user can select the corresponding tonality according to needs.

[0070] For example, if the tonality is C major, the pitch feature is C, and the corresponding solfeggio is do, the pitch feature is D, and the corresponding solfeggio is re, the pitch feature is E, and the corresponding solfeggio is mi, and so on.

[0071] In some possible implementations, the electronic device can also extract the continuous features and staccato features of the audio signal, and input the continuous features and staccato features together with the feature information into the music score generation model, so that the output note type and time signature information can be more accurate and the generated music score rhythm structure can be clearer.

[0072] S104: Generate the music score according to the construction information.

[0073] Electronic devices can generate musical scores based on construction information such as the type of note, the name of each note, and time signature information.

[0074] In the present application, the electronic device can obtain the audio signal generated by the user's humming, and then perform feature extraction on the audio signal to obtain feature information of the audio signal, wherein the feature information may include: pitch features, rhythm features, and duration features of the notes, and then the feature information can be input into a pre-trained score generation model to output the score construction information, wherein the construction information may include the type of note, the singing name of each note, and the time signature information, and finally the score can be generated according to the construction information. The present application introduces a deep learning model, and the user only needs to hum, so that the electronic device can process the audio signal generated by the user's humming based on the deep learning model, and then generate the score according to the processing result. In this way, the music creation in the present application does not require the user to master music theory knowledge and practical knowledge of professional musical instruments, which lowers the threshold for music creation, simplifies the process of music creation, and allows more ordinary users to easily and conveniently create music, thereby improving the user experience and providing auxiliary tools for professional music creation.

[0075] The above embodiment can be referred to as Embodiment 1. In addition to the above embodiment, the present application also provides another embodiment. It is called Specific Implementation Method 2. The difference between Embodiment 2 and Embodiment 1 is that in Embodiment 2, the electronic device can determine the target score type according to the user's selection operation of the target selection control in the multiple score type selection controls in the score type selection interface, and then generate a score corresponding to the target score type according to the construction information. In this way, the corresponding type of score can be generated according to the user's own needs, thereby improving the user's experience. And the score can be displayed on the display screen of the electronic device. When it is detected that the user performs a modification operation on the score on the display screen, the score is modified according to the modification operation and the modified score is displayed, thereby meeting the user's personalized needs.

[0076] The present application is further described in detail below in conjunction with the accompanying drawings and specific implementations. The following description is given by taking the method provided in the embodiment of the present application as executed by an electronic device as an example.

[0077] Figure 2 Flow chart of another music score generation method provided in the embodiment of the present application. Figure 2 As shown, the method includes:

[0078] S201: Acquire an audio signal generated by the user's humming.

[0079] S202: Extract features from the audio signal to obtain feature information of the audio signal.

[0080] S203: Input the feature information into a pre-trained music score generation model, and output music score construction information.

[0081] The implementation principle of steps S201-S203 is similar to the implementation principle of steps S101-S103 in the first embodiment, and no redundant description is given here.

[0082] S204: presenting a score type selection interface, and determining a target score type according to a user's selection operation on a target selection control among a plurality of score type selection controls in the score type selection interface.

[0083] After outputting the construction information of the score, the electronic device can present a score type selection interface, wherein the score type selection interface can include multiple score type selection controls, for example, it can include simple notation, five-line notation and six-line notation (guitar notation), etc. The electronic device can determine the target score type according to the user's selection operation of the target selection control in the multiple score type selection controls. For example, the user selection operation is to click the six-line notation selection control, then it can be determined that the target score type is six-line notation. In this way, the user can generate the corresponding type of score according to their own needs, thereby improving the user's experience. It should be noted that the score type selection control here can be in a variety of forms, such as a drop-down menu, in which options of different score types are provided, and the user can select the desired target score type option from it. For example, a radio button can be provided for each score type, and the user can select the target score type by clicking. This is not limited in this embodiment. And step S204 can also occur before step S201, giving priority to letting the user select the target score type, so as to perform subsequent processing. The order of steps here is just an example, and those skilled in the art can set it according to needs, and it is not limited here.

[0084] S205: Generate a music score corresponding to the target music score type according to the construction information.

[0085] After determining the target score type, the electronic device can generate a score corresponding to the target score type according to the construction information. For example, if the target score type is five-line score, a score corresponding to the five-line score can be generated according to the construction information; if the target score type is six-line score, a score corresponding to the six-line score can be generated according to the construction information, and so on.

[0086] S206: Displaying the music score on a display screen of an electronic device.

[0087] After generating the music score, the electronic device may display the music score on a display screen of the electronic device for the user to view or modify.

[0088] S207: When it is detected that the user performs a modification operation on the music score on the display screen, the music score is modified according to the modification operation and the modified music score is displayed.

[0089] When the user needs to modify the score, the score on the display screen can be modified, such as modifying notes, adjusting rhythm, adding marks, etc. When it is detected that the user has modified the score on the display screen, the score can be modified accordingly according to the modification operation, and then the modified score can be displayed, which can meet the user's personalized needs. Finally, the electronic device can also save the generated or modified score, and can also choose to share it to the cloud or social platform through the network according to the user's needs.

[0090] The above are some specific implementations of the score generation method provided in the embodiment of the present application. Based on this, the present application also provides a corresponding device. The device provided in the embodiment of the present application will be introduced from the perspective of functional modularization. The device and the score generation method described above can be referenced to each other.

[0091] Figure 3 The structural block diagram provided for the embodiment of the present invention is referred to as the specific implementation mode three, and the Figure 3 The device may include:

[0092] An acquisition unit 300 is used to acquire an audio signal generated by a user's humming;

[0093] The feature extraction unit 310 is used to extract features from the audio signal to obtain feature information of the audio signal, wherein the feature information includes: pitch features, rhythm features, and duration features of notes;

[0094] An input unit 320, used to input the feature information into a pre-trained music score generation model, and output music score construction information, wherein the construction information includes the type of notes, the name of each note, and the time signature information;

[0095] The production unit 330 is used to generate the music score according to the construction information.

[0096] Optionally, the feature information further includes a legato feature and a staccato feature; and the input unit is specifically used to:

[0097] The pitch feature, the rhythm feature, the duration feature of the note, the legato feature and the staccato feature are input into a pre-trained music score generation model, and the construction information of the music score is output.

[0098] Optionally, the device further comprises:

[0099] A first presentation unit, configured to present a score type selection interface, wherein the score type selection interface includes a plurality of score type selection controls;

[0100] a determination unit, configured to determine a target score type according to a selection operation of a target selection control among the plurality of score type selection controls by a user;

[0101] The generating unit is specifically used for:

[0102] A music score corresponding to the target music score type is generated according to the construction information.

[0103] Optionally, the device further comprises:

[0104] A display unit, used for displaying the music score on a display screen of an electronic device;

[0105] The modifying unit is configured to modify the music score according to the modifying operation and display the modified music score when detecting that the user performs a modifying operation on the music score on the display screen.

[0106] Optionally, the feature extraction unit is specifically used to:

[0107] The audio signal is subjected to pitch detection, beat detection and note duration analysis to obtain the pitch features, rhythm features and note duration features of the audio signal.

[0108] The embodiments of the present application also provide corresponding devices and computer storage media for implementing the solutions provided by the embodiments of the present application.

[0109] The device includes a memory and a processor, the memory is used to store instructions or codes, and the processor is used to execute the instructions or codes so that the device executes the method described in any embodiment of the present application.

[0110] The computer storage medium stores codes, and when the codes are executed, a device executing the codes implements the method described in any embodiment of the present application.

[0111] The "first" and "second" in the names such as "first" and "second" (if any) mentioned in the embodiments of the present application are only used as name identifiers and do not represent the first or second in order.

[0112] Through the description of the above implementation methods, it can be known that those skilled in the art can clearly understand that all or part of the steps in the above-mentioned embodiment method can be implemented by means of software plus a general hardware platform. Based on such an understanding, the technical solution of the present application can be embodied in the form of a software product, which can be stored in a storage medium, such as a read-only memory (ROM) / RAM, a magnetic disk, an optical disk, etc., including a number of instructions for a computer device (which can be a personal computer, a server, or a network communication device such as a router) to execute the methods described in each embodiment of the present application or some parts of the embodiments.

[0113] Each embodiment in this specification is described in a progressive manner, and the same and similar parts between the embodiments can be referred to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the device embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment. Some or all of the modules can be selected according to actual needs to achieve the purpose of the scheme of this embodiment. Ordinary technicians in this field can understand and implement it without paying creative work.

[0114] The above description is merely an exemplary embodiment of the present application and is not intended to limit the protection scope of the present application.

Claims

1. A method for generating music scores, It is characterized in that include: Acquire an audio signal generated by a user humming; Extracting features from the audio signal to obtain feature information of the audio signal, wherein the feature information includes: pitch features, rhythm features, and duration features of musical notes; Input the feature information into a pre-trained music score generation model, and output music score construction information, wherein the construction information includes the type of notes, the name of each note, and the time signature information; The music score is generated according to the construction information.

2. The method according to claim 1, It is characterized in that The feature information also includes a legato feature and a staccato feature; the step of inputting the feature information into a pre-trained score generation model and outputting score construction information includes: The pitch feature, the rhythm feature, the duration feature of the note, the legato feature and the staccato feature are input into a pre-trained music score generation model, and the construction information of the music score is output.

3. The method according to claim 2, It is characterized in that The method further comprises: Presenting a score type selection interface, wherein the score type selection interface includes a plurality of score type selection controls; Determining a target music score type according to a user's selection operation on a target selection control among the plurality of music score type selection controls; The step of generating the music score according to the construction information comprises: A music score corresponding to the target music score type is generated according to the construction information.

4. The method according to claim 3, It is characterized in that The method further comprises: Displaying the music score on a display screen of an electronic device; When it is detected that the user performs a modification operation on the music score on the display screen, the music score is modified according to the modification operation and the modified music score is displayed.

5. The method according to claim 1, It is characterized in that The extracting features of the audio signal to obtain feature information of the audio signal includes: The audio signal is subjected to pitch detection, beat detection and note duration analysis to obtain the pitch features, rhythm features and note duration features of the audio signal.

6. A music score generating device, It is characterized in that include: An acquisition unit, used for acquiring an audio signal generated by a user humming; A feature extraction unit, configured to extract features from the audio signal to obtain feature information of the audio signal, wherein the feature information includes: pitch features, rhythm features, and duration features of musical notes; An input unit, used to input the feature information into a pre-trained music score generation model, and output music score construction information, wherein the construction information includes the type of notes, the name of each note, and the time signature information; A production unit is used to generate the music score according to the construction information.

7. The device according to claim 6, It is characterized in that The feature information also includes a legato feature and a staccato feature; the input unit is specifically used to: The pitch feature, the rhythm feature, the duration feature of the note, the legato feature and the staccato feature are input into a pre-trained music score generation model, and the construction information of the music score is output.

8. The device according to claim 7, It is characterized in that The device also includes: A first presentation unit, configured to present a score type selection interface, wherein the score type selection interface includes a plurality of score type selection controls; a determination unit, configured to determine a target score type according to a selection operation of a target selection control among the plurality of score type selection controls by a user; The generating unit is specifically used for: A music score corresponding to the target music score type is generated according to the construction information.

9. The device according to claim 8, It is characterized in that The device also includes: A display unit, used for displaying the music score on a display screen of an electronic device; The modifying unit is configured to modify the music score according to the modifying operation and display the modified music score when detecting that the user performs a modifying operation on the music score on the display screen.

10. The device according to claim 6, It is characterized in that The feature extraction unit is specifically used for: The audio signal is subjected to pitch detection, beat detection and note duration analysis to obtain the pitch features, rhythm features and note duration features of the audio signal.