Information processing method, device, electronic device and storage medium
By constructing a rhythm group database and performing rhythm splicing based on the sentence and word range of the lyrics, the problem of unstable melody generation quality and poor matching in the existing technology is solved, and diversified and higher-quality melody generation is achieved.
Patent Information
- Application Number
- CN202111177249.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-10-09
- Publication Date
- 2024-09-27
- Estimated Expiration
- 2041-10-09
AI Technical Summary
It is difficult for existing technology to automatically generate diversified and higher-quality melodies, especially in terms of matching lyrics and rhythm, with problems of unstable quality and incomplete matching.
By constructing a rhythm group database, we obtain the number of sentences in the lyrics and the range of words in each sentence, and perform rhythm splicing based on this database to ensure that the rhythm information matches the number of sentences and words in the lyrics, thereby achieving adaptive rhythm matching of lyrics and ultimately generating diverse , higher quality melody.
It achieves full coverage of a variety of lyrics, and the generated melody is of high quality and stable, avoiding the problems of poor rhythm quality or inability to match in existing methods.
Smart Images

Figure CN113920968B
Abstract
Description
Technical Field
[0001] The present application relates to the field of computer music technology, and in particular to an information processing method, device, electronic device and storage medium. Background Art
[0002] Since the information revolution, the way music and multimedia are spread has changed dramatically in a short period of time. This qualitative change has led to an explosive growth in the market demand for all kinds of music: whether it is singles, albums, MVs, karaoke with pop music or artistic creation as the main elements, or short videos, advertisements, animations, promotional films and film and television works that use music as auxiliary, or radio stations, anchors, and public space music that use music as background content, a large amount of original music is needed. How to achieve adaptive rhythm matching of lyrics, so as to automatically generate more diverse and higher-quality melodies, has become a technical problem that needs to be solved in this field. Summary of the invention
[0003] The present application provides an information processing method, device, electronic device and storage medium.
[0004] According to one aspect of the present application, there is provided an information processing method, comprising:
[0005] The number of sentences of any lyric within a predetermined range and the range of the number of words in each sentence of the lyric are obtained; rhythm splicing is performed according to the constructed rhythm group database to obtain rhythm information corresponding to the any lyric; wherein the rhythm information matches the number of sentences of any lyric within the predetermined range and the range of the number of words in each sentence of the lyric, and the number of tones in each sentence of the rhythm information is consistent with the number of words in each sentence of the lyric.
[0006] According to another aspect of the present application, there is provided an information processing device, including:
[0007] An acquisition module, used to acquire the number of sentences of any lyric within a predetermined range and the range of the number of words of each sentence of the lyric;
[0008] A splicing module is used to perform rhythm splicing according to the constructed rhythm group database to obtain rhythm information corresponding to any one of the lyrics; wherein the rhythm information matches the number of sentences of any one of the lyrics within the predetermined range and the number of words in each sentence of the lyrics, and the number of tones in each sentence of the rhythm information is consistent with the number of words in each sentence of the lyrics.
[0009] According to another aspect of the present application, there is provided an electronic device, including:
[0010] at least one processor; and a memory in communication with the at least one processor; wherein,
[0011] The memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute the method provided by any embodiment of the present application.
[0012] According to another aspect of the present application, a non-transitory computer-readable storage medium storing computer instructions is provided, wherein the computer instructions are used to enable the computer to execute the method provided by any embodiment of the present application.
[0013] By adopting the present application, the number of sentences of any lyric within a predetermined range and the range of the number of words in each sentence of the lyric can be obtained, and rhythm splicing can be performed according to the constructed rhythm group database to obtain rhythm information corresponding to the any lyric. The rhythm information matches the number of sentences of any lyric within the predetermined range and the range of the number of words in each sentence of the lyric, and the number of notes in each sentence of the rhythm information is consistent with the number of words in each sentence of the lyric, so that the rhythm can be adaptively matched according to the lyrics for a variety of lyrics, so that the melody generated according to the rhythm is more diversified.
[0014] It should be understood that the content described in this section is not intended to identify the key or important features of the embodiments of the present application, nor is it intended to limit the scope of the present application. Other features of the present application will become easily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS
[0015] The accompanying drawings are used to better understand the present solution and do not constitute a limitation of the present application.
[0016] Figure 1 is a flowchart of an information processing method according to an embodiment of the present application;
[0017] Figure 2 is a schematic diagram of the structure of an information processing device according to an embodiment of the present application;
[0018] Figure 3 It is a block diagram of an electronic device used to implement the information processing method of an embodiment of the present application. DETAILED DESCRIPTION
[0019] The following is a description of exemplary embodiments of the present application in conjunction with the accompanying drawings, including various details of the embodiments of the present application to facilitate understanding, which should be considered as merely exemplary. Therefore, it should be recognized by those of ordinary skill in the art that various changes and modifications can be made to the embodiments described herein without departing from the scope and spirit of the present application. Similarly, for the sake of clarity and conciseness, the description of well-known functions and structures is omitted in the following description.
[0020] The term "and / or" in this article is only a description of the association relationship of associated objects, indicating that there may be three relationships. For example, A and / or B can mean: A exists alone, A and B exist at the same time, and B exists alone. The term "at least one" in this article means any combination of at least two of any one or more of a plurality of. For example, including at least one of A, B, and C can mean including any one or more elements selected from the set consisting of A, B, and C. The terms "first" and "second" in this article refer to multiple similar technical terms and distinguish them. They do not mean to limit the order or to limit them to only two. For example, the first feature and the second feature refer to two types / two features. The first feature can be one or more, and the second feature can also be one or more.
[0021] In addition, in order to better illustrate the present application, numerous specific details are provided in the following specific embodiments. It should be understood by those skilled in the art that the present application can also be implemented without certain specific details. In some examples, methods, means, components and circuits well known to those skilled in the art are not described in detail in order to highlight the subject matter of the present application.
[0022] In the related technologies, in application scenarios where big data is needed, a data set that matches a larger rhythm of lyrics is required, which is costly. For common application scenarios, there are situations where the number of words in each sentence of the lyrics obtained is large, the relationship between the number of words between sentences is uncertain, and there is often a large gap with the data training set, which makes the quality of the trained neural network model poor, and even cannot meet the number of words. In addition, the relationship between sentences is difficult to generate reasonably, and there will be a lack of sense of punctuation between sentences. As a result, it is difficult to automatically generate more diverse and higher-quality melodies based on lyrics and rhythm.
[0023] In order to solve the above problems, the present application can achieve full coverage according to the number of words within the agreed range, and a stable and high-quality rhythm group database can be constructed based on the adaptive rhythm of the lyrics, so as to ultimately use the rhythm group database to automatically generate more diverse and higher-quality melodies.
[0024] According to an embodiment of the present application, an information processing method is provided. Figure 1It is a flowchart of an information processing method according to an embodiment of the present application. The method can be applied to an information processing device. For example, the device can be deployed in a terminal or a server or other processing device for execution. It can perform processing such as reading lyrics, matching rhythms based on the number of lyrics and the word range of each lyrics, and building a rhythm group database. Among them, the terminal can be a user equipment (UE, User Equipment), a mobile device, a cellular phone, a cordless phone, a personal digital assistant (PDA, Personal Digital Assistant), a handheld device, a computing device, a vehicle-mounted device, a wearable device, etc. In some possible implementations, the method can also be implemented by a processor calling computer-readable instructions stored in a memory. For example Figure 1 As shown, including:
[0025] S101, obtaining the number of sentences of any lyric within a predetermined range and the range of the number of words of each sentence of the lyric.
[0026] S102, performing rhythm splicing according to the constructed rhythm group database to obtain rhythm information corresponding to any one of the lyrics; wherein the rhythm information matches the number of sentences of any one of the lyrics within the predetermined range and the range of the number of words in each sentence of the lyrics, and the number of tones in each sentence of the rhythm information is consistent with the number of words in each sentence of the lyrics.
[0027] In one example, the rhythm information is: the rhythm information configured for any lyric, thereby achieving the rhythm of the lyrics, and for all possible lyrics that meet the range of the number of lyrics sentences and the range of the number of words in each sentence, multiple possibilities of matching the rhythm of the lyrics can be given, that is, for all possible lyrics that meet the range of the number of lyrics sentences and the range of the number of words in each sentence of the lyrics, the possibility of the corresponding rhythm information of the lyrics can be given, and the number of notes in each sentence of the rhythm information is consistent with the number of words in each sentence of the lyrics.
[0028] By adopting the present application, the number of sentences of any lyric within a predetermined range and the range of the number of words in each sentence of the lyric can be obtained, and rhythm splicing can be performed according to the constructed rhythm group database to obtain rhythm information corresponding to the any lyric. The rhythm information matches the number of sentences of any lyric within the predetermined range and the range of the number of words in each sentence of the lyric, and the number of tones in each sentence of the rhythm information is consistent with the number of words in each sentence of the lyric.
[0029] In other words, by using the present application to match rhythms based on lyrics, users can input a "song word count profile" according to the lyrics. The "song word count profile" can include the total number of phrases and the number of words in each phrase, so that the arrangement system can generate a rhythm, and the number of phrases in the rhythm is consistent with the lyrics, and the number of notes in each rhythm is consistent with the number of words in each lyrics. Thus, adaptive rhythm matching based on the lyrics can be achieved for a variety of lyrics, so that the melody finally generated based on the rhythm is more diverse.
[0030] It should be pointed out that: the use of the above-mentioned "rhythm matching based on lyrics" can achieve "full coverage" of the needs. Specifically, the above-mentioned predetermined range can refer to: four values agreed upon from construction to use: the maximum and minimum values of the total number of phrases, and the maximum and minimum values of the number of words that may appear in a single phrase. "Full coverage" For any "song word count configuration file" that meets the "agreed range", the above-mentioned "rhythm matching based on lyrics" can give a variety of rhythms. Compared with the existing methods, if you want to achieve "full coverage", you can only use some special "song word count configuration files" and enter the song information. For example, if the song has a total of 5 sentences, the number of words in each sentence is 3, 13, 13, 3, 13 to achieve "rhythm matching based on lyrics". First of all, if the existing method can be implemented, it is not universal. Secondly, it is only a special case, and the problem with the rhythm obtained by the existing method is that the rhythm quality is very poor, or the quality is unstable, or it is impossible to get a completely matched rhythm. The use of the above-mentioned "rhythm matching based on lyrics" of this application can avoid such problems.
[0031] In one embodiment, the method further includes: synthesizing a melody according to the rhythm information to obtain a target melody. For example, by adopting the above-mentioned "matching rhythm based on lyrics" of the present application, the rhythm can be generated from the lyrics, and then the target melody can be generated from the generated rhythm, thereby finally achieving the goal of generating the final target melody given the lyrics.
[0032] In one embodiment, the method further includes: extracting score information from the song information; extracting phrase information, rhythm information and word count relationship information of each line of lyrics from the score information according to a preset beat; and obtaining the constructed rhythm group database according to the phrase information, the rhythm information and word count relationship information of each line of lyrics. The phrase information may be a basic structural unit with characteristics constituting a piece of music, such as four lines of lyrics corresponding to four phrases.
[0033] In one embodiment, the constructed rhythm group database includes: a music segment structure, and a plurality of rhythm group sequences corresponding to the music segment structure; wherein the music segment structure is used to characterize a target rhythm group sequence to which a phrase information belongs in the plurality of rhythm group sequences. For example, the music segment structure can be represented by which rhythm group each phrase information belongs to. There can be multiple music segment structures, and for each of the multiple music segment structures, a plurality of rhythm group sequences corresponding to the music segment structure can be constructed.
[0034] In one embodiment, the step of obtaining the constructed rhythm group database according to the phrase information, the rhythm information, and the word count relationship information between each sentence of the lyrics includes: constructing the rhythm of each sentence in each rhythm group according to the phrase information, the rhythm information, and the word count relationship information between each sentence of the lyrics to obtain the constructed rhythm group database. For example, in each rhythm group, based on the rhythm of the original song, rhythms of various word counts are expanded, and each word count has at least one rhythm, thereby obtaining the constructed rhythm group database.
[0035] In one embodiment, the constructed rhythm group database is obtained according to the phrase information, the rhythm information and the word count relationship information between each sentence of the lyrics, including: obtaining the original music section structure; applying the rhythm of each sentence in each rhythm group constructed according to the phrase information, the rhythm information and the word count relationship information between each sentence of the lyrics to the original music section structure to obtain the constructed rhythm group database. For example, the "original music section structure" still uses the existing original music section structure, but expands the rhythm of each word count in each rhythm group based on the rhythm of the original song, and each word count has at least one rhythm, and applies it to the "original music section structure" to obtain the constructed rhythm group database.
[0036] It should be pointed out that to achieve "matching rhythm based on lyrics", in each rhythm group, based on the rhythm of the original song, rhythms of various word numbers can be expanded, and each word number has at least one rhythm. In other words, the newly constructed rhythm is the rhythm of each sentence in each rhythm group. Specifically, when constructing a rhythm group database, the first step is to obtain music score data in units of segment structure; the second step is to divide the phrases based on the segment structure, and then decompose each segment structure into a segment structure + rhythm group (at this time, the rhythm group is not complete, and each rhythm group only has one or more "sentence rhythms" in the phrase corresponding to the original data); the third step is to expand the rhythm group, that is, to expand the incomplete rhythm group in the second step into a complete rhythm group by writing (the complete rhythm group can cover the sentence rhythms under various word numbers within the predetermined range).
[0037] When using the rhythm group database, the first step is to obtain the required "song word count configuration file"; the second step is to find a music segment structure in the rhythm group database, whose number of phrases is the same as the total number of lyrics sentences in the "song word count configuration file"; the third step is to select the "sentence rhythm" in the "rhythm group" whose number of notes is equal to the number of words in the "song word count configuration file" according to the "rhythm group" sequence in the music segment structure; the fourth step is to spell the "sentence rhythm" into a "total rhythm sequence".
[0038] Among them, the above-mentioned "total rhythm sequence" is composed of several "phrase rhythm sequences". The "total rhythm sequence" corresponds to a musical phrase structure on the scale of the music ("music phrase structure" refers to a sequence of "rhythm groups". "Music phrase structure" also means: using a "phrase rhythm" of the "rhythm group" in the sequence, together they can form a complete "total rhythm sequence", and the collection of music scores is also collected in units of musical phrase structures). The above-mentioned "rhythm group" is composed of interchangeable "phrase sequence rhythms" with similar functions. Each "rhythm group" corresponds to a musical phrase, and a certain "rhythm group" can be reused in the sequence. The above-mentioned "total rhythm sequence" is finally obtained through the above-mentioned processing.
[0039] In one embodiment, the rhythm information corresponding to any one of the lyrics is obtained by performing rhythm splicing according to the constructed rhythm group database, including: extracting multiple music segment structures from the constructed rhythm group database, the multiple music segment structures including: music segment structures matching the number of sentences of multiple lyrics within the predetermined range; obtaining multiple rhythm group sequences corresponding to the multiple music segment structures according to the multiple music segment structures; extracting the rhythm group sequence for each phrase from the multiple rhythm group sequences, the rhythm group sequence for each phrase matching the word number range of each sentence of the lyrics; performing the rhythm splicing according to the rhythm group sequence for each phrase, and obtaining the rhythm information of the entire music segment. Among them, the rhythm information of the entire music segment includes: multiple rhythm information corresponding to the multiple lyrics. For example, a music segment structure with the number of sentences required for each sentence of the lyrics is selected from the rhythm group database, and the music segment structure contains multiple rhythm groups, and the rhythm of each sentence is spliced to obtain the rhythm of the entire music segment. When splicing, the phrases can be spliced from front to back, the main bar of the next phrase is adjacent to the main bar of the previous phrase, and the weak start of the next phrase covers the end of the main bar of the previous phrase. It can be guaranteed that when the rhythm group database constructed according to this method is used, the first note (or the first note) of the next phrase is after the last note (or the tail note) of the previous phrase, and at least there is a predetermined value (N gap ). Thus, by selecting different music segment structures (each music segment structure corresponds to multiple rhythm group sequences), for each phrase, different rhythms that meet the word count range of each lyric are selected in the multiple rhythm group sequences to generate a new music segment rhythm.
[0040] Application examples:
[0041] This application example can provide multiple rhythm schemes for all possible lyrics that meet the range of the number of lyrics and the number of words in each sentence, so that the number of notes in each rhythm is consistent with the number of words in each sentence (not considering the situation where one word has multiple notes or one note has multiple words). Specifically, it includes the following contents:
[0042] 1. Build a Rhythm Group Database
[0043] Collect some music scores, take 4 / 4 time as an example, set the quantization length SPQ of each beat to 4, and extract its phrases, rhythm, and relationship information between phrases.
[0044] A musical segment P can be represented as a sequence of K phrases: P = S0…S K-1 .
[0045] The i-th sentence S i The number of measures that contain the phrase body b i , the position of the first note of the phrase relative to the first measure of the phrase Δst i , rhythm sequence The length of the rhythm sequence N i =16×b i +Δst i , phrase word count The position of the last note of the phrase relative to the bar line at the end of the phrase Δlast i .
[0046] in,
[0047]
[0048] It can be obtained that the total number of measures in a music segment is The total rhythm sequence length is A group of similar rhythms in a musical passage, whose slight differences are due to the change in the number of words in the lyrics, can be replaced musically in the passage. This group of rhythms is defined as belonging to a rhythm group G. The structure of the passage is represented by which rhythm group each phrase belongs to. There are N rhythm groups in the analyzed passage. G pcs, g i ∈{1,2,...,N G} indicates that the i-th phrase belongs to the rhythm group Arr=g0...g K-1 Indicates the structure of a musical segment.
[0049] The minimum number of words in each line of lyrics is n. min , the maximum number of characters is n max. In each rhythm group, based on the rhythm of the original song, expand the rhythm of each word, with at least one rhythm for each word. m,n,j Indicates rhythm group G m ,m∈{1,2,...,N G} is n, n∈[n min ,n max ], the rhythms in a rhythm group need to meet the following conditions:
[0050] 1) The differences between rhythms with the same b value and similar n value within a rhythm group should be as small as possible;
[0051] 2) It needs to be packaged under the music segment structure Arr, and various possible rhythm combinations can be spliced. min,m Indicates rhythm group G m The minimum value of Δst in , Δlast max,m Indicates rhythm group G m The maximum value of Δlast in N gap is the minimum permissible phrase interval, then for i∈{1,2,...,K-1}:
[0052]
[0053] For each segment, a segment structure and several rhythm groups can be constructed. If possible, construct a segment structure and rhythm group, or apply the rhythm group to a segment structure different from the original song. Make sure that all the optional ranges of the number of sentences have at least one segment structure.
[0054] In summary, the obtained rhythm group database includes: M music segment structures, each music segment structure has a corresponding rhythm group.
[0055] 2. Use the Rhythm Group Database for Rhythm Splicing
[0056] Select a music segment structure Arr=g0...g with the required number of sentences K in the database K-1 , which contains rhythm group N G The rhythm group of the i-th sentence is the rhythm group By Rhythm Section Get b of sentence i i and Δst i The number of words required for the i-th sentence is n i , then in the rhythm group In, from the word number n i Randomly select the jth rhythm from several rhythms i , which can be recorded as N i =16×b i +Δst i .
[0057] The rhythm of each phrase is spliced to obtain the rhythm of the entire music segment. When splicing, the phrases are spliced from front to back, and the main bar of the next phrase is adjacent to the main bar of the previous phrase, and the weak start of the next phrase covers the end of the main bar of the previous phrase. It can be guaranteed that when using the rhythm group database constructed according to this method, the first note of the next phrase is after the last note of the previous phrase, and there are at least N gap distance.
[0058] Specifically, the total rhythm sequence length after splicing is The total rhythm sequence is R = r0...r N-1 , the calculation process of R is:
[0059] for k←0toN-1:
[0060] r k ←0
[0061] for i←0to K-1:
[0062] for j←0to N i -1:
[0063]
[0064] r pos ←r i,j
[0065] By selecting different music structure, each phrase can generate a new music rhythm by selecting a different rhythm that matches the number of words in the rhythm group.
[0066] By using this application example, a small amount of data sets can be used without training to quickly generate the required rhythm, and the generated rhythm has high quality per phrase, high phrase sense and stable phrase relationship. The generated rhythm can meet the requirements of the number of phrases and the number of words per phrase within the agreed range without any occasional errors caused by the use of probability model sampling, and multiple results can be produced.
[0067] According to an embodiment of the present application, a target detection device is provided. Figure 2 is a schematic diagram of the structure of an information processing device according to an embodiment of the present application. Figure 2As shown, it includes: an acquisition module 41, used to obtain the number of sentences of any one lyric within a predetermined range and the range of the number of words in each sentence of the lyrics; a splicing module 42, used to perform rhythm splicing according to the constructed rhythm group database to obtain rhythm information corresponding to any one lyric; wherein the rhythm information matches the number of sentences of any one lyric within the predetermined range and the range of the number of words in each sentence of the lyrics, and the number of tones in each sentence of the rhythm information is consistent with the number of words in each sentence of the lyrics.
[0068] In one embodiment, the device further includes: a synthesis module, configured to synthesize a melody according to the rhythm information to obtain a target melody.
[0069] In one embodiment, it also includes: a first extraction module, used to extract music score information from song information; a second extraction module, used to extract phrase information, rhythm information and the relationship information of the number of words between each sentence of lyrics from the music score information according to a preset beat; a construction module, used to obtain the constructed rhythm group database based on the phrase information, the rhythm information and the relationship information of the number of words between each sentence of lyrics.
[0070] In one embodiment, the constructed rhythm group database includes: a music segment structure, and multiple rhythm group sequences corresponding to the music segment structure; wherein the music segment structure is used to represent a target rhythm group sequence to which phrase information belongs among the multiple rhythm group sequences.
[0071] In one embodiment, the construction module is used to construct the rhythm of each sentence in each rhythm group according to the phrase information, the rhythm information and the word number relationship information between each sentence of the lyrics, so as to obtain the constructed rhythm group database.
[0072] In one embodiment, the construction module is used to: obtain the original music section structure; apply the rhythm of each sentence in each rhythm group constructed according to the phrase information, the rhythm information and the word number relationship information between each sentence of the lyrics to the original music section structure to obtain the constructed rhythm group database.
[0073] In one embodiment, the construction module is used to: extract multiple music segment structures from the constructed rhythm group database, the multiple music segment structures include: music segment structures that match the number of sentences of multiple lyrics within the predetermined range; obtain multiple rhythm group sequences corresponding to the multiple music segment structures based on the multiple music segment structures; extract the rhythm group sequence for each phrase from the multiple rhythm group sequences, the rhythm group sequence for each phrase matches the word number range of each sentence of the lyrics; perform the rhythm splicing based on the rhythm group sequence for each phrase to obtain the rhythm information of the entire music segment.
[0074] The functions of each module in each device in the embodiments of the present application can be found in the corresponding description in the above method, and will not be repeated here.
[0075] According to an embodiment of the present application, the present application also provides an electronic device and a readable storage medium.
[0076] like Figure 3 , is a block diagram of an electronic device for implementing the information processing method of an embodiment of the present application. The electronic device can be the aforementioned deployment device or proxy device. The electronic device is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workbenches, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device can also represent various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, wearable devices, and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely examples, and are not intended to limit the implementation of the present application described and / or required herein.
[0077] like Figure 3 As shown, the electronic device includes: one or more processors 801, memory 802, and interfaces for connecting various components, including high-speed interfaces and low-speed interfaces. Various components are interconnected using different buses and can be installed on a common mainboard or installed in other ways as needed. The processor can process instructions executed in the electronic device, including instructions stored in or on the memory to display the graphical information of the GUI on an external input / output device (such as a display device coupled to the interface). In other embodiments, if necessary, multiple processors and / or multiple buses can be used together with multiple memories and multiple memories. Similarly, multiple electronic devices can be connected, and each device provides some necessary operations (for example, as a server array, a group of blade servers, or a multi-processor system). Figure 3 A processor 801 is taken as an example.
[0078] The memory 802 is a non-transient computer-readable storage medium provided in the present application. The memory stores instructions executable by at least one processor to enable the at least one processor to perform the information processing method provided in the present application. The non-transient computer-readable storage medium of the present application stores computer instructions, which are used to enable a computer to perform the information processing method provided in the present application.
[0079] The memory 802 is a non-transient computer-readable storage medium that can be used to store non-transient software programs, non-transient computer executable programs and modules, such as program instructions / modules corresponding to the information processing method in the embodiment of the present application. The processor 801 executes various functional applications and data processing of the server by running the non-transient software programs, instructions and modules stored in the memory 802, that is, implementing the information processing method in the above method embodiment.
[0080] The memory 802 may include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application required for at least one function; the data storage area may store data created according to the use of the electronic device, etc. In addition, the memory 802 may include a high-speed random access memory, and may also include a non-transient memory, such as at least one disk storage device, a flash memory device, or other non-transient solid-state storage device. In some embodiments, the memory 802 may optionally include a memory remotely arranged relative to the processor 801, and these remote memories may be connected to the electronic device via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.
[0081] The electronic device of the information processing method may further include: an input device 803 and an output device 804. The processor 801, the memory 802, the input device 803 and the output device 804 may be connected via a bus or other means. Figure 3 The example of connecting through bus is taken in the following.
[0082] The input device 803 can receive input digital or character information, and generate key signal input related to user settings and function control of the electronic device, such as a touch screen, a keypad, a mouse, a track pad, a touch pad, an indicator rod, one or more mouse buttons, a trackball, a joystick and other input devices. The output device 804 may include a display device, an auxiliary lighting device (e.g., an LED) and a tactile feedback device (e.g., a vibration motor), etc. The display device may include, but is not limited to, a liquid crystal display (LCD), a light emitting diode (LED) display and a plasma display. In some embodiments, the display device may be a touch screen.
[0083] Various implementations of the systems and techniques described herein can be realized in digital electronic circuit systems, integrated circuit systems, dedicated ASICs (application specific integrated circuits), computer hardware, firmware, software, and / or combinations thereof. These various implementations can include: being implemented in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which can be a special purpose or general purpose programmable processor that can receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit data and instructions to the storage system, the at least one input device, and the at least one output device.
[0084] These computer programs (also referred to as programs, software, software applications, or code) include machine instructions for programmable processors and can be implemented using high-level procedural and / or object-oriented programming languages, and / or assembly / machine languages. As used herein, the terms "machine-readable medium" and "computer-readable medium" refer to any computer program product, device, and / or means (e.g., disk, optical disk, memory, programmable logic device (PLD)) for providing machine instructions and / or data to a programmable processor, including a machine-readable medium that receives machine instructions as a machine-readable signal. The term "machine-readable signal" refers to any signal for providing machine instructions and / or data to a programmable processor.
[0085] To provide interaction with a user, the systems and techniques described herein can be implemented on a computer having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and pointing device (e.g., a mouse or trackball) through which the user can provide input to the computer. Other types of devices can also be used to provide interaction with the user; for example, the feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user can be received in any form (including acoustic input, voice input, or tactile input).
[0086] The systems and techniques described herein may be implemented in a computing system that includes back-end components (e.g., as a data server), or a computing system that includes middleware components (e.g., an application server), or a computing system that includes front-end components (e.g., a user computer with a graphical user interface or a web browser through which a user can interact with implementations of the systems and techniques described herein), or a computing system that includes any combination of such back-end components, middleware components, or front-end components. The components of the system may be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: a local area network (LAN), a wide area network (WAN), and the Internet.
[0087] A computer system may include clients and servers. Clients and servers are generally remote from each other and usually interact through a communication network. The relationship of client and server is generated by computer programs running on respective computers and having a client-server relationship to each other.
[0088] It should be understood that the various forms of processes shown above can be used to reorder, add or delete steps. For example, the steps recorded in this application can be executed in parallel, sequentially or in different orders, as long as the expected results of the technical solution disclosed in this application can be achieved, and this document is not limited here.
[0089] The above specific implementations do not constitute a limitation on the protection scope of this application. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions can be made according to design requirements and other factors. Any modifications, equivalent substitutions and improvements made within the spirit and principles of this application should be included in the protection scope of this application.
Claims
1. An information processing method, characterized in that: The method comprises: Get the number of sentences of any lyric within a predetermined range and the range of the number of words in each sentence; Extracting music score information from song information; Extracting phrase information, rhythm information and word count relationship information of each line of lyrics from the music score information according to a preset beat; According to the phrase information, the rhythm information and the word count relationship information between each sentence of the lyrics, the constructed rhythm group database is obtained; Rhythm splicing is performed according to the constructed rhythm group database to obtain rhythm information corresponding to any one of the lyrics; wherein the rhythm information matches the number of sentences of any one of the lyrics within the predetermined range and the range of the number of words in each sentence of the lyrics, and the number of notes in each sentence of the rhythm information is consistent with the number of words in each sentence of the lyrics.
2. The method according to claim 1, characterized in that The method further comprises: Melody synthesis is performed according to the rhythm information to obtain a target melody.
3. The method according to claim 1 or 2, characterized in that: The constructed rhythm group database includes: A music segment structure, and a plurality of rhythm group sequences corresponding to the music segment structure; wherein the music segment structure is used to represent a target rhythm group sequence to which the phrase information belongs among the plurality of rhythm group sequences.
4. The method according to claim 1, characterized in that: The constructed rhythm group database is obtained according to the phrase information, the rhythm information and the word number relationship information between each sentence of the lyrics, including: The rhythm of each sentence in each rhythm group is constructed according to the phrase information, the rhythm information and the word number relationship information of each sentence of the lyrics, so as to obtain the constructed rhythm group database.
5. The method according to claim 1, characterized in that The constructed rhythm group database is obtained according to the phrase information, the rhythm information and the word number relationship information between each sentence of the lyrics, including: Get the original music segment structure; The rhythm of each sentence in each rhythm group constructed according to the phrase information, the rhythm information and the word number relationship information between each sentence of the lyrics is applied to the original music section structure to obtain the constructed rhythm group database.
6. The method according to claim 1 or 2, characterized in that: The rhythm splicing is performed according to the constructed rhythm group database to obtain the rhythm information corresponding to any of the lyrics, including: Extracting a plurality of music segment structures from the constructed rhythm group database, the plurality of music segment structures comprising: a music segment structure matching the number of sentences of a plurality of lyrics within the predetermined range; According to the multiple music section structures, a plurality of rhythm group sequences corresponding to the multiple music section structures are obtained; Extracting a rhythm group sequence for each phrase from the plurality of rhythm group sequences, wherein the rhythm group sequence for each phrase matches the word count range of each sentence of the lyrics; The rhythm splicing is performed according to the rhythm group sequence for each phrase to obtain the rhythm information of the entire music section.
7. An information processing device, characterized in that: The device comprises: An acquisition module, used to acquire the number of sentences of any lyric within a predetermined range and the range of the number of words of each sentence of the lyric; A first extraction module, used for extracting music score information from song information; A second extraction module is used to extract phrase information, rhythm information and word number relationship information of each sentence of lyrics from the music score information according to a preset beat; A construction module, used for obtaining the constructed rhythm group database according to the phrase information, the rhythm information and the word number relationship information between each sentence of the lyrics; A splicing module is used to perform rhythm splicing according to the constructed rhythm group database to obtain rhythm information corresponding to any one of the lyrics; wherein the rhythm information matches the number of sentences of any one of the lyrics within the predetermined range and the number of words in each sentence of the lyrics, and the number of tones in each sentence of the rhythm information is consistent with the number of words in each sentence of the lyrics.
8. The device according to claim 7, characterized in that The device also includes: The synthesis module is used to synthesize the melody according to the rhythm information to obtain the target melody.
9. The device according to claim 7 or 8, characterized in that The constructed rhythm group database includes: a music segment structure, and a plurality of rhythm group sequences corresponding to the music segment structure; wherein the music segment structure is used to represent a target rhythm group sequence to which phrase information belongs among the plurality of rhythm group sequences.
10. The device according to claim 7, characterized in that Building blocks for: The rhythm of each sentence in each rhythm group is constructed according to the phrase information, the rhythm information and the word number relationship information of each sentence of the lyrics, so as to obtain the constructed rhythm group database.
11. The device according to claim 7, characterized in that The building blocks are used to: Get the original music segment structure; The rhythm of each sentence in each rhythm group constructed according to the phrase information, the rhythm information and the word number relationship information between each sentence of the lyrics is applied to the original music section structure to obtain the constructed rhythm group database.
12. The device according to claim 7 or 8, characterized in that The building blocks are used to: Extracting a plurality of music segment structures from the constructed rhythm group database, the plurality of music segment structures comprising: a music segment structure matching the number of sentences of a plurality of lyrics within the predetermined range; According to the multiple music section structures, a plurality of rhythm group sequences corresponding to the multiple music section structures are obtained; Extracting a rhythm group sequence for each phrase from the plurality of rhythm group sequences, wherein the rhythm group sequence for each phrase matches the word count range of each sentence of the lyrics; The rhythm splicing is performed according to the rhythm group sequence for each phrase to obtain the rhythm information of the entire music section.
13. An electronic device comprising: at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute the method according to any one of claims 1 to 6.
14. A non-transitory computer-readable storage medium storing computer instructions, wherein the computer instructions are used to cause the computer to execute the method of any one of claims 1 to 6.
