WO2020000751A1 - Automatic composition method and apparatus, and computer device and storage medium - Google Patents

Automatic composition method and apparatus, and computer device and storage medium Download PDF

Info

Publication number
WO2020000751A1
WO2020000751A1 PCT/CN2018/108851 CN2018108851W WO2020000751A1 WO 2020000751 A1 WO2020000751 A1 WO 2020000751A1 CN 2018108851 W CN2018108851 W CN 2018108851W WO 2020000751 A1 WO2020000751 A1 WO 2020000751A1
Authority
WO
WIPO (PCT)
Prior art keywords
song
arpeggio
intro
user
sequence
Prior art date
Application number
PCT/CN2018/108851
Other languages
French (fr)
Chinese (zh)
Inventor
梅亚琦
刘奡智
王健宗
肖京
Original Assignee
平安科技(深圳)有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 平安科技(深圳)有限公司 filed Critical 平安科技(深圳)有限公司
Publication of WO2020000751A1 publication Critical patent/WO2020000751A1/en

Links

Classifications

    • GPHYSICS
    • G10MUSICAL INSTRUMENTS; ACOUSTICS
    • G10HELECTROPHONIC MUSICAL INSTRUMENTS; INSTRUMENTS IN WHICH THE TONES ARE GENERATED BY ELECTROMECHANICAL MEANS OR ELECTRONIC GENERATORS, OR IN WHICH THE TONES ARE SYNTHESISED FROM A DATA STORE
    • G10H1/00Details of electrophonic musical instruments
    • G10H1/36Accompaniment arrangements
    • G10H1/38Chord
    • GPHYSICS
    • G10MUSICAL INSTRUMENTS; ACOUSTICS
    • G10HELECTROPHONIC MUSICAL INSTRUMENTS; INSTRUMENTS IN WHICH THE TONES ARE GENERATED BY ELECTROMECHANICAL MEANS OR ELECTRONIC GENERATORS, OR IN WHICH THE TONES ARE SYNTHESISED FROM A DATA STORE
    • G10H7/00Instruments in which the tones are synthesised from a data store, e.g. computer organs
    • GPHYSICS
    • G10MUSICAL INSTRUMENTS; ACOUSTICS
    • G10HELECTROPHONIC MUSICAL INSTRUMENTS; INSTRUMENTS IN WHICH THE TONES ARE GENERATED BY ELECTROMECHANICAL MEANS OR ELECTRONIC GENERATORS, OR IN WHICH THE TONES ARE SYNTHESISED FROM A DATA STORE
    • G10H2210/00Aspects or methods of musical processing having intrinsic musical character, i.e. involving musical theory or musical parameters or relying on musical knowledge, as applied in electrophonic musical tools or instruments
    • G10H2210/101Music Composition or musical creation; Tools or processes therefor
    • G10H2210/111Automatic composing, i.e. using predefined musical rules

Definitions

  • the present invention relates to the field of computer technology, and in particular, to an automatic composition method, device, computer equipment, and storage medium.
  • Algorithmic composition has a history of decades, but no iconic results have appeared so far.
  • the present invention proposes an automatic composition method, device, computer equipment, and storage medium.
  • the song is generated according to a preset composition rule based on a start sound and a song type input by a user, and aims to solve the existing automatic compilation.
  • Music software requires the user to have a certain knowledge of music theory before it can be used smoothly.
  • An automatic composition method includes:
  • a target is selected from the intro, the interlude, the interlude and the endluo, and the target and the main melody are spliced in order to generate a song.
  • the invention also provides an automatic composition device, the device includes:
  • a first acquisition module configured to acquire more than three start sounds input by a user
  • a processing module configured to perform chord decomposition on the three or more start notes input by the user and perform chord inversion after the chord decomposition according to the harmony theory
  • Arpeggio sequence generation module is used to randomly generate four arpeggio sequences corresponding to chords after the chords are transposed;
  • a second acquisition module configured to acquire a song type selected by the user
  • a first obtaining module configured to assign corresponding music elements to the four arpeggio sequences according to the preset composition rule and the song type to obtain an intro, an intro, an interlude, and an ender;
  • a second obtaining module configured to randomly tune a melody corresponding to the song type from the music library to obtain a main melody
  • a song generating module is configured to select the intro, the intro, the interlude, and the end in accordance with the preset composition rule, and splice the target and the main melody in order to generate A song.
  • the present invention also provides a computer device including a memory and a processor.
  • the memory stores computer-readable instructions.
  • the processor executes the computer-readable instructions, the steps of the method according to any one of the foregoing are implemented.
  • the present invention also provides a computer non-volatile readable storage medium on which computer readable instructions are stored, and when the computer readable instructions are executed by a processor, the steps of the method according to any one of the foregoing are implemented.
  • the present invention has the beneficial effect that the song is generated according to a preset composition rule by the user's input starting sound and song type, and does not require the user to have a certain knowledge of music theory, and the user can compose, which aims to solve the current problem.
  • Some automatic arranger software require users to have a certain knowledge of music theory before they can use it smoothly.
  • FIG. 1 is a flowchart of an automatic composition method provided by an embodiment of the present invention
  • FIG. 2 is a functional block diagram of an automatic composition device provided by an embodiment of the present invention.
  • FIG. 3 is a schematic block diagram of a structure of a computer device provided by an embodiment of the present invention.
  • an embodiment of the present invention provides an automatic composition method.
  • the method includes the following steps:
  • Step S101 Acquire more than three start sounds input by a user.
  • More than three start sounds input by the user are obtained.
  • three start sounds input by the user are obtained.
  • composition UI interface the user clicks to create a new song, and enters more than three of the multiple notes.
  • step S101 includes:
  • the initial sound is displayed by using a virtual key to simulate a piano keyboard.
  • step S101 the method includes:
  • the automatic composition device is connected to an external device, and the user inputs more than three start sounds through the external device.
  • the external device as an electronic keyboard as an example
  • the electronic keyboard by connecting with the electronic keyboard, when the user plays the electronic keyboard At this time, the electronic keyboard generates and outputs electric signals corresponding to the notes played by the user, and according to the electric signals, three or more starting sounds played by the user can be obtained, which is convenient for the user.
  • step S101 the method includes:
  • the user hums three or more start sounds, receives three or more start sounds from the user, and extracts three or more start sounds, simplifying the acquisition of three or more start sounds, even if he does not understand how to operate Users of piano keyboards can also create music by humming, which is convenient for users to input the initial sound.
  • Step S102 According to the harmony theory, perform chord decomposition on the three or more starting sounds input by the user and perform chord inversion after the chord decomposition.
  • Step S103 After the chords are transposed, randomly generate four arpeggio sequences corresponding to the chords.
  • the three or more starting sounds obtained by the user are processed.
  • the processing method is to perform chord decomposition first, and then perform chord inversion. After the chord inversion is completed, four arpeggio sequences are randomly generated, where the four arpeggio sequences correspond to the chords.
  • chord decomposition of the three start sounds is specifically: adjusting three arbitrary start sounds to all within one octave, and naming the root sounds from low to high, Three and five tones.
  • chord transposition is performed.
  • the chord transposition is specifically: the chord with the lowest note is called the home chord, and the chord inversion is called with the third and fifth notes.
  • the third chord can have For two transpositions, the lowest transposition with three notes is the first transposition (sixth chord), and the transposition with the fifth note is the second transposition (fourth and sixth chords).
  • the arpeggio sequence is specifically: the arpeggio sequence is randomly selected from the corresponding original chords, six chords, four or six chords, and from low to high (up) or from high to low (down) ) Repeat regularly.
  • Step S104 Acquire a song type selected by the user.
  • the user After the user finishes entering more than three start sounds, the user is required to select a song type, and after the user finishes selecting the song type, the song type selected by the user is obtained.
  • the song type includes song style and song emotion.
  • step S104 includes:
  • the song style pops up for the user to choose.
  • the song emotion pops up for the user to choose.
  • the user needs to choose an emotion from the song emotions.
  • the song type selected by the user is obtained. In the case where the user does not have knowledge of music theory, composition is performed by selecting a song type.
  • step S104 the method includes:
  • a song style pops up for the user to select, and after the user selects one of the song styles, the song type selected by the user is obtained.
  • composition is performed by selecting a song type.
  • step S104 the method includes:
  • the song emotion pops up for the user to select, and after the user selects one of the song emotions, the song type selected by the user is obtained.
  • composition is performed by selecting a song type.
  • the above-mentioned song styles include pop, classical, jazz and folk songs; the above-mentioned song emotions include happiness, sadness, freshness and nostalgia.
  • Step S105 according to the preset composition rules and song types, assign corresponding music elements to the four arpeggio sequences to obtain intros, intros, endoss, and endos;
  • Step S106 Randomly tune a melody corresponding to the song type from the music library to obtain the main melody
  • Step S107 Select among the intro, intro, interlude and ending according to the preset composition rules, splicing the target and the main melody in order to generate a song.
  • the corresponding four elements of the arpeggio sequence are assigned. After completing the four elements of the arpeggio sequence, obtain Intro, Intro, Endo and Endo. After obtaining four pieces of intro, intro, end, and ending, according to the song type selected by the user, randomly select a corresponding melody from the music library to obtain the main melody.
  • the music library contains a large number of Song MIDI format, and classified by song style, song emotional tags.
  • the target is selected according to the preset composition rule. If the structure of the preset composition rule is five-section, the five-section pattern is intro, intro, main melody, end intro, and end intro, the target is selected as intro.
  • Intro, interlude, and ending if the preset composition structure in the composition rules is three-stage, the three-stage is the intro, main melody, and ending, then select the target as intro, ending, if By default, the composition structure in the composition rules is two-stage, and the two-stage composition is the intro and main melody. The target is selected as the intro. Take the five-section style as an example. After obtaining the intro, intro, end, and ending, randomly select a melody corresponding to the type of song from the music library to obtain the main melody. After the five pieces of music, interlude, ending, and main melody, the prelude, interlude, main melody, interlude, and endluo are spliced in order to generate songs and complete the composition. Compose according to the five intro, intro, intro, end, and main melody, making the composition difficult and efficient.
  • the preset composition rules are written according to the music rules, including basic music theory, scales, arpeggios, harmony, polyphony, orchestration, rhythm, and melody structure.
  • the preset composition rules are based on factors such as basic music theory, scales, arpeggios, harmony, polyphony, orchestration, rhythm, tempo, and melody structure, and different parameters are set for specific styles and emotions.
  • the scales use the blues scale
  • the arpeggios and harmonies perform the corresponding changes in the blues scale.
  • the orchestration uses the saxophone template, and the rhythm is mostly split.
  • the main melody is adjusted from the music library compiled by the musician according to the specific parameters of the selected style and emotion, and the existing melody segment is adjusted, and then the melody segment is horizontally, vertically, transposed, shifted, reflected, retrograde, enlarged, and reduced. Transform to increase the degree of freedom of the main theme.
  • the main accompaniment uses the corresponding style and emotion texture template written by the musician.
  • the song type selected by the user is sentimental.
  • the preset composition rules arrange basic music theory, scales, arpeggios, harmony, polyphony, orchestration, rhythm to the four arpeggio sequences, and make the four arpeggio sequences.
  • the obtained intro, intro, interlude, and ending are in a sad type, and the intro, prelude, interlude, and endluo are played to make the user listen. It feels sad.
  • the four arpeggio sequences include the first and second arpeggio sequences, both of which are ascending or descending arpeggios, and the third and fourth arpeggio sequences, which are both ascending or descending arpeggios. In step S105, they include:
  • composition rules and song types arrange the music elements required for the intro to the first arpeggio sequence to obtain the intro;
  • composition rules and song types arrange the music elements required for the prelude to the second arpeggio sequence to obtain the prelude
  • composition rules and song types arrange the music elements required for the interlude to the third arpeggio sequence to obtain the interlude;
  • composition rules and song types arrange the music elements required for the ending of the fourth arpeggio sequence to obtain the ending.
  • the intro and intro are both selected ascending or descending arpeggios, and the intro and ending are both selected ascending or descending arpeggios;
  • the harmony is randomly selected from the corresponding original chords, sixth chords, fourth and sixth chords, each The two beats appear once; the orchestration and rhythm use a large number of templates written by musicians as background tracks.
  • the music elements are arranged by corresponding four arpeggio sequences, including harmony, orchestration, and rhythm.
  • the preset composition rules include basic music theory, scales, arpeggios, harmony, polyphony, Orchestration, rhythm and melody structure, etc., need to correspond to different song styles and song emotions respectively.
  • By analyzing the melody of the arpeggio sequence select the best chord for accompaniment, and then determine the accompaniment sound according to the selected song style and song emotion.
  • Type, orchestration, and rhythm Specifically, the user enters the three starting sounds mi, la, and xi through the simulated piano keyboard on the UI interface, and selects the song style as folk songs and the song emotion as nostalgia.
  • the pattern corresponds to the gentle and beautiful style of the Arpeggio sequence, and chooses a gentle, smooth and beautiful harmony in the music library according to the accompaniment pattern, song style and song emotion, and then presets the composition rules according to the selected song style and song emotion Select the accompaniment instrument as the gourd, and then synthesize the four arpeggio sequences and the harmony played by the gourd to add the accompaniment rhythm and accompaniment of the most suitable user-selected song style and song emotion to the four arpeggio sequences.
  • Musical instruments to enrich the content of the work.
  • the song style selected by the user is rock and the emotion of the song is happy
  • the three start notes of mi, la, and xi are first decomposed into three chords, and then the chords are transposed to generate four arpeggios corresponding to the chords.
  • Sequence then analyze and arrange the melody of the four arpeggio sequences according to the preset composition rules, make the melody of the four arpeggio sequences correspond to the shock and fast-paced style of rock, and determine the four arpeggio sequences.
  • the accompaniment pattern corresponds to the rock style, so select the heavy metal harmony in the music library, and select the accompaniment instrument for the drum and electronic guitar through preset composition rules, and then change the arpeggio sequence and the drum and The accompaniment of the electronic guitar is used to synthesize the harmonies, and finally output the four-segment arpeggio sequence that completes the music elements of the four-segment arpeggio sequence.
  • the three starting sounds of mi, la, and xi are first decomposed and then performed.
  • Chord inversion randomly generate four arpeggio sequences corresponding to the chord.
  • the music library includes all the possibilities for the decomposition of the third chord.
  • the arpeggio sequence is input into the preset composition rule.
  • the preset composition rule analyzes the melody of the four-segment arpeggio sequence, and then re-arranges the four-segment arpeggio sequence melody according to the popular style selected by the user and the fresh mood mode to conform to the popular And fresh style characteristics, and determine the popular and fresh style accompaniment patterns that match the four arpeggio sequences, select the harmony that corresponds to the song style and song emotion from the music library, and the accompaniment instruments are guitars and drums, etc. , And play to generate accompaniment harmonies completed by guitars and drums, and finally synthesize four arpeggio sequences and accompaniment harmonies to output a complete process.
  • step S107 the method includes:
  • the ending of the ending is set to the root of the third chord, and the ending of the ending sound stays at the root of the third chord to make the song officially end.
  • step S107 the method includes:
  • a song corresponding to the song format is generated.
  • a selection box pops up to let the user select the song format.
  • Song formats include MIDI, MP3, and staff notation. The user selects one of MIDI, MP3, and staff notation. After the user makes a selection, according to the song mode selected by the user, Continue to generate songs, users choose the format of the generated songs according to their preferences or habits, in order to better read and understand the song information.
  • step S107 the method includes:
  • the duration of the song adjust the target and the duration of the main melody according to the preset proportions of the total length of the intro, intro, interlude, ending, and main melody;
  • a pop-up selection box for the user to select the song duration is displayed.
  • the song duration includes 30 seconds, 60 seconds, and 90 seconds.
  • the user selects one of 30 seconds, 60 seconds, and 90 seconds.
  • the length of the song selected by the user according to the preset proportions of the intro, intro, interlude, ending, and main melody respectively, adjust the target and main melody duration to generate a song corresponding to the duration of the song. Different, the intro, intro, interlude, ending, and main melody each have different preset proportions for the total duration.
  • the user selects the duration of the song according to their preferences or habits to better adapt to the user's listening habits.
  • the percentage of the total duration of each part is approximately: 20% intro, 10% intro, 40% in melody, 10% in interlude, 20% in end; 30-second songs: Intro 6s, Interlude 3s, Main Melody 12s, Interlude 3s, Endo 6s; Songs of 60 seconds duration: Intro 12s, Prelude 6s, Main Melody 24s, Interlude 6s, Endo 12s.
  • step S107 the method includes:
  • the generated songs are sorted and stored according to the selected song type.
  • Songs are sorted and stored, including pop, classical, jazz, folk, happy, sad, fresh and nostalgic. Specifically, the songs are classified according to the song types selected by the user, so that the songs are labeled with tags corresponding to the selected song types, which facilitates the management of the composed songs.
  • step S107 the method includes:
  • accompaniment tracks By adding accompaniment tracks to songs, such as piano, guitar, bass, and drums, etc., specifically, by obtaining accompaniment files corresponding to the selected song type in the music library and synthesizing multi-track works with the generated songs, the work is made More plump and more contagious.
  • the method After adding the generated song to the accompaniment track and performing a mixing operation to obtain a multi-track work, the method includes:
  • the generated multi-track song is synthesized with a pre-recorded human voice source file to obtain a song audio file.
  • the pre-established preset composition rules and music library are used for composition.
  • the music library contains a large number of songs and is classified according to the song style and song emotional tags.
  • the preset composition rules include substrate music theory, scales, arpeggios, and harmony. , Polyphony, orchestration, rhythm, and melody structure, corresponding to different song styles and song emotional tags.
  • the harmony theory three chords are decomposed by the user and then chord inversion is performed. Randomly generated Four arpeggio sequences corresponding to chords, and then the corresponding music elements of the four arpeggio sequences are arranged according to the preset composition rules and the song style and song emotion selected by the user.
  • the main melody is randomly selected and adjusted in the music library.
  • the ending of the ending is set to the root of the third chord.
  • the five music pieces are stitched in order, and the song is finally output.
  • the songs are created automatically, and the song creation efficiency is high, and the song style and song emotion selected by the user are added to the generated songs, which conforms to the user's preferences and improves the user experience.
  • the song is generated according to the preset composition rules by the user's starting sound and song type. It does not require the user to have a certain knowledge of music theory, and the user can compose. The purpose is to solve the existing automatic arrangement software that requires the user to have a certain Only the knowledge of music theory can be used smoothly.
  • an embodiment of the present invention provides an automatic composition device 1.
  • the device 1 includes a first acquisition module 11, a processing module 12, an arpeggio sequence generation module 13, a second acquisition module 14, a first acquisition module 15, The second obtaining module 16 and the song generating module 17.
  • the first obtaining module 11 is configured to obtain more than three start sounds input by a user.
  • More than three start sounds input by the user are obtained.
  • three start sounds input by the user are obtained.
  • composition UI interface the user clicks to create a new song, and enters more than three of the multiple notes.
  • the first obtaining module 11 includes:
  • the first sub-click acquisition module is used to acquire more than three start sounds input by a user clicking a virtual button.
  • the initial sound is displayed by using a virtual key to simulate a piano keyboard.
  • the first obtaining module 11 includes:
  • the first sub-peripheral acquisition module is configured to acquire more than three start sounds input by a user using a peripheral.
  • the automatic composition device is connected to an external device, and the user inputs more than three start sounds through the external device.
  • the external device as an electronic keyboard as an example
  • the electronic keyboard by connecting with the electronic keyboard, when the user plays the electronic keyboard At this time, the electronic keyboard generates and outputs electric signals corresponding to the notes played by the user, and according to the electric signals, three or more starting sounds played by the user can be obtained, which is convenient for the user.
  • the first obtaining module 11 includes:
  • the first sub-speech acquisition module is configured to acquire more than three start sounds of a voice input.
  • the user hums three or more start sounds, receives three or more start sounds from the user, and extracts three or more start sounds, simplifying the acquisition of three or more start sounds, even if he does not understand how to operate Users of piano keyboards can also create music by humming, which is convenient for users to input the initial sound.
  • the processing module 12 is configured to perform chord decomposition on three or more starting sounds input by the user and perform chord inversion after the chord decomposition according to the harmony theory.
  • the arpeggio sequence generating module 13 is configured to randomly generate four arpeggio sequences corresponding to the chords after the chords are transposed.
  • the three or more starting sounds obtained by the user are processed.
  • the processing method is to perform chord decomposition first, and then perform chord inversion. After the chord inversion is completed, four arpeggio sequences are randomly generated, where the four arpeggio sequences correspond to the chords.
  • chord decomposition of the three start sounds is specifically: adjusting three arbitrary start sounds to all within one octave, and naming the root sounds from low to high, Three and five tones.
  • chord transposition is performed.
  • the chord transposition is specifically: the chord with the lowest note is called the home chord, and the chord inversion is called with the third and fifth notes.
  • the third chord can have For two transpositions, the lowest transposition with three notes is the first transposition (sixth chord), and the transposition with the fifth note is the second transposition (fourth and sixth chords).
  • the arpeggio sequence is specifically: the arpeggio sequence is randomly selected from the corresponding original chords, six chords, four or six chords, and from low to high (up) or from high to low (down) ) Repeat regularly.
  • the second acquisition module 14 is configured to acquire a song type selected by the user.
  • the user After the user finishes entering more than three start sounds, the user is required to select a song type, and after the user finishes selecting the song type, the song type selected by the user is obtained.
  • the song type includes song style and song emotion.
  • the second obtaining module 14 includes:
  • the second sub-obtaining module is used to obtain the song style and song emotion selected by the user.
  • the song style pops up for the user to choose.
  • the song emotion pops up for the user to choose.
  • the user needs to choose an emotion from the song emotions.
  • the song type selected by the user is obtained. In the case where the user does not have knowledge of music theory, composition is performed by selecting a song type.
  • the second obtaining module 14 includes:
  • the second sub-obtaining module is used to obtain the song style selected by the user.
  • a song style pops up for the user to select, and after the user selects one of the song styles, the song type selected by the user is obtained.
  • composition is performed by selecting a song type.
  • the second obtaining module 14 includes:
  • the second sub-obtaining module is used to obtain the song emotion selected by the user.
  • the song emotion pops up for the user to select, and after the user selects one of the song emotions, the song type selected by the user is obtained.
  • composition is performed by selecting a song type.
  • the above-mentioned song styles include pop, classical, jazz and folk songs; the above-mentioned song emotions include happiness, sadness, freshness and nostalgia.
  • the first obtaining module 15 is configured to assign corresponding music elements to four arpeggio sequences according to preset composition rules and song types, and obtain intros, intros, endos, and endos;
  • the second obtaining module 16 is used to randomly tune a melody corresponding to a song type from the music library to obtain a main melody;
  • a song generating module 17 is used for selecting intro, intro, interlude and ending according to preset composition rules, and splicing the target and the main melody in order to generate a song.
  • the corresponding four elements of the arpeggio sequence are assigned. After completing the four elements of the arpeggio sequence, obtain Intro, Intro, Endo and Endo. After obtaining four pieces of intro, intro, end, and ending, according to the song type selected by the user, randomly select a corresponding melody from the music library to obtain the main melody.
  • the music library contains a large number of Song MIDI format, and classified by song style, song emotional tags.
  • the target is selected according to the preset composition rule. If the structure of the preset composition rule is five-section, the five-section pattern is intro, intro, main melody, end intro, and end intro, the target is selected as intro.
  • Intro, interlude, and ending if the preset composition structure in the composition rules is three-stage, the three-stage is the intro, main melody, and ending, then select the target as intro, ending, if By default, the composition structure in the composition rules is two-stage, and the two-stage composition is the intro and main melody. The target is selected as the intro. Take the five-section style as an example. After obtaining the intro, intro, end, and ending, randomly select a melody corresponding to the type of song from the music library to obtain the main melody. After the five pieces of music, interlude, ending, and main melody, the prelude, interlude, main melody, interlude, and endluo are spliced in order to generate songs and complete the composition. Compose according to the five intro, intro, intro, end, and main melody, making the composition difficult and efficient.
  • the preset composition rules are written according to the music rules, including basic music theory, scales, arpeggios, harmony, polyphony, orchestration, rhythm, and melody structure.
  • the preset composition rules are based on factors such as basic music theory, scales, arpeggios, harmony, polyphony, orchestration, rhythm, tempo, and melody structure, and different parameters are set for specific styles and emotions.
  • the scales use the blues scale
  • the arpeggios and harmonies perform the corresponding changes in the blues scale.
  • the orchestration uses the saxophone template, and the rhythm is mostly split.
  • the main melody is adjusted from the music library compiled by the musician according to the specific parameters of the selected style and emotion, and the existing melody segment is adjusted, and then the melody segment is horizontally, vertically, transposed, shifted, reflected, retrograde, enlarged, and reduced. Transform to increase the degree of freedom of the main theme.
  • the main accompaniment uses the corresponding style and emotion texture template written by the musician.
  • the song type selected by the user is sentimental.
  • the preset composition rules arrange basic music theory, scales, arpeggios, harmony, polyphony, orchestration, rhythm to the four arpeggio sequences, and make the four arpeggio sequences.
  • the obtained intro, intro, interlude, and ending are in a sad type, and the intro, prelude, interlude, and endluo are played to make the user listen. It feels sad.
  • the four arpeggio sequences include the first and second arpeggio sequences, both of which are ascending or descending arpeggio, and the third and fourth arpeggio sequences, which are both ascending or descending arpeggio.
  • the first selection module is used to select the first arpeggio sequence and the second arpeggio sequence as the arpeggio and intro arpeggio respectively;
  • the intro module is used to arrange the music elements required for the intro to the first arpeggio sequence according to preset composition rules and song types to obtain the intro;
  • Prelude module which is used to arrange the music elements required for the prelude to the second arpeggio sequence according to the preset composition rules and song types to obtain the prelude;
  • a second selection module configured to select the third arpeggio sequence and the fourth arpeggio sequence as the arpeggio of the interlude and the arpeggio of the ending;
  • the interlude module is used to arrange the music elements required for the interlude to the third arpeggio sequence according to the preset composition rules and song types to obtain the interlude;
  • the ending module is used to arrange the music elements required for the ending of the fourth arpeggio sequence according to the preset composition rules and song types to obtain the ending.
  • the intro and intro are both selected ascending or descending arpeggios, and the intro and ending are both selected ascending or descending arpeggios;
  • the harmony is randomly selected from the corresponding original chords, sixth chords, fourth and sixth chords, each The two beats appear once; the orchestration and rhythm use a large number of templates written by musicians as background tracks.
  • the music elements are arranged by corresponding four arpeggio sequences, including harmony, orchestration, and rhythm.
  • the preset composition rules include basic music theory, scales, arpeggios, harmony, polyphony, Orchestration, rhythm and melody structure, etc., need to correspond to different song styles and song emotions respectively.
  • By analyzing the melody of the arpeggio sequence select the best chord for accompaniment, and then determine the accompaniment sound according to the selected song style and song emotion.
  • Type, orchestration, and rhythm Specifically, the user enters the three starting sounds mi, la, and xi through the simulated piano keyboard on the UI interface, and selects the song style as folk songs and the song emotion as nostalgia.
  • the pattern corresponds to the gentle and beautiful style of the Arpeggio sequence, and chooses a gentle, smooth and beautiful harmony in the music library according to the accompaniment pattern, song style and song emotion, and then presets the composition rules according to the selected song style and song emotion Select the accompaniment instrument as the gourd, and then synthesize the four arpeggio sequences and the harmony played by the gourd to add the accompaniment rhythm and accompaniment of the most suitable user-selected song style and song emotion to the four arpeggio sequences.
  • Musical instruments to enrich the content of the work.
  • the song style selected by the user is rock and the emotion of the song is happy
  • the three start notes of mi, la, and xi are first decomposed into three chords, and then the chords are transposed to generate four arpeggios corresponding to the chords.
  • Sequence then analyze and arrange the melody of the four arpeggio sequences according to the preset composition rules, make the melody of the four arpeggio sequences correspond to the shock and fast-paced style of rock, and determine the four arpeggio sequences.
  • the accompaniment pattern corresponds to the rock style, so select the heavy metal harmony in the music library, and select the accompaniment instrument for the drum and electronic guitar through preset composition rules, and then change the arpeggio sequence and the drum and The accompaniment of the electronic guitar is used to synthesize the harmonies, and finally output the four-segment arpeggio sequence that completes the music elements of the four-segment arpeggio sequence.
  • the three starting sounds of mi, la, and xi are first decomposed and then performed.
  • Chord inversion randomly generate four arpeggio sequences corresponding to the chord.
  • the music library includes all the possibilities for the decomposition of the third chord.
  • the arpeggio sequence is input into the preset composition rule.
  • the preset composition rule analyzes the melody of the four-segment arpeggio sequence, and then re-arranges the four-segment arpeggio sequence melody according to the popular style selected by the user and the fresh mood mode to conform to the popular And fresh style characteristics, and determine the popular and fresh style accompaniment patterns that match the four arpeggio sequences, select the harmony that corresponds to the song style and song emotion from the music library, and the accompaniment instruments are guitars and drums, etc. , And play to generate accompaniment harmonies completed by guitars and drums, and finally synthesize four arpeggio sequences and accompaniment harmonies to output a complete process.
  • the song generation module 17 includes:
  • the ending sound module is used to set the ending sound of the ending to the root of the third chord if the target includes the ending.
  • the ending of the ending is set to the root of the third chord, and the ending of the ending sound stays at the root of the third chord to make the song officially end.
  • the song generation module 17 includes:
  • the first sub-song format obtaining module is used to obtain the song format selected by the user
  • the second sub-generating module is configured to generate a song in a format corresponding to the song format according to the song format.
  • a selection box pops up to let the user select the song format.
  • Song formats include MIDI, MP3, and staff notation. The user selects one of MIDI, MP3, and staff notation. After the user makes a selection, according to the song mode selected by the user, Continue to generate songs, users choose the format of the generated songs according to their preferences or habits, in order to better read and understand the song information.
  • the song generation module 17 includes:
  • the first sub-song duration acquisition module is used to obtain the song duration selected by the user
  • the length adjustment module is used to adjust the duration of the target and the main melody according to the preset proportions of the total length of the intro, intro, interlude, and main melody according to the duration of the song;
  • the third sub-generating module is used to generate a song of a duration corresponding to the duration of the song.
  • a pop-up selection box for the user to select the song duration is displayed.
  • the song duration includes 30 seconds, 60 seconds, and 90 seconds.
  • the user selects one of 30 seconds, 60 seconds, and 90 seconds.
  • the length of the song selected by the user according to the preset proportions of the intro, intro, interlude, ending, and main melody respectively, adjust the target and main melody duration to generate a song corresponding to the duration of the song. Different, the intro, intro, interlude, ending, and main melody each have different preset proportions for the total duration.
  • the user selects the duration of the song according to their preferences or habits to better adapt to the user's listening habits.
  • the percentage of the total duration of each part is approximately: 20% intro, 10% intro, 40% in melody, 10% in interlude, 20% in end; 30-second songs: Intro 6s, Interlude 3s, Main Melody 12s, Interlude 3s, Endo 6s; Songs of 60 seconds duration: Intro 12s, Prelude 6s, Main Melody 24s, Interlude 6s, Endo 12s.
  • Device 1 includes:
  • the first classification storage module is configured to classify and store the generated songs according to the selected song type.
  • Songs are sorted and stored, including pop, classical, jazz, folk, happy, sad, fresh and nostalgic. Specifically, the songs are classified according to the song types selected by the user, so that the songs are labeled with tags corresponding to the selected song types, which facilitates the management of the composed songs.
  • Device 1 includes:
  • the first multi-track generating module is configured to add the accompaniment track to the generated song and perform a mixing operation to obtain a multi-track work.
  • accompaniment tracks By adding accompaniment tracks to songs, such as piano, guitar, bass, and drums, etc., specifically, by obtaining accompaniment files corresponding to the selected song type in the music library and synthesizing multi-track works with the generated songs, the work is made More plump and more contagious.
  • the device 1 further includes:
  • a first synthesizing module is configured to synthesize the generated multi-track song with a pre-recorded human voice source file to obtain a song audio file.
  • the pre-established preset composition rules and music library are used for composition.
  • the music library contains a large number of songs and is classified according to the song style and song emotional tags.
  • the preset composition rules include substrate music theory, scales, arpeggios, and harmony. , Polyphony, orchestration, rhythm, and melody structure, corresponding to different song styles and song emotional tags.
  • the harmony theory three chords are decomposed by the user and then chord inversion is performed. Randomly generated Four arpeggio sequences corresponding to chords, and then the corresponding music elements of the four arpeggio sequences are arranged according to the preset composition rules and the song style and song emotion selected by the user.
  • the main melody is randomly selected and adjusted in the music library.
  • the ending of the ending is set to the root of the third chord.
  • the five music pieces are stitched in order, and the song is finally output.
  • the songs are created automatically, and the song creation efficiency is high, and the song style and song emotion selected by the user are added to the generated songs, which conforms to the user's preferences and improves the user experience.
  • the song is generated according to the preset composition rules by the user's starting sound and song type. It does not require the user to have a certain knowledge of music theory, and the user can compose. The purpose is to solve the existing automatic arrangement software that requires the user to have a certain Only the knowledge of music theory can be used smoothly.
  • a computer device is also provided in the embodiment of the present application.
  • the computer device may be a server, and its internal structure may be as shown in FIG. 3.
  • the computer device includes a processor, a memory, a network interface, and a database connected through a system bus.
  • the computer design processor is used to provide computing and control capabilities.
  • the memory of the computer device includes a non-volatile storage medium and an internal memory.
  • the non-volatile storage medium stores an operating system, computer-readable instructions, and a database.
  • the memory provides an environment for operating systems and computer-readable instructions in a non-volatile storage medium.
  • the database of the computer equipment is used to store data such as models of the automatic composition method.
  • the network interface of the computer device is used to communicate with an external terminal through a network connection.
  • the computer-readable instructions are executed by a processor to implement an automatic composition method.
  • the above processor executes the steps of the above-mentioned automatic composition method: obtaining more than three start sounds input by a user; performing chord decomposition on the three or more start sounds input by the user according to the harmony theory and performing the chord decomposition Chord inversion; after chord inversion, randomly generate four arpeggio sequences corresponding to the chords; obtain the song type selected by the user; according to the preset composition rule and the song type, the four arpeggios Arrange the corresponding music elements in the sound sequence to obtain the intro, intro, end, and end; randomly select a melody corresponding to the type of song from the music library to obtain the main melody; A target is selected from the intro, the intro, the interlude and the endluo, and the target and the main melody are spliced in order to generate a song.
  • the four arpeggio sequences include the first and second arpeggio sequences, both of which are ascending or descending arpeggios, and the third and fourth arpeggio sequences, which are both ascending or descending arpeggios.
  • the steps of assigning corresponding music elements to the four arpeggio sequences to obtain intro, intro, interlude, and ender include:
  • composition rule and the song type arrange the music elements required for the intro to the first arpeggio sequence to obtain the intro;
  • the fourth arpeggio sequence is arranged with the music elements required for the ending to obtain the ending.
  • a target is selected from among the intro, the intro, the interlude and the end, and the target and the main melody are spliced in order.
  • the steps to generate a song include:
  • the ending of the ending is set to the root of a third chord.
  • the step of obtaining the song type selected by the user includes:
  • the above-mentioned preset composition rules are written according to music rules, including basic music theory, scales, arpeggios, harmony, polyphony, orchestration, rhythm, and melody structure.
  • a target is selected from among the intro, the intro, the interlude and the end, and the target and the main melody are spliced in order.
  • the steps to generate a song include:
  • a song in a format corresponding to the song format is generated.
  • a target is selected from among the intro, the intro, the interlude and the end, and the target and the main melody are spliced in order.
  • the steps to generate a song include:
  • the target and the duration of the main melody are adjusted according to a preset proportion of the total length of the intro, the intro, the interlude, the end and the main melody, respectively.
  • a song of a duration corresponding to the duration of the song is generated.
  • FIG. 3 is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer equipment to which the solution of the present application is applied.
  • the computer device generates songs according to preset composition rules based on a start sound and a song type input by a user, and does not require the user to have a certain knowledge of music theory, and the user can compose, which aims to solve the existing automatic Arrangement software requires the user to have a certain knowledge of music theory before it can be used smoothly.
  • An embodiment of the present application further provides a computer non-volatile readable storage medium, which stores computer-readable instructions.
  • a computer non-volatile readable storage medium which stores computer-readable instructions.

Abstract

The present invention relates to an automatic composition method and apparatus, and a computer device and a storage medium. The method comprises: performing chord breaking and chord inversion on three or more starting notes; randomly generating four arpeggio sequences; orchestrating the four arpeggio sequences with musical elements to obtain a prelude, an interlude, a postlude and a coda; randomly transferring one piece of melody corresponding to the type of song to obtain a main melody; and selecting a target from the prelude, the interlude, the postlude and the coda, and splicing the target and the main melody in sequence to generate the song.

Description

自动作曲方法、装置、计算机设备和存储介质Automatic composition method, device, computer equipment and storage medium
本申请要求于2018年6月29日提交中国专利局、申请号为2018107153769,申请名称为“自动作曲方法、装置、计算机设备和存储介质”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。This application claims priority from a Chinese patent application filed with the Chinese Patent Office on June 29, 2018, with application number 2018107153769, and entitled "Automatic Composition Method, Device, Computer Equipment, and Storage Medium", the entire contents of which are incorporated by reference. In this application.
技术领域Technical field
本发明涉及计算机技术领域,特别涉及一种自动作曲方法、装置、计算机设备和存储介质。The present invention relates to the field of computer technology, and in particular, to an automatic composition method, device, computer equipment, and storage medium.
背景技术Background technique
算法作曲已经有数十年的历史,但是迄今还未出现标志性的成果。Algorithmic composition has a history of decades, but no iconic results have appeared so far.
在过去几十年中已经涌现了很多音乐作曲系统,其中采用了很多技术,如隐马尔科夫模型,生成语法,转换网络,混沌和自相似(分形),遗传算法,细胞自动机,神经网络和人工智能方法等等。现有的自动编曲软件需要用户具备一定的音乐理论知识才可流畅使用,对于没有音乐理论基础的大众用户来说,并不能通过自动编曲软件来进行创作,受众较小。Many music composition systems have emerged in the past few decades, including many techniques such as hidden Markov models, generative grammar, transformation networks, chaos and self-similarity (fractal), genetic algorithms, cellular automata, neural networks And artificial intelligence methods and much more. Existing automatic arranger software requires users to have a certain knowledge of music theory before it can be used smoothly. For the mass users who do not have a musical theory foundation, they cannot use the automatic arranger software to create, and the audience is small.
技术问题technical problem
针对现有技术不足,本发明提出一种自动作曲方法、装置、计算机设备和存储介质,通过用户输入的起始音和歌曲类型,根据预设作曲规则生成歌曲,旨在解决现有的自动编曲软件需要用户具备一定的音乐理论知识才可流畅使用的问题。In view of the shortcomings of the prior art, the present invention proposes an automatic composition method, device, computer equipment, and storage medium. The song is generated according to a preset composition rule based on a start sound and a song type input by a user, and aims to solve the existing automatic compilation. Music software requires the user to have a certain knowledge of music theory before it can be used smoothly.
技术解决方案Technical solutions
本发明提出的技术方案是:The technical solution proposed by the present invention is:
一种自动作曲方法,所述方法包括:An automatic composition method, the method includes:
获取用户输入的三个以上起始音;Get more than three start sounds input by the user;
根据和声理论,对所述用户输入的所述三个以上起始音进行和弦分解及在和弦分解之后进行和弦转位;Performing chord decomposition on the three or more start notes input by the user and performing chord inversion after the chord decomposition according to the harmony theory;
在和弦转位之后,随机生成与和弦对应的四段琶音序列;After the chords are transposed, four arpeggio sequences corresponding to the chords are randomly generated;
获取所述用户选择的歌曲类型;Obtaining a song type selected by the user;
根据所述预设作曲规则和所述歌曲类型,对所述四段琶音序列编配相应音乐要素,获得前奏、前间奏、尾间奏和尾奏;Arrange corresponding music elements to the four arpeggio sequences according to the preset composition rule and the song type to obtain intro, intro, end and end
从音乐库中随机抽调一段与所述歌曲类型对应的旋律,获得主旋律;Randomly select a melody corresponding to the song type from the music library to obtain the main melody;
根据所述预设作曲规则对所述前奏、所述前间奏、所述尾间奏和所述尾奏中选取目标,将所述目标与所述主旋律按顺序拼接,生成一歌曲。According to the preset composition rule, a target is selected from the intro, the interlude, the interlude and the endluo, and the target and the main melody are spliced in order to generate a song.
本发明还提供一种自动作曲装置,所述装置包括:The invention also provides an automatic composition device, the device includes:
第一获取模块,用于获取用户输入的三个以上起始音;A first acquisition module, configured to acquire more than three start sounds input by a user;
处理模块,用于根据和声理论,对所述用户输入的所述三个以上起始音进行和弦分解及在和弦分解之后进行和弦转位;A processing module, configured to perform chord decomposition on the three or more start notes input by the user and perform chord inversion after the chord decomposition according to the harmony theory;
琶音序列生成模块,用于在和弦转位之后,随机生成与和弦对应的四段琶音序列;Arpeggio sequence generation module is used to randomly generate four arpeggio sequences corresponding to chords after the chords are transposed;
第二获取模块,用于获取所述用户选择的歌曲类型;A second acquisition module, configured to acquire a song type selected by the user;
第一获得模块,用于根据所述预设作曲规则和所述歌曲类型,对所述四段琶音序列编配相应音乐要素,获得前奏、前间奏、尾间奏和尾奏;A first obtaining module, configured to assign corresponding music elements to the four arpeggio sequences according to the preset composition rule and the song type to obtain an intro, an intro, an interlude, and an ender;
第二获得模块,用于从音乐库中随机抽调一段与所述歌曲类型对应的旋律,获得主旋律;A second obtaining module, configured to randomly tune a melody corresponding to the song type from the music library to obtain a main melody;
歌曲生成模块,用于根据所述预设作曲规则对所述前奏、所述前间奏、所述尾间奏和所述尾奏中选取,将所述目标与所述主旋律按顺序拼接,生成一歌曲。A song generating module is configured to select the intro, the intro, the interlude, and the end in accordance with the preset composition rule, and splice the target and the main melody in order to generate A song.
本发明还提供一种计算机设备,包括存储器和处理器,所述存储器存储有计算机可读指令,所述处理器执行所述计算机可读指令时实现上述任一项所述的方法的步骤。The present invention also provides a computer device including a memory and a processor. The memory stores computer-readable instructions. When the processor executes the computer-readable instructions, the steps of the method according to any one of the foregoing are implemented.
本发明还提供一种计算机非易失性可读存储介质,其上存储有计算机可读指令,所述计算机可读指令被处理器执行时实现上述任一项所述的方法的步骤。The present invention also provides a computer non-volatile readable storage medium on which computer readable instructions are stored, and when the computer readable instructions are executed by a processor, the steps of the method according to any one of the foregoing are implemented.
有益效果Beneficial effect
根据上述的技术方案,本发明有益效果:通过用户输入的起始音和歌曲类型,根据预设作曲规则生成歌曲,并不需要用户具备一定的音乐理论知识,用户就能作曲,旨在解决现有的自动编曲软件需要用户具备一定的音乐理论知识才可流畅使用的问题。According to the above technical solution, the present invention has the beneficial effect that the song is generated according to a preset composition rule by the user's input starting sound and song type, and does not require the user to have a certain knowledge of music theory, and the user can compose, which aims to solve the current problem. Some automatic arranger software require users to have a certain knowledge of music theory before they can use it smoothly.
附图说明BRIEF DESCRIPTION OF THE DRAWINGS
图1是应用本发明实施例提供的自动作曲方法的流程图;FIG. 1 is a flowchart of an automatic composition method provided by an embodiment of the present invention;
图2是应用本发明实施例提供的自动作曲装置的功能模块图;2 is a functional block diagram of an automatic composition device provided by an embodiment of the present invention;
图3是应用本发明实施例提供的计算机设备的结构示意框图。FIG. 3 is a schematic block diagram of a structure of a computer device provided by an embodiment of the present invention.
本发明的最佳实施方式Best Mode of the Invention
为了使本发明的目的、技术方案及优点更加清楚明白,以下结合附图及实施例,对本发明进行进一步详细说明。应当理解,此处所描述的具体实施例仅仅用以解释本发明,并不用于限定本发明。In order to make the objectives, technical solutions, and advantages of the present invention clearer, the present invention is further described in detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present invention and are not intended to limit the present invention.
如图1所示,本发明实施例提出一种自动作曲方法,所述方法包括以下步骤:As shown in FIG. 1, an embodiment of the present invention provides an automatic composition method. The method includes the following steps:
步骤S101、获取用户输入的三个以上起始音。Step S101: Acquire more than three start sounds input by a user.
获取用户输入的三个以上起始音,在本实施例中,获取用户输入的三个起始音。More than three start sounds input by the user are obtained. In this embodiment, three start sounds input by the user are obtained.
进入作曲UI界面,用户点击创建新歌曲,输入多个音符中的三个以上,输入的方式可以是多种,方便不同用户进行输入。Enter the composition UI interface, the user clicks to create a new song, and enters more than three of the multiple notes. There can be multiple input methods, which is convenient for different users to input.
在本实施例中,在步骤S101中,包括:In this embodiment, step S101 includes:
获取用户点击虚拟按键输入的三个以上起始音。Get more than three start sounds input by the user clicking the virtual button.
将起始音通过虚拟按键模拟钢琴键盘进行显示,用户通过点击虚拟按键,输入三个以上起始音,获取用户点击虚拟按键所对应的起始音,通过点击虚拟按键输入起始音,方便不懂哼唱音符的用户输入。The initial sound is displayed by using a virtual key to simulate a piano keyboard. The user clicks the virtual key to input more than three initial sounds, and obtains the initial sound corresponding to the user's click on the virtual key. User input that understands humming notes.
在一些实施例中,在步骤S101中,包括:In some embodiments, in step S101, the method includes:
获取用户使用外设输入的三个以上起始音。Get more than three start sounds input by the user using peripherals.
在本实施例中,自动作曲装置通过与外接设备进行连接,用户通过外接设备输入三个以上起始音,具体地,以外接设备为电子琴为例,通过与电子琴进行连接,当用户弹奏电子琴时,电子琴产生并输出与用户弹奏的音符相对应的电信号,根据该电信号即可得到用户弹奏的三个以上起始音,方便用户使用。In this embodiment, the automatic composition device is connected to an external device, and the user inputs more than three start sounds through the external device. Specifically, taking the external device as an electronic keyboard as an example, by connecting with the electronic keyboard, when the user plays the electronic keyboard At this time, the electronic keyboard generates and outputs electric signals corresponding to the notes played by the user, and according to the electric signals, three or more starting sounds played by the user can be obtained, which is convenient for the user.
在一些实施例中,在步骤S101中,包括:In some embodiments, in step S101, the method includes:
获取语音输入的三个以上起始音。Get more than three start sounds for voice input.
用户哼唱三个以上起始音,接收到用户哼唱的三个以上起始音,并提取出三个以上起始音,简化获取三个以上起始音的获取方式,即使不懂如何操作钢琴键盘的用户也可以通过哼唱的方式进行音乐创作,方便用户对起始音的输入。The user hums three or more start sounds, receives three or more start sounds from the user, and extracts three or more start sounds, simplifying the acquisition of three or more start sounds, even if he does not understand how to operate Users of piano keyboards can also create music by humming, which is convenient for users to input the initial sound.
步骤S102、根据和声理论,对用户输入的三个以上起始音进行和弦分解及在和弦分解之后进行和弦转位。Step S102: According to the harmony theory, perform chord decomposition on the three or more starting sounds input by the user and perform chord inversion after the chord decomposition.
步骤S103、在和弦转位之后,随机生成与和弦对应的四段琶音序列。Step S103: After the chords are transposed, randomly generate four arpeggio sequences corresponding to the chords.
根据和声理论,对获取到用户输入的三个以上起始音进行处理,其处理方式为先进行和弦分解,之后再进行和弦转位。在完成和弦转位之后,随机生成四段琶音序列,其中该四段琶音序列与和弦相对应。According to the harmony theory, the three or more starting sounds obtained by the user are processed. The processing method is to perform chord decomposition first, and then perform chord inversion. After the chord inversion is completed, four arpeggio sequences are randomly generated, where the four arpeggio sequences correspond to the chords.
具体地,以三个起始音为例进行说明,三个起始音的和弦分解具体为:将三个任意起始音调整至均在一个八度内,从低音到高音命名为根音、三音和五音。在进行和弦分解之后,再进行和弦转位,和弦转位具体为:以根音为最低音的和弦叫原位和弦,以三音、五音为最低音的时候叫和弦转位,三和弦可以有两个转位,以三音做最低音是第一转位(六和弦),以五音做最低音是第二转位(四六和弦)。在和弦转位之后,生成琶音序列具体为:琶音序列是在相应的原位和弦、六和弦、四六和弦中随机抽取一个,并从低音到高音(上行)或从高音到低音(下行)进行规律重复。Specifically, three start sounds are taken as an example for explanation. The chord decomposition of the three start sounds is specifically: adjusting three arbitrary start sounds to all within one octave, and naming the root sounds from low to high, Three and five tones. After the chord decomposition, the chord transposition is performed. The chord transposition is specifically: the chord with the lowest note is called the home chord, and the chord inversion is called with the third and fifth notes. The third chord can have For two transpositions, the lowest transposition with three notes is the first transposition (sixth chord), and the transposition with the fifth note is the second transposition (fourth and sixth chords). After the chords are transposed, the arpeggio sequence is specifically: the arpeggio sequence is randomly selected from the corresponding original chords, six chords, four or six chords, and from low to high (up) or from high to low (down) ) Repeat regularly.
步骤S104、获取用户选择的歌曲类型。Step S104: Acquire a song type selected by the user.
在用户完成输入三个以上起始音之后,需要用户选择歌曲类型,在用户完成选择歌曲类型之后,获取用户选择的歌曲类型。After the user finishes entering more than three start sounds, the user is required to select a song type, and after the user finishes selecting the song type, the song type selected by the user is obtained.
在本实施例中,歌曲类型包括歌曲风格和歌曲情感。In this embodiment, the song type includes song style and song emotion.
在本实施例中,在步骤S104中,包括:In this embodiment, step S104 includes:
获取用户选择的歌曲风格和歌曲情感。Get the song style and song emotion selected by the user.
在用户完成输入三个以上起始音之后,弹出歌曲风格让用户选择,在用户选择歌曲风格中的一种风格之后,再弹出歌曲情感让用户选择,用户需要在歌曲情感中选择一个情感。在用户完成选择的歌曲风格和歌曲情感之后,获取用户选择的歌曲类型。在用户不具备音乐理论知识的情况,通过选择歌曲类型进行作曲。After the user finishes inputting more than three start sounds, the song style pops up for the user to choose. After the user selects one of the song styles, the song emotion pops up for the user to choose. The user needs to choose an emotion from the song emotions. After the user completes the selected song style and song emotion, the song type selected by the user is obtained. In the case where the user does not have knowledge of music theory, composition is performed by selecting a song type.
在一些实施例中,在步骤S104中,包括:In some embodiments, in step S104, the method includes:
获取用户选择的歌曲风格。Gets the song style selected by the user.
在用户完成输入三个以上起始音之后,弹出歌曲风格让用户选择,在用户选择歌曲风格中的一种风格之后,获取用户选择的歌曲类型。在用户不具备音乐理论知识的情况,通过选择歌曲类型进行作曲。After the user finishes inputting more than three starting sounds, a song style pops up for the user to select, and after the user selects one of the song styles, the song type selected by the user is obtained. In the case where the user does not have knowledge of music theory, composition is performed by selecting a song type.
在一些实施例中,在步骤S104中,包括:In some embodiments, in step S104, the method includes:
获取用户选择的歌曲情感。Get the song emotion selected by the user.
在用户完成输入三个以上起始音之后,弹出歌曲情感让用户选择,在用户选择歌曲情感中的一种情感之后,获取用户选择的歌曲类型。在用户不具备音乐理论知识的情况,通过选择歌曲类型进行作曲。After the user finishes inputting more than three starting sounds, the song emotion pops up for the user to select, and after the user selects one of the song emotions, the song type selected by the user is obtained. In the case where the user does not have knowledge of music theory, composition is performed by selecting a song type.
上述的歌曲风格包括流行、古典、爵士和民谣;上述的歌曲情感包括快乐、伤感、清新和怀旧。The above-mentioned song styles include pop, classical, jazz and folk songs; the above-mentioned song emotions include happiness, sadness, freshness and nostalgia.
步骤S105、根据预设作曲规则和歌曲类型,对四段琶音序列编配相应音乐要素,获得前奏、前间奏、尾间奏和尾奏;Step S105, according to the preset composition rules and song types, assign corresponding music elements to the four arpeggio sequences to obtain intros, intros, endoss, and endos;
步骤S106、从音乐库中随机抽调一段与歌曲类型对应的旋律,获得主旋律;Step S106: Randomly tune a melody corresponding to the song type from the music library to obtain the main melody;
步骤S107、根据预设作曲规则对前奏、前间奏、尾间奏和尾奏中选取,将目标与主旋律按顺序拼接,生成一歌曲。Step S107: Select among the intro, intro, interlude and ending according to the preset composition rules, splicing the target and the main melody in order to generate a song.
在生成四段琶音序列之后,根据预设作曲规则,再结合用户选择的歌曲类型,对四段琶音序列编配相应音乐要素,在完成四段琶音序列的音乐要素编配之后,获得前奏、前间奏、尾间奏和尾奏四段音乐。在获得前奏、前间奏、尾间奏和尾奏四段音乐之后,再根据用户选择的歌曲类型,从音乐库中随机抽调一段与之对应的旋律,从而获得主旋律,其中,音乐库包含大量歌曲MIDI格式,并按歌曲风格、歌曲情感标签分类。根据预设作曲规则进行选取目标,若预设作曲规则中的曲式结构为五段式,五段式曲式为前奏、前间奏、主旋律、尾间奏、尾奏,则选取目标为前奏、前间奏、尾间奏、尾奏,若预设作曲规则中的曲式结构为三段式,三段式曲式为前奏、主旋律、尾奏,则选取目标为前奏、尾奏,若预设作曲规则中的曲式结构为两段式,两段式曲式为前奏、主旋律,则选取目标为前奏。以五段式曲式为例进行说明,在获得前奏、前间奏、尾间奏、尾奏之后,从音乐库中随机抽调一段与歌曲类型对应的旋律,获得主旋律,在获得前奏、前间奏、尾间奏、尾奏和主旋律五段音乐之后,将前奏、前间奏、主旋律、尾间奏和尾奏按顺序拼接,生成歌曲,完成作曲。根据前奏、前间奏、尾间奏、尾奏和主旋律五段音乐方式进行作曲,使作曲难度降低且效率高。After generating the four arpeggio sequences, according to the preset composition rules, combined with the song type selected by the user, the corresponding four elements of the arpeggio sequence are assigned. After completing the four elements of the arpeggio sequence, obtain Intro, Intro, Endo and Endo. After obtaining four pieces of intro, intro, end, and ending, according to the song type selected by the user, randomly select a corresponding melody from the music library to obtain the main melody. The music library contains a large number of Song MIDI format, and classified by song style, song emotional tags. The target is selected according to the preset composition rule. If the structure of the preset composition rule is five-section, the five-section pattern is intro, intro, main melody, end intro, and end intro, the target is selected as intro. , Intro, interlude, and ending, if the preset composition structure in the composition rules is three-stage, the three-stage is the intro, main melody, and ending, then select the target as intro, ending, if By default, the composition structure in the composition rules is two-stage, and the two-stage composition is the intro and main melody. The target is selected as the intro. Take the five-section style as an example. After obtaining the intro, intro, end, and ending, randomly select a melody corresponding to the type of song from the music library to obtain the main melody. After the five pieces of music, interlude, ending, and main melody, the prelude, interlude, main melody, interlude, and endluo are spliced in order to generate songs and complete the composition. Compose according to the five intro, intro, intro, end, and main melody, making the composition difficult and efficient.
根据用户输入的三个以上起始音及用户选择的歌曲类型,再结合预设作曲规则生成歌曲。这是根据预设作曲规则自动生成歌曲,并不需要用户根据音乐基础理论知识对歌曲进行设置,进而不需要用户具备一定的音乐理论知识。Generate songs based on more than three start sounds entered by the user and the song type selected by the user, combined with preset composition rules. This is to automatically generate songs according to preset composition rules, and does not require the user to set the song according to the basic theoretical knowledge of music, and further does not require the user to have a certain knowledge of music theory.
在本实施例中,预设作曲规则根据音乐规则编写,包括基本乐理、音阶、琶音、和声、复调、配器、节奏和曲式结构。具体地,预设作曲规则是结合基本乐理、音阶、琶音、和声、复调、配器、节奏、速度、曲式结构等因素,针对具体风格和情感设定因素的不同参数。如,爵士风格,音阶采用布鲁斯音阶,琶音与和声进行布鲁斯音阶的相应变换,配器使用萨克斯模板,节奏多采用切分音;情感为快乐,速度设定为90-100 bpm随机,情感为伤感,速度设定为60-70 bpm随机;曲式可分为前奏、前间奏、主旋律、尾间奏、尾奏五段式,还有前奏、主旋律、尾奏三段式、前奏、主旋律两段式等。以上因素针对除主旋律的曲式其他部分设定。主旋律从音乐家编写好的音乐库中按所选风格和情感的具体参数,抽调已有旋律片段,再对旋律片段进行横向、纵向、转位、移位、倒影、逆行、扩大、减缩等手法的变换,以增加主旋律自由度。主旋律伴奏使用音乐家编写的相应风格和情感的织体模板。In this embodiment, the preset composition rules are written according to the music rules, including basic music theory, scales, arpeggios, harmony, polyphony, orchestration, rhythm, and melody structure. Specifically, the preset composition rules are based on factors such as basic music theory, scales, arpeggios, harmony, polyphony, orchestration, rhythm, tempo, and melody structure, and different parameters are set for specific styles and emotions. For example, in the jazz style, the scales use the blues scale, and the arpeggios and harmonies perform the corresponding changes in the blues scale. The orchestration uses the saxophone template, and the rhythm is mostly split. bpm random, emotion is sad, the speed is set to 60-70 bpm random; the genre can be divided into five parts: intro, intro, main melody, end intro, end intro, and intro, main melody, and end Style, intro, main theme two-stage, etc. The above factors are set for the other parts of the melody. The main melody is adjusted from the music library compiled by the musician according to the specific parameters of the selected style and emotion, and the existing melody segment is adjusted, and then the melody segment is horizontally, vertically, transposed, shifted, reflected, retrograde, enlarged, and reduced. Transform to increase the degree of freedom of the main theme. The main accompaniment uses the corresponding style and emotion texture template written by the musician.
例如,用户选择的歌曲类型为伤感,预设作曲规则通过基本乐理、音阶、琶音、和声、复调、配器、节奏对四段琶音序列编配相应音乐要素,使四段琶音序列获得的前奏、前间奏、尾间奏和尾奏,前奏、前间奏、尾间奏和尾奏呈伤感类型,前奏、前间奏、尾间奏和尾奏在演奏时,使用户听到感觉是伤感的。For example, the song type selected by the user is sentimental. The preset composition rules arrange basic music theory, scales, arpeggios, harmony, polyphony, orchestration, rhythm to the four arpeggio sequences, and make the four arpeggio sequences. The obtained intro, intro, interlude, and ending are in a sad type, and the intro, prelude, interlude, and endluo are played to make the user listen. It feels sad.
四段琶音序列包括均为上行或者下行琵音的第一、二段琶音序列,以及均为上行或者下行琵音的第三、四段琶音序列,在步骤S105中,包括:The four arpeggio sequences include the first and second arpeggio sequences, both of which are ascending or descending arpeggios, and the third and fourth arpeggio sequences, which are both ascending or descending arpeggios. In step S105, they include:
选取第一段琶音序列、第二段琶音序列分别作为前奏的琶音、前间奏的琶音;Select the first arpeggio sequence and the second arpeggio sequence as the arpeggio and intro arpeggio respectively;
根据预设作曲规则和歌曲类型,对第一段琶音序列编配前奏所需的音乐要素,获得前奏;According to the preset composition rules and song types, arrange the music elements required for the intro to the first arpeggio sequence to obtain the intro;
根据预设作曲规则和歌曲类型,对第二段琶音序列编配前间奏所需的音乐要素,获得前间奏;According to the preset composition rules and song types, arrange the music elements required for the prelude to the second arpeggio sequence to obtain the prelude;
再选取所述第三段琶音序列、所述第四段琶音序列分别作为所述尾间奏的琶音和所述尾奏的琶音;Selecting the third arpeggio sequence and the fourth arpeggio sequence as the arpeggio of the interlude and the arpeggio of the ending;
根据预设作曲规则和歌曲类型,对第三段琶音序列编配尾间奏所需的音乐要素,获得尾间奏;According to the preset composition rules and song types, arrange the music elements required for the interlude to the third arpeggio sequence to obtain the interlude;
根据预设作曲规则和歌曲类型,对第四段琶音序列编配尾奏所需的音乐要素,获得尾奏。According to the preset composition rules and song types, arrange the music elements required for the ending of the fourth arpeggio sequence to obtain the ending.
前奏和前间奏需要同时选取上行或者下行琵音的琶音序列,尾间奏和尾奏也需要同时选用上行或下行琶音的琶音序列,然后根据预设作曲规则和歌曲类型,对第一段琶音序列、第二段琶音序列、第三段琶音序列、第四段琶音序列分别编配前奏、前间奏、尾间奏、尾奏所需的音乐要素,从而获得前奏、前间奏、尾间奏、尾奏。For the intro and intro, you need to select both the arpeggio sequence of the up and down arpeggios, and for the end and intro, you also need to select the arpeggio sequence of the up or down arpeggios at the same time. One arpeggio sequence, the second arpeggio sequence, the third arpeggio sequence, and the fourth arpeggio sequence arrange the music elements required for the intro, intro, end, and end, respectively, to obtain the intro. , Intro, end intro, end intro.
具体地,前奏和前间奏同时选用上行或下行琶音,尾间奏和尾奏同时选用上行或下行琶音;和声在相应的原位和弦、六和弦、四六和弦中随机抽取,每两拍出现一次;配器和节奏采用音乐家编写的大量模板,作为背景轨道。Specifically, the intro and intro are both selected ascending or descending arpeggios, and the intro and ending are both selected ascending or descending arpeggios; the harmony is randomly selected from the corresponding original chords, sixth chords, fourth and sixth chords, each The two beats appear once; the orchestration and rhythm use a large number of templates written by musicians as background tracks.
在本实施例中,具体地,通过对应四段琶音序列进行音乐要素编配,包括和声、配器以及节奏等,预设作曲规则包括基本乐理、音阶、琶音、和声、复调、配器、节奏和曲式结构等,需要与不同歌曲风格和歌曲情感分别相对应,通过分析琶音序列的旋律,选取最佳的和弦来作伴奏,再根据选择的歌曲风格和歌曲情感确定伴奏音型、配器以及节奏,具体地,用户通过UI界面上的模拟钢琴键盘输入mi、la、xi这三个起始音,并选择歌曲风格为民谣,歌曲情感为怀旧,先将 mi、la、xi这三个起始音进行三和弦分解后进行和弦转位,生成四段与和弦对应的琶音序列,然后将该四段琶音序列输入至预设作曲规则中并根据选择的民谣风格和怀旧心情进行编排使四段琶音序列的旋律以对应民谣和怀旧的轻缓优美风格,从而确定与该四段琶音序列匹配的伴奏音型,伴奏音型与琶音序列的轻缓优美风格对应,并根据伴奏音型以及歌曲风格和歌曲情感在音乐库中选择轻缓、流畅优美的和声,然后预设作曲规则根据选择的歌曲风格和歌曲情感选择伴奏的乐器为葫芦丝,再将四段琶音序列以及由葫芦丝演奏的和声进行合成,从而在四段琶音序列中添加最合适用户选择的歌曲风格和歌曲情感的伴奏节奏和伴奏乐器以丰富作品的内容。In this embodiment, specifically, the music elements are arranged by corresponding four arpeggio sequences, including harmony, orchestration, and rhythm. The preset composition rules include basic music theory, scales, arpeggios, harmony, polyphony, Orchestration, rhythm and melody structure, etc., need to correspond to different song styles and song emotions respectively. By analyzing the melody of the arpeggio sequence, select the best chord for accompaniment, and then determine the accompaniment sound according to the selected song style and song emotion. Type, orchestration, and rhythm. Specifically, the user enters the three starting sounds mi, la, and xi through the simulated piano keyboard on the UI interface, and selects the song style as folk songs and the song emotion as nostalgia. These three starting notes are trichotomized and then chord-inverted to generate four arpeggio sequences corresponding to the chords, and then input the four arpeggio sequences into the preset composition rules and according to the selected folk style and nostalgia The mood is arranged so that the melody of the four arpeggio sequences corresponds to the gentle and beautiful style of folk songs and nostalgia, so as to determine the accompaniment pattern and accompaniment that match the four arpeggio sequences. The pattern corresponds to the gentle and beautiful style of the Arpeggio sequence, and chooses a gentle, smooth and beautiful harmony in the music library according to the accompaniment pattern, song style and song emotion, and then presets the composition rules according to the selected song style and song emotion Select the accompaniment instrument as the gourd, and then synthesize the four arpeggio sequences and the harmony played by the gourd to add the accompaniment rhythm and accompaniment of the most suitable user-selected song style and song emotion to the four arpeggio sequences. Musical instruments to enrich the content of the work.
具体地,当用户选择的歌曲风格为摇滚而歌曲情感为快乐时,先将 mi、la、xi这三个起始音进行三和弦分解后进行和弦转位,生成四段与和弦对应的琶音序列,然后根据预设作曲规则分解析这四段琶音序列的旋律并进行编排,使该四段琶音序列的旋律对应摇滚的震撼和快节奏轻快风格,并确定该四段琶音序列的伴奏音型,伴奏音型与摇滚风格对应,从而在音乐库中选择重金属的和声,并通过预设作曲规则选择伴奏的乐器为架子鼓以及电子吉他等,再将琶音序列以及由架子鼓和电子吉他演奏的伴奏和声进行合成,最后输出完成四段琶音序列的音乐要素的编配的四段琶音序列。Specifically, when the song style selected by the user is rock and the emotion of the song is happy, the three start notes of mi, la, and xi are first decomposed into three chords, and then the chords are transposed to generate four arpeggios corresponding to the chords. Sequence, then analyze and arrange the melody of the four arpeggio sequences according to the preset composition rules, make the melody of the four arpeggio sequences correspond to the shock and fast-paced style of rock, and determine the four arpeggio sequences. Accompaniment pattern, the accompaniment pattern corresponds to the rock style, so select the heavy metal harmony in the music library, and select the accompaniment instrument for the drum and electronic guitar through preset composition rules, and then change the arpeggio sequence and the drum and The accompaniment of the electronic guitar is used to synthesize the harmonies, and finally output the four-segment arpeggio sequence that completes the music elements of the four-segment arpeggio sequence.
具体地,当用户输入mi、la、xi这三个起始音,并选择歌曲风格为流行,歌曲情感为清新时,先将mi、la、xi这三个起始音进行三和弦分解后进行和弦转位,随机生成四段与和弦对应的琶音序列,具体地,可以从音乐库中选取四段与和弦对应的琶音序列,音乐库中包括所有三和弦分解的可能,然后将四段琶音序列输入至预设作曲规则中,预设作曲规则对四段琶音序列的旋律进行分析,然后根据用户选择的流行风格以及清新的心情模式从新编排四段琶音序列的旋律以符合流行和清新的风格特点,并确定与四段琶音序列匹配的流行和清新的风格的伴奏音型,从音乐库中选取与歌曲风格和歌曲情感对应的和声以及伴奏乐器为吉他以及架子鼓等,并进行演奏生成由吉他和架子鼓等演奏完成的伴奏和声,最后将四段琶音序列以及伴奏和声进行合成,输出完整的经过音乐要素编配的四段琶音序列。Specifically, when the user enters the three starting sounds of mi, la, and xi, and selects the song style as popular, and the song emotion is fresh, the three starting sounds of mi, la, and xi are first decomposed and then performed. Chord inversion, randomly generate four arpeggio sequences corresponding to the chord. Specifically, you can select four arpeggio sequences corresponding to the chord from the music library. The music library includes all the possibilities for the decomposition of the third chord. The arpeggio sequence is input into the preset composition rule. The preset composition rule analyzes the melody of the four-segment arpeggio sequence, and then re-arranges the four-segment arpeggio sequence melody according to the popular style selected by the user and the fresh mood mode to conform to the popular And fresh style characteristics, and determine the popular and fresh style accompaniment patterns that match the four arpeggio sequences, select the harmony that corresponds to the song style and song emotion from the music library, and the accompaniment instruments are guitars and drums, etc. , And play to generate accompaniment harmonies completed by guitars and drums, and finally synthesize four arpeggio sequences and accompaniment harmonies to output a complete process. A sequence of four arpeggios arranged by musical elements.
在步骤S107中,包括:In step S107, the method includes:
若目标包括尾奏,则将尾奏的结束音设定为三和弦的根音。If the target includes an ending, set the ending of the ending to the root of the third chord.
在根据预设作曲规则选取目标时,若目标包括尾奏,则将尾奏的结束音设定为三和弦的根音,结束音停留在三和弦根音能够使歌曲听上去是正式结束了。When selecting a target according to a preset composition rule, if the target includes an ending, the ending of the ending is set to the root of the third chord, and the ending of the ending sound stays at the root of the third chord to make the song officially end.
在步骤S107中,包括:In step S107, the method includes:
获取用户选择的歌曲格式;Get the song format selected by the user;
根据歌曲格式,生成与歌曲格式相应格式的歌曲。According to the song format, a song corresponding to the song format is generated.
在生成歌曲过程中,弹出让用户选择歌曲格式的选择框,歌曲格式包括MIDI、MP3和五线谱,用户在MIDI、MP3和五线谱中选择一种,在用户作出选择后,根据用户选择的歌曲模式,继续生成歌曲,用户根据自己的喜好或者习惯选择生成歌曲的格式,以便更好的读取和读懂歌曲的信息。During the song generation process, a selection box pops up to let the user select the song format. Song formats include MIDI, MP3, and staff notation. The user selects one of MIDI, MP3, and staff notation. After the user makes a selection, according to the song mode selected by the user, Continue to generate songs, users choose the format of the generated songs according to their preferences or habits, in order to better read and understand the song information.
在步骤S107中,包括:In step S107, the method includes:
获取用户选择的歌曲时长;Get the song duration selected by the user;
根据歌曲时长,按前奏、前间奏、尾间奏、尾奏和主旋律各自占总时长的预设比例,调整目标及主旋律的时长;According to the duration of the song, adjust the target and the duration of the main melody according to the preset proportions of the total length of the intro, intro, interlude, ending, and main melody;
生成与歌曲时长相应时长的歌曲。Generate a song of a duration corresponding to the duration of the song.
在生成歌曲过程中,弹出让用户选择歌曲时长的选择框,歌曲时长包括30秒、60秒和90秒,用户在30秒、60秒和90秒中选择一种,在用户作出选择后,根据用户选择的歌曲时长,按前奏、前间奏、尾间奏、尾奏和主旋律各自占总时长的预设比例,调整目标及主旋律的时长,生成与歌曲时长相应时长的歌曲,其中曲式结构不同,前奏、前间奏、尾间奏、尾奏和主旋律各自占总时长的预设比例不同,用户根据自己的喜好或者习惯选择生成歌曲的时长,以便更好适应用户听歌的习惯。During the song generation process, a pop-up selection box for the user to select the song duration is displayed. The song duration includes 30 seconds, 60 seconds, and 90 seconds. The user selects one of 30 seconds, 60 seconds, and 90 seconds. After the user makes a selection, The length of the song selected by the user, according to the preset proportions of the intro, intro, interlude, ending, and main melody respectively, adjust the target and main melody duration to generate a song corresponding to the duration of the song. Different, the intro, intro, interlude, ending, and main melody each have different preset proportions for the total duration. The user selects the duration of the song according to their preferences or habits to better adapt to the user's listening habits.
例如,在五段式曲式中,各部分占总时长百分比约为:前奏20%、前间奏10%、主旋律40%、尾间奏10%、尾奏20%;30秒时长的歌曲: 前奏6s、前间奏3s、主旋律12s、尾间奏3s、尾奏6s;60秒时长的歌曲: 前奏12s、前间奏6s、主旋律24s、尾间奏6s、尾奏12s。For example, in a five-segment style, the percentage of the total duration of each part is approximately: 20% intro, 10% intro, 40% in melody, 10% in interlude, 20% in end; 30-second songs: Intro 6s, Interlude 3s, Main Melody 12s, Interlude 3s, Endo 6s; Songs of 60 seconds duration: Intro 12s, Prelude 6s, Main Melody 24s, Interlude 6s, Endo 12s.
在步骤S107之后,所述方法包括:After step S107, the method includes:
根据所选的歌曲类型对生成的歌曲进行分类存储。The generated songs are sorted and stored according to the selected song type.
通过对歌曲进行分类存储,包括流行、古典、爵士、民谣、快乐、伤感、清新和怀旧。具体地,根据用户所选择的歌曲类型对歌曲进行分类,从而给歌曲贴上与所选歌曲类型对应的标签,方便对创作的歌曲进行管理。Songs are sorted and stored, including pop, classical, jazz, folk, happy, sad, fresh and nostalgic. Specifically, the songs are classified according to the song types selected by the user, so that the songs are labeled with tags corresponding to the selected song types, which facilitates the management of the composed songs.
在步骤S107之后,所述方法包括:After step S107, the method includes:
将生成的歌曲添加伴奏音轨进行混音操作得到多音轨作品。Add the generated song to the accompaniment track and mix it to get a multi-track work.
通过给歌曲添加伴奏音轨,如钢琴、吉他、贝司和架子鼓等,具体地,通过获取音乐库中与所选歌曲类型相对应的伴奏文件与生成的歌曲合成多音轨作品,使作品更加丰满,更具有感染力。By adding accompaniment tracks to songs, such as piano, guitar, bass, and drums, etc., specifically, by obtaining accompaniment files corresponding to the selected song type in the music library and synthesizing multi-track works with the generated songs, the work is made More plump and more contagious.
在将生成的歌曲添加伴奏音轨进行混音操作得到多音轨作品的步骤之后,所述方法包括:After adding the generated song to the accompaniment track and performing a mixing operation to obtain a multi-track work, the method includes:
将生成的多音轨歌曲与预先录制的人声音源文件合成得到歌曲音频文件。The generated multi-track song is synthesized with a pre-recorded human voice source file to obtain a song audio file.
通过给歌曲添加人声音源文件,通过语音合成技术将预先录制的人声音源文件与多音轨歌曲进行合成,生产完整的歌曲音频文件,能满足商业应用需求。By adding human voice source files to songs, and synthesizing pre-recorded human voice source files with multi-track songs through speech synthesis technology, a complete song audio file can be produced, which can meet the needs of commercial applications.
综上所述,预先建立的预设作曲规则和音乐库进行作曲,音乐库包含大量歌曲,并按歌曲风格和歌曲情感标签进行分类,预设作曲规则包括基板乐理、音阶、琶音、和声、复调、配器、节奏和曲式结构,与不同歌曲风格和歌曲情感标签相对应,同时根据和声理论对用户输入的三个起始音进行三和弦分解后再进行和弦转位,随机生成四段与和弦对应的琶音序列,之后先根据预设作曲规则和用户选择的歌曲风格和歌曲情感,对四段琶音序列的相应音乐要素进行编配,主旋律为音乐库中随机抽调的与所选歌曲风格和歌曲情感标签相对应的旋律,尾奏的结束音设定为三和弦的根音,最后将五段音乐片段按顺序拼接,最后输出歌曲。歌曲是自动创作,歌曲创作效率高,而且生成的歌曲中添加了用户选择的歌曲风格和歌曲情感,符合用户的喜好,提高用户体验。通过用户输入的起始音和歌曲类型,根据预设作曲规则生成歌曲,并不需要用户具备一定的音乐理论知识,用户就能作曲,旨在解决现有的自动编曲软件需要用户具备一定的音乐理论知识才可流畅使用的问题。In summary, the pre-established preset composition rules and music library are used for composition. The music library contains a large number of songs and is classified according to the song style and song emotional tags. The preset composition rules include substrate music theory, scales, arpeggios, and harmony. , Polyphony, orchestration, rhythm, and melody structure, corresponding to different song styles and song emotional tags. At the same time, according to the harmony theory, three chords are decomposed by the user and then chord inversion is performed. Randomly generated Four arpeggio sequences corresponding to chords, and then the corresponding music elements of the four arpeggio sequences are arranged according to the preset composition rules and the song style and song emotion selected by the user. The main melody is randomly selected and adjusted in the music library. The melody corresponding to the selected song style and the emotional label of the song. The ending of the ending is set to the root of the third chord. Finally, the five music pieces are stitched in order, and the song is finally output. The songs are created automatically, and the song creation efficiency is high, and the song style and song emotion selected by the user are added to the generated songs, which conforms to the user's preferences and improves the user experience. The song is generated according to the preset composition rules by the user's starting sound and song type. It does not require the user to have a certain knowledge of music theory, and the user can compose. The purpose is to solve the existing automatic arrangement software that requires the user to have a certain Only the knowledge of music theory can be used smoothly.
如图2所示,本发明实施例提出一种自动作曲装置1,装置1包括第一获取模块11、处理模块12、琶音序列生成模块13、第二获取模块14、第一获得模块15、第二获得模块16和歌曲生成模块17。As shown in FIG. 2, an embodiment of the present invention provides an automatic composition device 1. The device 1 includes a first acquisition module 11, a processing module 12, an arpeggio sequence generation module 13, a second acquisition module 14, a first acquisition module 15, The second obtaining module 16 and the song generating module 17.
第一获取模块11,用于获取用户输入的三个以上起始音。The first obtaining module 11 is configured to obtain more than three start sounds input by a user.
获取用户输入的三个以上起始音,在本实施例中,获取用户输入的三个起始音。More than three start sounds input by the user are obtained. In this embodiment, three start sounds input by the user are obtained.
进入作曲UI界面,用户点击创建新歌曲,输入多个音符中的三个以上,输入的方式可以是多种,方便不同用户进行输入。Enter the composition UI interface, the user clicks to create a new song, and enters more than three of the multiple notes. There can be multiple input methods, which is convenient for different users to input.
在本实施例中,第一获取模块11包括:In this embodiment, the first obtaining module 11 includes:
第一子点击获取模块,用于获取用户点击虚拟按键输入的三个以上起始音。The first sub-click acquisition module is used to acquire more than three start sounds input by a user clicking a virtual button.
将起始音通过虚拟按键模拟钢琴键盘进行显示,用户通过点击虚拟按键,输入三个以上起始音,获取用户点击虚拟按键所对应的起始音,通过点击虚拟按键输入起始音,方便不懂哼唱音符的用户输入。The initial sound is displayed by using a virtual key to simulate a piano keyboard. The user clicks the virtual key to input more than three initial sounds, and obtains the initial sound corresponding to the user's click on the virtual key. User input that understands humming notes.
在一些实施例中,第一获取模块11包括:In some embodiments, the first obtaining module 11 includes:
第一子外设获取模块,用于获取用户使用外设输入的三个以上起始音。The first sub-peripheral acquisition module is configured to acquire more than three start sounds input by a user using a peripheral.
在本实施例中,自动作曲装置通过与外接设备进行连接,用户通过外接设备输入三个以上起始音,具体地,以外接设备为电子琴为例,通过与电子琴进行连接,当用户弹奏电子琴时,电子琴产生并输出与用户弹奏的音符相对应的电信号,根据该电信号即可得到用户弹奏的三个以上起始音,方便用户使用。In this embodiment, the automatic composition device is connected to an external device, and the user inputs more than three start sounds through the external device. Specifically, taking the external device as an electronic keyboard as an example, by connecting with the electronic keyboard, when the user plays the electronic keyboard At this time, the electronic keyboard generates and outputs electric signals corresponding to the notes played by the user, and according to the electric signals, three or more starting sounds played by the user can be obtained, which is convenient for the user.
在一些实施例中,第一获取模块11包括:In some embodiments, the first obtaining module 11 includes:
第一子语音获取模块,用于获取语音输入的三个以上起始音。The first sub-speech acquisition module is configured to acquire more than three start sounds of a voice input.
用户哼唱三个以上起始音,接收到用户哼唱的三个以上起始音,并提取出三个以上起始音,简化获取三个以上起始音的获取方式,即使不懂如何操作钢琴键盘的用户也可以通过哼唱的方式进行音乐创作,方便用户对起始音的输入。The user hums three or more start sounds, receives three or more start sounds from the user, and extracts three or more start sounds, simplifying the acquisition of three or more start sounds, even if he does not understand how to operate Users of piano keyboards can also create music by humming, which is convenient for users to input the initial sound.
处理模块12,用于根据和声理论,对用户输入的三个以上起始音进行和弦分解及在和弦分解之后进行和弦转位。The processing module 12 is configured to perform chord decomposition on three or more starting sounds input by the user and perform chord inversion after the chord decomposition according to the harmony theory.
琶音序列生成模块13,用于在和弦转位之后,随机生成与和弦对应的四段琶音序列。The arpeggio sequence generating module 13 is configured to randomly generate four arpeggio sequences corresponding to the chords after the chords are transposed.
根据和声理论,对获取到用户输入的三个以上起始音进行处理,其处理方式为先进行和弦分解,之后再进行和弦转位。在完成和弦转位之后,随机生成四段琶音序列,其中该四段琶音序列与和弦相对应。According to the harmony theory, the three or more starting sounds obtained by the user are processed. The processing method is to perform chord decomposition first, and then perform chord inversion. After the chord inversion is completed, four arpeggio sequences are randomly generated, where the four arpeggio sequences correspond to the chords.
具体地,以三个起始音为例进行说明,三个起始音的和弦分解具体为:将三个任意起始音调整至均在一个八度内,从低音到高音命名为根音、三音和五音。在进行和弦分解之后,再进行和弦转位,和弦转位具体为:以根音为最低音的和弦叫原位和弦,以三音、五音为最低音的时候叫和弦转位,三和弦可以有两个转位,以三音做最低音是第一转位(六和弦),以五音做最低音是第二转位(四六和弦)。在和弦转位之后,生成琶音序列具体为:琶音序列是在相应的原位和弦、六和弦、四六和弦中随机抽取一个,并从低音到高音(上行)或从高音到低音(下行)进行规律重复。Specifically, three start sounds are taken as an example for explanation. The chord decomposition of the three start sounds is specifically: adjusting three arbitrary start sounds to all within one octave, and naming the root sounds from low to high, Three and five tones. After the chord decomposition, the chord transposition is performed. The chord transposition is specifically: the chord with the lowest note is called the home chord, and the chord inversion is called with the third and fifth notes. The third chord can have For two transpositions, the lowest transposition with three notes is the first transposition (sixth chord), and the transposition with the fifth note is the second transposition (fourth and sixth chords). After the chords are transposed, the arpeggio sequence is specifically: the arpeggio sequence is randomly selected from the corresponding original chords, six chords, four or six chords, and from low to high (up) or from high to low (down) ) Repeat regularly.
第二获取模块14,用于获取用户选择的歌曲类型。The second acquisition module 14 is configured to acquire a song type selected by the user.
在用户完成输入三个以上起始音之后,需要用户选择歌曲类型,在用户完成选择歌曲类型之后,获取用户选择的歌曲类型。After the user finishes entering more than three start sounds, the user is required to select a song type, and after the user finishes selecting the song type, the song type selected by the user is obtained.
在本实施例中,歌曲类型包括歌曲风格和歌曲情感。In this embodiment, the song type includes song style and song emotion.
在本实施例中,第二获取模块14包括:In this embodiment, the second obtaining module 14 includes:
第二子获取模块,用于获取用户选择的歌曲风格和歌曲情感。The second sub-obtaining module is used to obtain the song style and song emotion selected by the user.
在用户完成输入三个以上起始音之后,弹出歌曲风格让用户选择,在用户选择歌曲风格中的一种风格之后,再弹出歌曲情感让用户选择,用户需要在歌曲情感中选择一个情感。在用户完成选择的歌曲风格和歌曲情感之后,获取用户选择的歌曲类型。在用户不具备音乐理论知识的情况,通过选择歌曲类型进行作曲。After the user finishes inputting more than three start sounds, the song style pops up for the user to choose. After the user selects one of the song styles, the song emotion pops up for the user to choose. The user needs to choose an emotion from the song emotions. After the user completes the selected song style and song emotion, the song type selected by the user is obtained. In the case where the user does not have knowledge of music theory, composition is performed by selecting a song type.
在一些实施例中,第二获取模块14包括:In some embodiments, the second obtaining module 14 includes:
第二子获取模块,用于获取用户选择的歌曲风格。The second sub-obtaining module is used to obtain the song style selected by the user.
在用户完成输入三个以上起始音之后,弹出歌曲风格让用户选择,在用户选择歌曲风格中的一种风格之后,获取用户选择的歌曲类型。在用户不具备音乐理论知识的情况,通过选择歌曲类型进行作曲。After the user finishes inputting more than three starting sounds, a song style pops up for the user to select, and after the user selects one of the song styles, the song type selected by the user is obtained. In the case where the user does not have knowledge of music theory, composition is performed by selecting a song type.
在一些实施例中,第二获取模块14包括:In some embodiments, the second obtaining module 14 includes:
第二子获取模块,用于获取用户选择的歌曲情感。The second sub-obtaining module is used to obtain the song emotion selected by the user.
在用户完成输入三个以上起始音之后,弹出歌曲情感让用户选择,在用户选择歌曲情感中的一种情感之后,获取用户选择的歌曲类型。在用户不具备音乐理论知识的情况,通过选择歌曲类型进行作曲。After the user finishes inputting more than three starting sounds, the song emotion pops up for the user to select, and after the user selects one of the song emotions, the song type selected by the user is obtained. In the case where the user does not have knowledge of music theory, composition is performed by selecting a song type.
上述的歌曲风格包括流行、古典、爵士和民谣;上述的歌曲情感包括快乐、伤感、清新和怀旧。The above-mentioned song styles include pop, classical, jazz and folk songs; the above-mentioned song emotions include happiness, sadness, freshness and nostalgia.
第一获得模块15,用于根据预设作曲规则和歌曲类型,对四段琶音序列编配相应音乐要素,获得前奏、前间奏、尾间奏和尾奏;The first obtaining module 15 is configured to assign corresponding music elements to four arpeggio sequences according to preset composition rules and song types, and obtain intros, intros, endos, and endos;
第二获得模块16,用于从音乐库中随机抽调一段与歌曲类型对应的旋律,获得主旋律;The second obtaining module 16 is used to randomly tune a melody corresponding to a song type from the music library to obtain a main melody;
歌曲生成模块17,用于根据预设作曲规则对前奏、前间奏、尾间奏和尾奏中选取,将目标与主旋律按顺序拼接,生成一歌曲。A song generating module 17 is used for selecting intro, intro, interlude and ending according to preset composition rules, and splicing the target and the main melody in order to generate a song.
在生成四段琶音序列之后,根据预设作曲规则,再结合用户选择的歌曲类型,对四段琶音序列编配相应音乐要素,在完成四段琶音序列的音乐要素编配之后,获得前奏、前间奏、尾间奏和尾奏四段音乐。在获得前奏、前间奏、尾间奏和尾奏四段音乐之后,再根据用户选择的歌曲类型,从音乐库中随机抽调一段与之对应的旋律,从而获得主旋律,其中,音乐库包含大量歌曲MIDI格式,并按歌曲风格、歌曲情感标签分类。根据预设作曲规则进行选取目标,若预设作曲规则中的曲式结构为五段式,五段式曲式为前奏、前间奏、主旋律、尾间奏、尾奏,则选取目标为前奏、前间奏、尾间奏、尾奏,若预设作曲规则中的曲式结构为三段式,三段式曲式为前奏、主旋律、尾奏,则选取目标为前奏、尾奏,若预设作曲规则中的曲式结构为两段式,两段式曲式为前奏、主旋律,则选取目标为前奏。以五段式曲式为例进行说明,在获得前奏、前间奏、尾间奏、尾奏之后,从音乐库中随机抽调一段与歌曲类型对应的旋律,获得主旋律,在获得前奏、前间奏、尾间奏、尾奏和主旋律五段音乐之后,将前奏、前间奏、主旋律、尾间奏和尾奏按顺序拼接,生成歌曲,完成作曲。根据前奏、前间奏、尾间奏、尾奏和主旋律五段音乐方式进行作曲,使作曲难度降低且效率高。After generating the four arpeggio sequences, according to the preset composition rules, combined with the song type selected by the user, the corresponding four elements of the arpeggio sequence are assigned. After completing the four elements of the arpeggio sequence, obtain Intro, Intro, Endo and Endo. After obtaining four pieces of intro, intro, end, and ending, according to the song type selected by the user, randomly select a corresponding melody from the music library to obtain the main melody. The music library contains a large number of Song MIDI format, and classified by song style, song emotional tags. The target is selected according to the preset composition rule. If the structure of the preset composition rule is five-section, the five-section pattern is intro, intro, main melody, end intro, and end intro, the target is selected as intro. , Intro, interlude, and ending, if the preset composition structure in the composition rules is three-stage, the three-stage is the intro, main melody, and ending, then select the target as intro, ending, if By default, the composition structure in the composition rules is two-stage, and the two-stage composition is the intro and main melody. The target is selected as the intro. Take the five-section style as an example. After obtaining the intro, intro, end, and ending, randomly select a melody corresponding to the type of song from the music library to obtain the main melody. After the five pieces of music, interlude, ending, and main melody, the prelude, interlude, main melody, interlude, and endluo are spliced in order to generate songs and complete the composition. Compose according to the five intro, intro, intro, end, and main melody, making the composition difficult and efficient.
根据用户输入的三个以上起始音及用户选择的歌曲类型,再结合预设作曲规则生成歌曲。这是根据预设作曲规则自动生成歌曲,并不需要用户根据音乐基础理论知识对歌曲进行设置,进而不需要用户具备一定的音乐理论知识。Generate songs based on more than three start sounds entered by the user and the song type selected by the user, combined with preset composition rules. This is to automatically generate songs according to preset composition rules, and does not require the user to set the song according to the basic theoretical knowledge of music, and further does not require the user to have a certain knowledge of music theory.
在本实施例中,预设作曲规则根据音乐规则编写,包括基本乐理、音阶、琶音、和声、复调、配器、节奏和曲式结构。具体地,预设作曲规则是结合基本乐理、音阶、琶音、和声、复调、配器、节奏、速度、曲式结构等因素,针对具体风格和情感设定因素的不同参数。如,爵士风格,音阶采用布鲁斯音阶,琶音与和声进行布鲁斯音阶的相应变换,配器使用萨克斯模板,节奏多采用切分音;情感为快乐,速度设定为90-100 bpm随机,情感为伤感,速度设定为60-70 bpm随机;曲式可分为前奏、前间奏、主旋律、尾间奏、尾奏五段式,还有前奏、主旋律、尾奏三段式、前奏、主旋律两段式等。以上因素针对除主旋律的曲式其他部分设定。主旋律从音乐家编写好的音乐库中按所选风格和情感的具体参数,抽调已有旋律片段,再对旋律片段进行横向、纵向、转位、移位、倒影、逆行、扩大、减缩等手法的变换,以增加主旋律自由度。主旋律伴奏使用音乐家编写的相应风格和情感的织体模板。In this embodiment, the preset composition rules are written according to the music rules, including basic music theory, scales, arpeggios, harmony, polyphony, orchestration, rhythm, and melody structure. Specifically, the preset composition rules are based on factors such as basic music theory, scales, arpeggios, harmony, polyphony, orchestration, rhythm, tempo, and melody structure, and different parameters are set for specific styles and emotions. For example, in the jazz style, the scales use the blues scale, and the arpeggios and harmonies perform the corresponding changes in the blues scale. The orchestration uses the saxophone template, and the rhythm is mostly split. bpm random, emotion is sad, the speed is set to 60-70 bpm random; the genre can be divided into five parts: intro, intro, main melody, end intro, end intro, and intro, main melody, and end Style, intro, main theme two-stage, etc. The above factors are set for the other parts of the melody. The main melody is adjusted from the music library compiled by the musician according to the specific parameters of the selected style and emotion, and the existing melody segment is adjusted, and then the melody segment is horizontally, vertically, transposed, shifted, reflected, retrograde, enlarged, and reduced. Transform to increase the degree of freedom of the main theme. The main accompaniment uses the corresponding style and emotion texture template written by the musician.
例如,用户选择的歌曲类型为伤感,预设作曲规则通过基本乐理、音阶、琶音、和声、复调、配器、节奏对四段琶音序列编配相应音乐要素,使四段琶音序列获得的前奏、前间奏、尾间奏和尾奏,前奏、前间奏、尾间奏和尾奏呈伤感类型,前奏、前间奏、尾间奏和尾奏在演奏时,使用户听到感觉是伤感的。For example, the song type selected by the user is sentimental. The preset composition rules arrange basic music theory, scales, arpeggios, harmony, polyphony, orchestration, rhythm to the four arpeggio sequences, and make the four arpeggio sequences. The obtained intro, intro, interlude, and ending are in a sad type, and the intro, prelude, interlude, and endluo are played to make the user listen. It feels sad.
四段琶音序列包括均为上行或者下行琵音的第一、二段琶音序列,以及均为上行或者下行琵音的第三、四段琶音序列,第一获得模块15包括:The four arpeggio sequences include the first and second arpeggio sequences, both of which are ascending or descending arpeggio, and the third and fourth arpeggio sequences, which are both ascending or descending arpeggio.
第一选取模块,用于选取第一段琶音序列、第二段琶音序列分别作为前奏的琶音、前间奏的琶音;The first selection module is used to select the first arpeggio sequence and the second arpeggio sequence as the arpeggio and intro arpeggio respectively;
前奏模块,用于根据预设作曲规则和歌曲类型,对第一段琶音序列编配前奏所需的音乐要素,获得前奏;The intro module is used to arrange the music elements required for the intro to the first arpeggio sequence according to preset composition rules and song types to obtain the intro;
前间奏模块,用于根据预设作曲规则和歌曲类型,对第二段琶音序列编配前间奏所需的音乐要素,获得前间奏;Prelude module, which is used to arrange the music elements required for the prelude to the second arpeggio sequence according to the preset composition rules and song types to obtain the prelude;
第二选取模块,用于再选取所述第三段琶音序列、所述第四段琶音序列分别作为所述尾间奏的琶音和所述尾奏的琶音;A second selection module, configured to select the third arpeggio sequence and the fourth arpeggio sequence as the arpeggio of the interlude and the arpeggio of the ending;
尾间奏模块,用于根据预设作曲规则和歌曲类型,对第三段琶音序列编配尾间奏所需的音乐要素,获得尾间奏;The interlude module is used to arrange the music elements required for the interlude to the third arpeggio sequence according to the preset composition rules and song types to obtain the interlude;
尾奏模块,用于根据预设作曲规则和歌曲类型,对第四段琶音序列编配尾奏所需的音乐要素,获得尾奏。The ending module is used to arrange the music elements required for the ending of the fourth arpeggio sequence according to the preset composition rules and song types to obtain the ending.
前奏和前间奏需要同时选取上行或者下行琵音的琶音序列,尾间奏和尾奏也需要同时选用上行或下行琶音的琶音序列,然后根据预设作曲规则和歌曲类型,对第一段琶音序列、第二段琶音序列、第三段琶音序列、第四段琶音序列分别编配前奏、前间奏、尾间奏、尾奏所需的音乐要素,从而获得前奏、前间奏、尾间奏、尾奏。For the intro and intro, you need to select both the arpeggio sequence of the up and down arpeggios, and for the end and intro, you also need to select the arpeggio sequence of the up or down arpeggios at the same time. One arpeggio sequence, the second arpeggio sequence, the third arpeggio sequence, and the fourth arpeggio sequence arrange the music elements required for the intro, intro, end, and end, respectively, to obtain the intro. , Intro, end intro, end intro.
具体地,前奏和前间奏同时选用上行或下行琶音,尾间奏和尾奏同时选用上行或下行琶音;和声在相应的原位和弦、六和弦、四六和弦中随机抽取,每两拍出现一次;配器和节奏采用音乐家编写的大量模板,作为背景轨道。Specifically, the intro and intro are both selected ascending or descending arpeggios, and the intro and ending are both selected ascending or descending arpeggios; the harmony is randomly selected from the corresponding original chords, sixth chords, fourth and sixth chords, each The two beats appear once; the orchestration and rhythm use a large number of templates written by musicians as background tracks.
在本实施例中,具体地,通过对应四段琶音序列进行音乐要素编配,包括和声、配器以及节奏等,预设作曲规则包括基本乐理、音阶、琶音、和声、复调、配器、节奏和曲式结构等,需要与不同歌曲风格和歌曲情感分别相对应,通过分析琶音序列的旋律,选取最佳的和弦来作伴奏,再根据选择的歌曲风格和歌曲情感确定伴奏音型、配器以及节奏,具体地,用户通过UI界面上的模拟钢琴键盘输入mi、la、xi这三个起始音,并选择歌曲风格为民谣,歌曲情感为怀旧,先将 mi、la、xi这三个起始音进行三和弦分解后进行和弦转位,生成四段与和弦对应的琶音序列,然后将该四段琶音序列输入至预设作曲规则中并根据选择的民谣风格和怀旧心情进行编排使四段琶音序列的旋律以对应民谣和怀旧的轻缓优美风格,从而确定与该四段琶音序列匹配的伴奏音型,伴奏音型与琶音序列的轻缓优美风格对应,并根据伴奏音型以及歌曲风格和歌曲情感在音乐库中选择轻缓、流畅优美的和声,然后预设作曲规则根据选择的歌曲风格和歌曲情感选择伴奏的乐器为葫芦丝,再将四段琶音序列以及由葫芦丝演奏的和声进行合成,从而在四段琶音序列中添加最合适用户选择的歌曲风格和歌曲情感的伴奏节奏和伴奏乐器以丰富作品的内容。In this embodiment, specifically, the music elements are arranged by corresponding four arpeggio sequences, including harmony, orchestration, and rhythm. The preset composition rules include basic music theory, scales, arpeggios, harmony, polyphony, Orchestration, rhythm and melody structure, etc., need to correspond to different song styles and song emotions respectively. By analyzing the melody of the arpeggio sequence, select the best chord for accompaniment, and then determine the accompaniment sound according to the selected song style and song emotion. Type, orchestration, and rhythm. Specifically, the user enters the three starting sounds mi, la, and xi through the simulated piano keyboard on the UI interface, and selects the song style as folk songs and the song emotion as nostalgia. These three starting notes are trichotomized and then chord-inverted to generate four arpeggio sequences corresponding to the chords, and then input the four arpeggio sequences into the preset composition rules and according to the selected folk style and nostalgia The mood is arranged so that the melody of the four arpeggio sequences corresponds to the gentle and beautiful style of folk songs and nostalgia, so as to determine the accompaniment pattern and accompaniment that match the four arpeggio sequences. The pattern corresponds to the gentle and beautiful style of the Arpeggio sequence, and chooses a gentle, smooth and beautiful harmony in the music library according to the accompaniment pattern, song style and song emotion, and then presets the composition rules according to the selected song style and song emotion Select the accompaniment instrument as the gourd, and then synthesize the four arpeggio sequences and the harmony played by the gourd to add the accompaniment rhythm and accompaniment of the most suitable user-selected song style and song emotion to the four arpeggio sequences. Musical instruments to enrich the content of the work.
具体地,当用户选择的歌曲风格为摇滚而歌曲情感为快乐时,先将 mi、la、xi这三个起始音进行三和弦分解后进行和弦转位,生成四段与和弦对应的琶音序列,然后根据预设作曲规则分解析这四段琶音序列的旋律并进行编排,使该四段琶音序列的旋律对应摇滚的震撼和快节奏轻快风格,并确定该四段琶音序列的伴奏音型,伴奏音型与摇滚风格对应,从而在音乐库中选择重金属的和声,并通过预设作曲规则选择伴奏的乐器为架子鼓以及电子吉他等,再将琶音序列以及由架子鼓和电子吉他演奏的伴奏和声进行合成,最后输出完成四段琶音序列的音乐要素的编配的四段琶音序列。Specifically, when the song style selected by the user is rock and the emotion of the song is happy, the three start notes of mi, la, and xi are first decomposed into three chords, and then the chords are transposed to generate four arpeggios corresponding to the chords. Sequence, then analyze and arrange the melody of the four arpeggio sequences according to the preset composition rules, make the melody of the four arpeggio sequences correspond to the shock and fast-paced style of rock, and determine the four arpeggio sequences. Accompaniment pattern, the accompaniment pattern corresponds to the rock style, so select the heavy metal harmony in the music library, and select the accompaniment instrument for the drum and electronic guitar through preset composition rules, and then change the arpeggio sequence and the drum and The accompaniment of the electronic guitar is used to synthesize the harmonies, and finally output the four-segment arpeggio sequence that completes the music elements of the four-segment arpeggio sequence.
具体地,当用户输入mi、la、xi这三个起始音,并选择歌曲风格为流行,歌曲情感为清新时,先将mi、la、xi这三个起始音进行三和弦分解后进行和弦转位,随机生成四段与和弦对应的琶音序列,具体地,可以从音乐库中选取四段与和弦对应的琶音序列,音乐库中包括所有三和弦分解的可能,然后将四段琶音序列输入至预设作曲规则中,预设作曲规则对四段琶音序列的旋律进行分析,然后根据用户选择的流行风格以及清新的心情模式从新编排四段琶音序列的旋律以符合流行和清新的风格特点,并确定与四段琶音序列匹配的流行和清新的风格的伴奏音型,从音乐库中选取与歌曲风格和歌曲情感对应的和声以及伴奏乐器为吉他以及架子鼓等,并进行演奏生成由吉他和架子鼓等演奏完成的伴奏和声,最后将四段琶音序列以及伴奏和声进行合成,输出完整的经过音乐要素编配的四段琶音序列。Specifically, when the user enters the three starting sounds of mi, la, and xi, and selects the song style as popular, and the song emotion is fresh, the three starting sounds of mi, la, and xi are first decomposed and then performed. Chord inversion, randomly generate four arpeggio sequences corresponding to the chord. Specifically, you can select four arpeggio sequences corresponding to the chord from the music library. The music library includes all the possibilities for the decomposition of the third chord. The arpeggio sequence is input into the preset composition rule. The preset composition rule analyzes the melody of the four-segment arpeggio sequence, and then re-arranges the four-segment arpeggio sequence melody according to the popular style selected by the user and the fresh mood mode to conform to the popular And fresh style characteristics, and determine the popular and fresh style accompaniment patterns that match the four arpeggio sequences, select the harmony that corresponds to the song style and song emotion from the music library, and the accompaniment instruments are guitars and drums, etc. , And play to generate accompaniment harmonies completed by guitars and drums, and finally synthesize four arpeggio sequences and accompaniment harmonies to output a complete process. A sequence of four arpeggios arranged by musical elements.
歌曲生成模块17包括:The song generation module 17 includes:
结束音模块,用于若目标包括尾奏,则将尾奏的结束音设定为三和弦的根音。The ending sound module is used to set the ending sound of the ending to the root of the third chord if the target includes the ending.
在根据预设作曲规则选取目标时,若目标包括尾奏,则将尾奏的结束音设定为三和弦的根音,结束音停留在三和弦根音能够使歌曲听上去是正式结束了。When selecting a target according to a preset composition rule, if the target includes an ending, the ending of the ending is set to the root of the third chord, and the ending of the ending sound stays at the root of the third chord to make the song officially end.
歌曲生成模块17包括:The song generation module 17 includes:
第一子歌曲格式获取模块,用于获取用户选择的歌曲格式;The first sub-song format obtaining module is used to obtain the song format selected by the user;
第二子生成模块,用于根据歌曲格式,生成与歌曲格式相应格式的歌曲。The second sub-generating module is configured to generate a song in a format corresponding to the song format according to the song format.
在生成歌曲过程中,弹出让用户选择歌曲格式的选择框,歌曲格式包括MIDI、MP3和五线谱,用户在MIDI、MP3和五线谱中选择一种,在用户作出选择后,根据用户选择的歌曲模式,继续生成歌曲,用户根据自己的喜好或者习惯选择生成歌曲的格式,以便更好的读取和读懂歌曲的信息。During the song generation process, a selection box pops up to let the user select the song format. Song formats include MIDI, MP3, and staff notation. The user selects one of MIDI, MP3, and staff notation. After the user makes a selection, according to the song mode selected by the user, Continue to generate songs, users choose the format of the generated songs according to their preferences or habits, in order to better read and understand the song information.
歌曲生成模块17包括:The song generation module 17 includes:
第一子歌曲时长获取模块,用于获取用户选择的歌曲时长;The first sub-song duration acquisition module is used to obtain the song duration selected by the user;
时长调整模块,用于根据歌曲时长,按前奏、前间奏、尾间奏、尾奏和主旋律各自占总时长的预设比例,调整目标及主旋律的时长;The length adjustment module is used to adjust the duration of the target and the main melody according to the preset proportions of the total length of the intro, intro, interlude, and main melody according to the duration of the song;
第三子生成模块,用于生成与歌曲时长相应时长的歌曲。The third sub-generating module is used to generate a song of a duration corresponding to the duration of the song.
在生成歌曲过程中,弹出让用户选择歌曲时长的选择框,歌曲时长包括30秒、60秒和90秒,用户在30秒、60秒和90秒中选择一种,在用户作出选择后,根据用户选择的歌曲时长,按前奏、前间奏、尾间奏、尾奏和主旋律各自占总时长的预设比例,调整目标及主旋律的时长,生成与歌曲时长相应时长的歌曲,其中曲式结构不同,前奏、前间奏、尾间奏、尾奏和主旋律各自占总时长的预设比例不同,用户根据自己的喜好或者习惯选择生成歌曲的时长,以便更好适应用户听歌的习惯。During the song generation process, a pop-up selection box for the user to select the song duration is displayed. The song duration includes 30 seconds, 60 seconds, and 90 seconds. The user selects one of 30 seconds, 60 seconds, and 90 seconds. After the user makes a selection, The length of the song selected by the user, according to the preset proportions of the intro, intro, interlude, ending, and main melody respectively, adjust the target and main melody duration to generate a song corresponding to the duration of the song. Different, the intro, intro, interlude, ending, and main melody each have different preset proportions for the total duration. The user selects the duration of the song according to their preferences or habits to better adapt to the user's listening habits.
例如,在五段式曲式中,各部分占总时长百分比约为:前奏20%、前间奏10%、主旋律40%、尾间奏10%、尾奏20%;30秒时长的歌曲: 前奏6s、前间奏3s、主旋律12s、尾间奏3s、尾奏6s;60秒时长的歌曲: 前奏12s、前间奏6s、主旋律24s、尾间奏6s、尾奏12s。For example, in a five-segment style, the percentage of the total duration of each part is approximately: 20% intro, 10% intro, 40% in melody, 10% in interlude, 20% in end; 30-second songs: Intro 6s, Interlude 3s, Main Melody 12s, Interlude 3s, Endo 6s; Songs of 60 seconds duration: Intro 12s, Prelude 6s, Main Melody 24s, Interlude 6s, Endo 12s.
装置1包括:Device 1 includes:
第一分类存储模块,用于根据所选的歌曲类型对生成的歌曲进行分类存储。The first classification storage module is configured to classify and store the generated songs according to the selected song type.
通过对歌曲进行分类存储,包括流行、古典、爵士、民谣、快乐、伤感、清新和怀旧。具体地,根据用户所选择的歌曲类型对歌曲进行分类,从而给歌曲贴上与所选歌曲类型对应的标签,方便对创作的歌曲进行管理。Songs are sorted and stored, including pop, classical, jazz, folk, happy, sad, fresh and nostalgic. Specifically, the songs are classified according to the song types selected by the user, so that the songs are labeled with tags corresponding to the selected song types, which facilitates the management of the composed songs.
装置1包括:Device 1 includes:
第一多音轨生成模块,用于将生成的歌曲添加伴奏音轨进行混音操作得到多音轨作品。The first multi-track generating module is configured to add the accompaniment track to the generated song and perform a mixing operation to obtain a multi-track work.
通过给歌曲添加伴奏音轨,如钢琴、吉他、贝司和架子鼓等,具体地,通过获取音乐库中与所选歌曲类型相对应的伴奏文件与生成的歌曲合成多音轨作品,使作品更加丰满,更具有感染力。By adding accompaniment tracks to songs, such as piano, guitar, bass, and drums, etc., specifically, by obtaining accompaniment files corresponding to the selected song type in the music library and synthesizing multi-track works with the generated songs, the work is made More plump and more contagious.
装置1还包括:The device 1 further includes:
第一合成模块,用于将生成的多音轨歌曲与预先录制的人声音源文件合成得到歌曲音频文件。A first synthesizing module is configured to synthesize the generated multi-track song with a pre-recorded human voice source file to obtain a song audio file.
通过给歌曲添加人声音源文件,通过语音合成技术将预先录制的人声音源文件与多音轨歌曲进行合成,生产完整的歌曲音频文件,能满足商业应用需求。By adding human voice source files to songs, and synthesizing pre-recorded human voice source files with multi-track songs through speech synthesis technology, a complete song audio file can be produced, which can meet the needs of commercial applications.
综上所述,预先建立的预设作曲规则和音乐库进行作曲,音乐库包含大量歌曲,并按歌曲风格和歌曲情感标签进行分类,预设作曲规则包括基板乐理、音阶、琶音、和声、复调、配器、节奏和曲式结构,与不同歌曲风格和歌曲情感标签相对应,同时根据和声理论对用户输入的三个起始音进行三和弦分解后再进行和弦转位,随机生成四段与和弦对应的琶音序列,之后先根据预设作曲规则和用户选择的歌曲风格和歌曲情感,对四段琶音序列的相应音乐要素进行编配,主旋律为音乐库中随机抽调的与所选歌曲风格和歌曲情感标签相对应的旋律,尾奏的结束音设定为三和弦的根音,最后将五段音乐片段按顺序拼接,最后输出歌曲。歌曲是自动创作,歌曲创作效率高,而且生成的歌曲中添加了用户选择的歌曲风格和歌曲情感,符合用户的喜好,提高用户体验。通过用户输入的起始音和歌曲类型,根据预设作曲规则生成歌曲,并不需要用户具备一定的音乐理论知识,用户就能作曲,旨在解决现有的自动编曲软件需要用户具备一定的音乐理论知识才可流畅使用的问题。In summary, the pre-established preset composition rules and music library are used for composition. The music library contains a large number of songs and is classified according to the song style and song emotional tags. The preset composition rules include substrate music theory, scales, arpeggios, and harmony. , Polyphony, orchestration, rhythm, and melody structure, corresponding to different song styles and song emotional tags. At the same time, according to the harmony theory, three chords are decomposed by the user and then chord inversion is performed. Randomly generated Four arpeggio sequences corresponding to chords, and then the corresponding music elements of the four arpeggio sequences are arranged according to the preset composition rules and the song style and song emotion selected by the user. The main melody is randomly selected and adjusted in the music library. The melody corresponding to the selected song style and the emotional label of the song. The ending of the ending is set to the root of the third chord. Finally, the five music pieces are stitched in order, and the song is finally output. The songs are created automatically, and the song creation efficiency is high, and the song style and song emotion selected by the user are added to the generated songs, which conforms to the user's preferences and improves the user experience. The song is generated according to the preset composition rules by the user's starting sound and song type. It does not require the user to have a certain knowledge of music theory, and the user can compose. The purpose is to solve the existing automatic arrangement software that requires the user to have a certain Only the knowledge of music theory can be used smoothly.
如图3所示,本申请实施例中还提供一种计算机设备,该计算机设备可以是服务器,其内部结构可以如图3所示。该计算机设备包括通过系统总线连接的处理器、存储器、网络接口和数据库。其中,该计算机设计的处理器用于提供计算和控制能力。该计算机设备的存储器包括非易失性存储介质、内存储器。该非易失性存储介质存储有操作系统、计算机可读指令和数据库。该内存器为非易失性存储介质中的操作系统和计算机可读指令的运行提供环境。该计算机设备的数据库用于存储自动作曲方法的模型等数据。该计算机设备的网络接口用于与外部的终端通过网络连接通信。该计算机可读指令被处理器执行时以实现一种自动作曲方法。As shown in FIG. 3, a computer device is also provided in the embodiment of the present application. The computer device may be a server, and its internal structure may be as shown in FIG. 3. The computer device includes a processor, a memory, a network interface, and a database connected through a system bus. Among them, the computer design processor is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, computer-readable instructions, and a database. The memory provides an environment for operating systems and computer-readable instructions in a non-volatile storage medium. The database of the computer equipment is used to store data such as models of the automatic composition method. The network interface of the computer device is used to communicate with an external terminal through a network connection. The computer-readable instructions are executed by a processor to implement an automatic composition method.
上述处理器执行上述自动作曲方法的步骤:获取用户输入的三个以上起始音;根据和声理论,对所述用户输入的所述三个以上起始音进行和弦分解及在和弦分解之后进行和弦转位;在和弦转位之后,随机生成与和弦对应的四段琶音序列;获取所述用户选择的歌曲类型;根据所述预设作曲规则和所述歌曲类型,对所述四段琶音序列编配相应音乐要素,获得前奏、前间奏、尾间奏和尾奏;从音乐库中随机抽调一段与所述歌曲类型对应的旋律,获得主旋律;根据所述预设作曲规则对所述前奏、所述前间奏、所述尾间奏和所述尾奏中选取目标,将所述目标与所述主旋律按顺序拼接,生成一歌曲。The above processor executes the steps of the above-mentioned automatic composition method: obtaining more than three start sounds input by a user; performing chord decomposition on the three or more start sounds input by the user according to the harmony theory and performing the chord decomposition Chord inversion; after chord inversion, randomly generate four arpeggio sequences corresponding to the chords; obtain the song type selected by the user; according to the preset composition rule and the song type, the four arpeggios Arrange the corresponding music elements in the sound sequence to obtain the intro, intro, end, and end; randomly select a melody corresponding to the type of song from the music library to obtain the main melody; A target is selected from the intro, the intro, the interlude and the endluo, and the target and the main melody are spliced in order to generate a song.
在一个实施例中,上述四段琶音序列包括均为上行或者下行琵音的第一、二段琶音序列,以及均为上行或者下行琵音的第三、四段琶音序列,上述根据所述预设作曲规则和所述歌曲类型,对所述四段琶音序列编配相应音乐要素,获得前奏、前间奏、尾间奏和尾奏的步骤中,包括:In one embodiment, the four arpeggio sequences include the first and second arpeggio sequences, both of which are ascending or descending arpeggios, and the third and fourth arpeggio sequences, which are both ascending or descending arpeggios. In the preset composition rule and the song type, the steps of assigning corresponding music elements to the four arpeggio sequences to obtain intro, intro, interlude, and ender include:
选取所述第一段琶音序列、所述第二段琶音序列分别作为所述前奏的琶音、所述前间奏的琶音;Selecting the first arpeggio sequence and the second arpeggio sequence as the arpeggio of the intro and the arpeggio of the intro;
根据所述预设作曲规则和所述歌曲类型,对所述第一段琶音序列编配所述前奏所需的音乐要素,获得所述前奏;According to the preset composition rule and the song type, arrange the music elements required for the intro to the first arpeggio sequence to obtain the intro;
根据所述预设作曲规则和所述歌曲类型,对所述第二段琶音序列编配所述前间奏所需的音乐要素,获得所述前间奏;According to the preset composition rule and the song type, arrange the music elements required for the prelude to the second arpeggio sequence to obtain the prelude;
再选取所述第三段琶音序列、所述第四段琶音序列分别作为所述尾间奏的琶音和所述尾奏的琶音;Selecting the third arpeggio sequence and the fourth arpeggio sequence as the arpeggio of the interlude and the arpeggio of the ending;
根据所述预设作曲规则和所述歌曲类型,对所述第三段琶音序列编配所述尾间奏所需的音乐要素,获得所述尾间奏;According to the preset composition rule and the song type, assigning the music elements required for the interlude to the third arpeggio sequence to obtain the interlude;
根据所述预设作曲规则和所述歌曲类型,对所述第四段琶音序列编配所述尾奏所需的音乐要素,获得所述尾奏。According to the preset composition rule and the song type, the fourth arpeggio sequence is arranged with the music elements required for the ending to obtain the ending.
在一个实施例中,上述根据所述预设作曲规则对所述前奏、所述前间奏、所述尾间奏和所述尾奏中选取目标,将所述目标与所述主旋律按顺序拼接,生成一歌曲的步骤中,包括:In one embodiment, according to the preset composition rule, a target is selected from among the intro, the intro, the interlude and the end, and the target and the main melody are spliced in order. The steps to generate a song include:
若所述目标包括所述尾奏,则将所述尾奏的结束音设定为三和弦的根音。If the target includes the ending, the ending of the ending is set to the root of a third chord.
在一个实施例中,上述获取所述用户选择的歌曲类型的步骤中,包括:In one embodiment, the step of obtaining the song type selected by the user includes:
获取所述用户选择的歌曲风格;或者Obtaining the song style selected by the user; or
获取所述用户选择的歌曲情感;或者Obtaining the song emotion selected by the user; or
获取所述用户选择的歌曲风格和歌曲情感。Acquire the song style and song emotion selected by the user.
在一个实施例中,上述预设作曲规则根据音乐规则编写,包括基本乐理、音阶、琶音、和声、复调、配器、节奏和曲式结构。In one embodiment, the above-mentioned preset composition rules are written according to music rules, including basic music theory, scales, arpeggios, harmony, polyphony, orchestration, rhythm, and melody structure.
在一个实施例中,上述根据所述预设作曲规则对所述前奏、所述前间奏、所述尾间奏和所述尾奏中选取目标,将所述目标与所述主旋律按顺序拼接,生成一歌曲的步骤中,包括:In one embodiment, according to the preset composition rule, a target is selected from among the intro, the intro, the interlude and the end, and the target and the main melody are spliced in order. The steps to generate a song include:
获取所述用户选择的歌曲格式;Obtaining a song format selected by the user;
根据所述歌曲格式,生成与所述歌曲格式相应格式的歌曲。According to the song format, a song in a format corresponding to the song format is generated.
在一个实施例中,上述根据所述预设作曲规则对所述前奏、所述前间奏、所述尾间奏和所述尾奏中选取目标,将所述目标与所述主旋律按顺序拼接,生成一歌曲的步骤中,包括:In one embodiment, according to the preset composition rule, a target is selected from among the intro, the intro, the interlude and the end, and the target and the main melody are spliced in order. The steps to generate a song include:
获取所述用户选择的歌曲时长;Obtaining the song duration selected by the user;
根据所述歌曲时长,按所述前奏、所述前间奏、所述尾间奏、所述尾奏和所述主旋律各自占总时长的预设比例,调整所述目标及所述主旋律的时长;According to the duration of the song, the target and the duration of the main melody are adjusted according to a preset proportion of the total length of the intro, the intro, the interlude, the end and the main melody, respectively. ;
生成与所述歌曲时长相应时长的歌曲。A song of a duration corresponding to the duration of the song is generated.
本领域技术人员可以理解,图3中示出的结构,仅仅是与本申请方案相关的部分结构的框图,并不构成对本申请方案所应用于其上的计算机设备的限定。Those skilled in the art can understand that the structure shown in FIG. 3 is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer equipment to which the solution of the present application is applied.
本申请实施例的计算机设备,通过用户输入的起始音和歌曲类型,根据预设作曲规则生成歌曲,并不需要用户具备一定的音乐理论知识,用户就能作曲,旨在解决现有的自动编曲软件需要用户具备一定的音乐理论知识才可流畅使用的问题。The computer device according to the embodiment of the present application generates songs according to preset composition rules based on a start sound and a song type input by a user, and does not require the user to have a certain knowledge of music theory, and the user can compose, which aims to solve the existing automatic Arrangement software requires the user to have a certain knowledge of music theory before it can be used smoothly.
本申请一实施例还提供一种计算机非易失性可读存储介质,其上存储有计算机可读指令,计算机可读指令被处理器执行时实现如上述各方法的实施例的流程。An embodiment of the present application further provides a computer non-volatile readable storage medium, which stores computer-readable instructions. When the computer-readable instructions are executed by a processor, the processes of the embodiments of the foregoing methods are implemented.
以上所述仅为本发明的较佳实施例而已,并不用以限制本发明,凡在本发明的精神和原则之内所作的任何修改、等同替换和改进等,均应包含在本发明的保护范围之内。The above description is only the preferred embodiments of the present invention and is not intended to limit the present invention. Any modification, equivalent replacement, and improvement made within the spirit and principle of the present invention shall be included in the protection of the present invention. Within range.

Claims (20)

  1. 一种自动作曲方法,其特征在于,所述方法包括:An automatic composition method, characterized in that the method includes:
    获取用户输入的三个以上起始音;Get more than three start sounds input by the user;
    根据和声理论,对所述用户输入的所述三个以上起始音进行和弦分解及在和弦分解之后进行和弦转位;Performing chord decomposition on the three or more start notes input by the user and performing chord inversion after the chord decomposition according to the harmony theory;
    在和弦转位之后,随机生成与和弦对应的四段琶音序列;After the chords are transposed, four arpeggio sequences corresponding to the chords are randomly generated;
    获取所述用户选择的歌曲类型;Obtaining a song type selected by the user;
    根据所述预设作曲规则和所述歌曲类型,对所述四段琶音序列编配相应音乐要素,获得前奏、前间奏、尾间奏和尾奏;Arrange corresponding music elements to the four arpeggio sequences according to the preset composition rule and the song type to obtain intro, intro, end and end
    从音乐库中随机抽调一段与所述歌曲类型对应的旋律,获得主旋律;Randomly select a melody corresponding to the song type from the music library to obtain the main melody;
    根据所述预设作曲规则对所述前奏、所述前间奏、所述尾间奏和所述尾奏中选取目标,将所述目标与所述主旋律按顺序拼接,生成一歌曲。According to the preset composition rule, a target is selected from the intro, the interlude, the interlude and the endluo, and the target and the main melody are spliced in order to generate a song.
  2. 根据权利要求1所述的自动作曲方法,其特征在于,所述四段琶音序列包括均为上行或者下行琵音的第一、二段琶音序列,以及均为上行或者下行琵音的第三、四段琶音序列,在所述根据所述预设作曲规则和所述歌曲类型,对所述四段琶音序列编配相应音乐要素,获得前奏、前间奏、尾间奏和尾奏的步骤中,包括:The automatic composition method according to claim 1, wherein the four-segment arpeggio sequence includes first and second arpeggio sequences, both of which are ascending or descending arpeggios, and the first arpeggio sequence, which are both ascending or descending arpeggios. Three or four arpeggio sequences. According to the preset composition rules and the song type, the four arpeggio sequences are assigned corresponding music elements to obtain intros, preludes, endings, and endings. The steps to play include:
    选取所述第一段琶音序列、所述第二段琶音序列分别作为所述前奏的琶音、所述前间奏的琶音;Selecting the first arpeggio sequence and the second arpeggio sequence as the arpeggio of the intro and the arpeggio of the intro;
    根据所述预设作曲规则和所述歌曲类型,对所述第一段琶音序列编配所述前奏所需的音乐要素,获得所述前奏;According to the preset composition rule and the song type, arrange the music elements required for the intro to the first arpeggio sequence to obtain the intro;
    根据所述预设作曲规则和所述歌曲类型,对所述第二段琶音序列编配所述前间奏所需的音乐要素,获得所述前间奏;According to the preset composition rule and the song type, arrange the music elements required for the prelude to the second arpeggio sequence to obtain the prelude;
    再选取所述第三段琶音序列、所述第四段琶音序列分别作为所述尾间奏的琶音和所述尾奏的琶音;Selecting the third arpeggio sequence and the fourth arpeggio sequence as the arpeggio of the interlude and the arpeggio of the ending;
    根据所述预设作曲规则和所述歌曲类型,对所述第三段琶音序列编配所述尾间奏所需的音乐要素,获得所述尾间奏;According to the preset composition rule and the song type, assigning the music elements required for the interlude to the third arpeggio sequence to obtain the interlude;
    根据所述预设作曲规则和所述歌曲类型,对所述第四段琶音序列编配所述尾奏所需的音乐要素,获得所述尾奏。According to the preset composition rule and the song type, the fourth arpeggio sequence is arranged with the music elements required for the ending to obtain the ending.
  3. 根据权利要求1所述的自动作曲方法,其特征在于,在所述根据所述预设作曲规则对所述前奏、所述前间奏、所述尾间奏和所述尾奏中选取目标,将所述目标与所述主旋律按顺序拼接,生成一歌曲的步骤中,包括:The automatic composition method according to claim 1, wherein a target is selected among the intro, the intro, the interlude and the endluo according to the preset composition rule, The step of splicing the target and the main melody in order to generate a song includes:
    若所述目标包括所述尾奏,则将所述尾奏的结束音设定为三和弦的根音。If the target includes the ending, the ending of the ending is set to the root of a third chord.
  4. 根据权利要求1所述的自动作曲方法,其特征在于,在所述获取所述用户选择的歌曲类型的步骤中,包括:The automatic composition method according to claim 1, wherein, in the step of acquiring a song type selected by the user, comprises:
    获取所述用户选择的歌曲风格;或者Obtaining the song style selected by the user; or
    获取所述用户选择的歌曲情感;或者Obtaining the song emotion selected by the user; or
    获取所述用户选择的歌曲风格和歌曲情感。Acquire the song style and song emotion selected by the user.
  5. 根据权利要求1所述的自动作曲方法,其特征在于,所述预设作曲规则根据音乐规则编写,包括基本乐理、音阶、琶音、和声、复调、配器、节奏和曲式结构。The automatic composition method according to claim 1, wherein the preset composition rules are written according to music rules, and include basic music theory, scales, arpeggios, harmony, polyphony, orchestration, rhythm, and melody structure.
  6. 根据权利要求1所述的自动作曲方法,其特征在于,在所述根据所述预设作曲规则对所述前奏、所述前间奏、所述尾间奏和所述尾奏中选取目标,将所述目标与所述主旋律按顺序拼接,生成一歌曲的步骤中,包括:The automatic composition method according to claim 1, wherein a target is selected among the intro, the intro, the interlude and the endluo according to the preset composition rule, The step of splicing the target and the main melody in order to generate a song includes:
    获取所述用户选择的歌曲格式;Obtaining a song format selected by the user;
    根据所述歌曲格式,生成与所述歌曲格式相应格式的歌曲。According to the song format, a song in a format corresponding to the song format is generated.
  7. 根据权利要求1所述的自动作曲方法,其特征在于,在所述根据所述预设作曲规则对所述前奏、所述前间奏、所述尾间奏和所述尾奏中选取目标,将所述目标与所述主旋律按顺序拼接,生成一歌曲的步骤中,包括:The automatic composition method according to claim 1, wherein a target is selected among the intro, the intro, the interlude and the endluo according to the preset composition rule, The step of splicing the target and the main melody in order to generate a song includes:
    获取所述用户选择的歌曲时长;Obtaining the song duration selected by the user;
    根据所述歌曲时长,按所述前奏、所述前间奏、所述尾间奏、所述尾奏和所述主旋律各自占总时长的预设比例,调整所述目标及所述主旋律的时长;According to the duration of the song, the target and the duration of the main melody are adjusted according to a preset proportion of the total length of the intro, the intro, the interlude, the end and the main melody, respectively. ;
    生成与所述歌曲时长相应时长的歌曲。A song of a duration corresponding to the duration of the song is generated.
  8. 一种自动作曲装置,其特征在于,所述装置包括:An automatic composition device, characterized in that the device includes:
    第一获取模块,用于获取用户输入的三个以上起始音;A first acquisition module, configured to acquire more than three start sounds input by a user;
    处理模块,用于根据和声理论,对所述用户输入的所述三个以上起始音进行和弦分解及在和弦分解之后进行和弦转位;A processing module, configured to perform chord decomposition on the three or more start notes input by the user and perform chord inversion after the chord decomposition according to the harmony theory;
    琶音序列生成模块,用于在和弦转位之后,随机生成与和弦对应的四段琶音序列;Arpeggio sequence generation module is used to randomly generate four arpeggio sequences corresponding to chords after the chords are transposed;
    第二获取模块,用于获取所述用户选择的歌曲类型;A second acquisition module, configured to acquire a song type selected by the user;
    第一获得模块,用于根据所述预设作曲规则和所述歌曲类型,对所述四段琶音序列编配相应音乐要素,获得前奏、前间奏、尾间奏和尾奏;A first obtaining module, configured to assign corresponding music elements to the four arpeggio sequences according to the preset composition rule and the song type to obtain an intro, an intro, an interlude, and an ender;
    第二获得模块,用于从音乐库中随机抽调一段与所述歌曲类型对应的旋律,获得主旋律;A second obtaining module, configured to randomly tune a melody corresponding to the song type from the music library to obtain a main melody;
    歌曲生成模块,用于根据所述预设作曲规则对所述前奏、所述前间奏、所述尾间奏和所述尾奏中选取,将所述目标与所述主旋律按顺序拼接,生成一歌曲。A song generating module is configured to select the intro, the intro, the interlude, and the end in accordance with the preset composition rule, and splice the target and the main melody in order to generate A song.
  9. 根据权利要求8所述的自动作曲装置,其特征在于,所述四段琶音序列包括均为上行或者下行琵音的第一、二段琶音序列,以及均为上行或者下行琵音的第三、四段琶音序列,所述第一获得模块包括:The automatic composition device according to claim 8, wherein the four-segment arpeggio sequence includes first and second arpeggio sequences, both of which are ascending or descending arpeggio, and Three or four arpeggio sequences, the first obtaining module includes:
    第一选取模块,用于选取所述第一段琶音序列、所述第二段琶音序列分别作为所述前奏的琶音、所述前间奏的琶音;A first selection module, configured to select the first arpeggio sequence and the second arpeggio sequence as the arpeggio of the intro and the arpeggio of the intro;
    前奏模块,用于根据所述预设作曲规则和所述歌曲类型,对所述第一段琶音序列编配所述前奏所需的音乐要素,获得所述前奏;An intro module, configured to arrange the first arpeggio sequence with the music elements required for the intro according to the preset composition rule and the song type to obtain the intro;
    前间奏模块,用于根据所述预设作曲规则和所述歌曲类型,对所述第二段琶音序列编配所述前间奏所需的音乐要素,获得所述前间奏;A prelude module, configured to arrange the second arpeggio sequence according to the preset composition rule and the song type, and obtain the prelude;
    第二选取模块,用于再选取所述第三段琶音序列、所述第四段琶音序列分别作为所述尾间奏的琶音和所述尾奏的琶音;A second selection module, configured to select the third arpeggio sequence and the fourth arpeggio sequence as the arpeggio of the interlude and the arpeggio of the ending;
    尾间奏模块,用于根据所述预设作曲规则和所述歌曲类型,对所述第三段琶音序列编配所述尾间奏所需的音乐要素,获得所述尾间奏;The interlude module is configured to arrange the third interval of the arpeggio sequence to the music elements required for the interlude according to the preset composition rule and the song type, to obtain the interlude;
    尾奏模块,用于根据所述预设作曲规则和所述歌曲类型,对所述第四段琶音序列编配所述尾奏所需的音乐要素,获得所述尾奏。The ending module is used to arrange the fourth arpeggio sequence with the music elements required for the ending according to the preset composition rule and the song type to obtain the ending.
  10. 根据权利要求8所述的自动作曲装置,其特征在于,所述歌曲生成模块包括:The automatic composition device according to claim 8, wherein the song generating module comprises:
    结束音模块,用于若所述目标包括所述尾奏,则将所述尾奏的结束音设定为三和弦的根音。The ending sound module is configured to set the ending sound of the ending to the root of a third chord if the target includes the ending.
  11. 根据权利要求8所述的自动作曲装置,其特征在于,所述第二获取模块包括:The automatic composition device according to claim 8, wherein the second acquisition module comprises:
    第二子获取模块,用于获取所述用户选择的歌曲风格;或者A second sub-obtaining module, configured to obtain a song style selected by the user; or
    第二子获取模块,用于获取所述用户选择的歌曲情感;或者A second sub-obtaining module, configured to obtain the song emotion selected by the user; or
    第二子获取模块,用于获取所述用户选择的歌曲风格和歌曲情感。The second sub-obtaining module is configured to obtain the song style and song emotion selected by the user.
  12. 根据权利要求8所述的自动作曲装置,其特征在于,所述预设作曲规则根据音乐规则编写,包括基本乐理、音阶、琶音、和声、复调、配器、节奏和曲式结构。The automatic composition device according to claim 8, wherein the preset composition rules are written according to music rules, including basic music theory, scales, arpeggios, harmony, polyphony, orchestration, rhythm, and melody structure.
  13. 根据权利要求8所述的自动作曲装置,其特征在于,所述歌曲生成模块包括:The automatic composition device according to claim 8, wherein the song generating module comprises:
    第一子歌曲格式获取模块,用于获取所述用户选择的歌曲格式;A first sub-song format obtaining module, configured to obtain a song format selected by the user;
    第二子生成模块,用于根据所述歌曲格式,生成与所述歌曲格式相应格式的歌曲。A second sub-generation module is configured to generate a song in a format corresponding to the song format according to the song format.
  14. 根据权利要求8所述的自动作曲装置,其特征在于,所述歌曲生成模块包括:The automatic composition device according to claim 8, wherein the song generating module comprises:
    第一子歌曲时长获取模块,用于获取所述用户选择的歌曲时长;A first sub-song duration acquisition module, configured to obtain a song duration selected by the user;
    时长调整模块,用于根据所述歌曲时长,按所述前奏、所述前间奏、所述尾间奏、所述尾奏和所述主旋律各自占总时长的预设比例,调整所述目标及所述主旋律的时长;A time length adjustment module, configured to adjust the target according to a preset ratio of the intro, the intro, the interlude, the end, and the main melody to the total time according to the duration of the song And the duration of the main theme;
    第三子生成模块,用于生成与所述歌曲时长相应时长的歌曲。A third sub-generation module is configured to generate a song of a duration corresponding to the duration of the song.
  15. 一种计算机设备,包括存储器和处理器,所述存储器存储有计算机可读指令,其特征在于,所述处理器执行所述计算机可读指令时实现自动作曲方法,所述自动作曲方法包括:A computer device includes a memory and a processor. The memory stores computer-readable instructions, and is characterized in that the processor implements an automatic composition method when executing the computer-readable instructions, and the automatic composition method includes:
    获取用户输入的三个以上起始音;Get more than three start sounds input by the user;
    根据和声理论,对所述用户输入的所述三个以上起始音进行和弦分解及在和弦分解之后进行和弦转位;Performing chord decomposition on the three or more start notes input by the user and performing chord inversion after the chord decomposition according to the harmony theory;
    在和弦转位之后,随机生成与和弦对应的四段琶音序列;After the chords are transposed, four arpeggio sequences corresponding to the chords are randomly generated;
    获取所述用户选择的歌曲类型;Obtaining a song type selected by the user;
    根据所述预设作曲规则和所述歌曲类型,对所述四段琶音序列编配相应音乐要素,获得前奏、前间奏、尾间奏和尾奏;Arrange corresponding music elements to the four arpeggio sequences according to the preset composition rule and the song type to obtain intro, intro, end and end
    从音乐库中随机抽调一段与所述歌曲类型对应的旋律,获得主旋律;Randomly select a melody corresponding to the song type from the music library to obtain the main melody;
    根据所述预设作曲规则对所述前奏、所述前间奏、所述尾间奏和所述尾奏中选取目标,将所述目标与所述主旋律按顺序拼接,生成一歌曲。According to the preset composition rule, a target is selected from the intro, the interlude, the interlude and the endluo, and the target and the main melody are spliced in order to generate a song.
  16. 根据权利要求15所述的计算机设备,其特征在于,所述四段琶音序列包括均为上行或者下行琵音的第一、二段琶音序列,以及均为上行或者下行琵音的第三、四段琶音序列,在所述根据所述预设作曲规则和所述歌曲类型,对所述四段琶音序列编配相应音乐要素,获得前奏、前间奏、尾间奏和尾奏的步骤中,包括:The computer device according to claim 15, wherein the four-segment arpeggio sequence includes first and second arpeggio sequences that are both up or down arpeggios, and the third arpeggio sequence that is both up or down arpeggios And a four-segment arpeggio sequence, and according to the preset composition rule and the song type, the four arpeggios sequence is assigned corresponding music elements to obtain an intro, an intro, an end intro, and an end intro The steps include:
    选取所述第一段琶音序列、所述第二段琶音序列分别作为所述前奏的琶音、所述前间奏的琶音;Selecting the first arpeggio sequence and the second arpeggio sequence as the arpeggio of the intro and the arpeggio of the intro;
    根据所述预设作曲规则和所述歌曲类型,对所述第一段琶音序列编配所述前奏所需的音乐要素,获得所述前奏;According to the preset composition rule and the song type, arrange the music elements required for the intro to the first arpeggio sequence to obtain the intro;
    根据所述预设作曲规则和所述歌曲类型,对所述第二段琶音序列编配所述前间奏所需的音乐要素,获得所述前间奏;According to the preset composition rule and the song type, arrange the music elements required for the prelude to the second arpeggio sequence to obtain the prelude;
    再选取所述第三段琶音序列、所述第四段琶音序列分别作为所述尾间奏的琶音和所述尾奏的琶音;Selecting the third arpeggio sequence and the fourth arpeggio sequence as the arpeggio of the interlude and the arpeggio of the ending;
    根据所述预设作曲规则和所述歌曲类型,对所述第三段琶音序列编配所述尾间奏所需的音乐要素,获得所述尾间奏;According to the preset composition rule and the song type, assigning the music elements required for the interlude to the third arpeggio sequence to obtain the interlude;
    根据所述预设作曲规则和所述歌曲类型,对所述第四段琶音序列编配所述尾奏所需的音乐要素,获得所述尾奏。According to the preset composition rule and the song type, the fourth arpeggio sequence is arranged with the music elements required for the ending to obtain the ending.
  17. 根据权利要求16所述的计算机设备,其特征在于,在所述根据所述预设作曲规则对所述前奏、所述前间奏、所述尾间奏和所述尾奏中选取目标,将所述目标与所述主旋律按顺序拼接,生成一歌曲的步骤中,包括:The computer device according to claim 16, wherein a target is selected in the intro, the intro, the interlude, and the end in accordance with the preset composition rule, and The step of splicing the target and the main melody in order to generate a song includes:
    若所述目标包括所述尾奏,则将所述尾奏的结束音设定为三和弦的根音。If the target includes the ending, the ending of the ending is set to the root of a third chord.
  18. 根据权利要求17所述的计算机设备,其特征在于,在所述获取所述用户选择的歌曲类型的步骤中,包括:The computer device according to claim 17, wherein in the step of acquiring the song type selected by the user, comprises:
    获取所述用户选择的歌曲风格;或者Obtaining the song style selected by the user; or
    获取所述用户选择的歌曲情感;或者Obtaining the song emotion selected by the user; or
    获取所述用户选择的歌曲风格和歌曲情感。Acquire the song style and song emotion selected by the user.
  19. 一种计算机非易失性可读存储介质,其上存储有计算机可读指令,其特征在于,所述计算机可读指令被处理器执行时实现自动作曲方法,所述自动作曲方法包括:A computer non-volatile readable storage medium having computer-readable instructions stored thereon, characterized in that when the computer-readable instructions are executed by a processor, an automatic composition method is implemented, and the automatic composition method includes:
    获取用户输入的三个以上起始音;Get more than three start sounds input by the user;
    根据和声理论,对所述用户输入的所述三个以上起始音进行和弦分解及在和弦分解之后进行和弦转位;Performing chord decomposition on the three or more start notes input by the user and performing chord inversion after the chord decomposition according to the harmony theory;
    在和弦转位之后,随机生成与和弦对应的四段琶音序列;After the chords are transposed, four arpeggio sequences corresponding to the chords are randomly generated;
    获取所述用户选择的歌曲类型;Obtaining a song type selected by the user;
    根据所述预设作曲规则和所述歌曲类型,对所述四段琶音序列编配相应音乐要素,获得前奏、前间奏、尾间奏和尾奏;Arrange corresponding music elements to the four arpeggio sequences according to the preset composition rule and the song type to obtain intro, intro, end and end
    从音乐库中随机抽调一段与所述歌曲类型对应的旋律,获得主旋律;Randomly select a melody corresponding to the song type from the music library to obtain the main melody;
    根据所述预设作曲规则对所述前奏、所述前间奏、所述尾间奏和所述尾奏中选取目标,将所述目标与所述主旋律按顺序拼接,生成一歌曲。According to the preset composition rule, a target is selected from the intro, the interlude, the interlude and the endluo, and the target and the main melody are spliced in order to generate a song.
  20. 根据权利要求19所述的计算机非易失性可读存储介质,其特征在于,所述四段琶音序列包括均为上行或者下行琵音的第一、二段琶音序列,以及均为上行或者下行琵音的第三、四段琶音序列,在所述根据所述预设作曲规则和所述歌曲类型,对所述四段琶音序列编配相应音乐要素,获得前奏、前间奏、尾间奏和尾奏的步骤中,包括:The computer non-volatile readable storage medium according to claim 19, wherein the four-segment arpeggio sequence includes first and second arpeggio sequences that are both upward or downward arpeggios, and both are upstream Or the third and fourth arpeggio sequences of the descending arpeggios. According to the preset composition rules and the song type, the corresponding four elements of the arpeggio sequence are arranged to obtain intros and interludes. , Interlude, and Ending steps include:
    选取所述第一段琶音序列、所述第二段琶音序列分别作为所述前奏的琶音、所述前间奏的琶音;Selecting the first arpeggio sequence and the second arpeggio sequence as the arpeggio of the intro and the arpeggio of the intro;
    根据所述预设作曲规则和所述歌曲类型,对所述第一段琶音序列编配所述前奏所需的音乐要素,获得所述前奏;According to the preset composition rule and the song type, arrange the music elements required for the intro to the first arpeggio sequence to obtain the intro;
    根据所述预设作曲规则和所述歌曲类型,对所述第二段琶音序列编配所述前间奏所需的音乐要素,获得所述前间奏;According to the preset composition rule and the song type, arrange the music elements required for the prelude to the second arpeggio sequence to obtain the prelude;
    再选取所述第三段琶音序列、所述第四段琶音序列分别作为所述尾间奏的琶音和所述尾奏的琶音;Selecting the third arpeggio sequence and the fourth arpeggio sequence as the arpeggio of the interlude and the arpeggio of the ending;
    根据所述预设作曲规则和所述歌曲类型,对所述第三段琶音序列编配所述尾间奏所需的音乐要素,获得所述尾间奏;According to the preset composition rule and the song type, assigning the music elements required for the interlude to the third arpeggio sequence to obtain the interlude;
    根据所述预设作曲规则和所述歌曲类型,对所述第四段琶音序列编配所述尾奏所需的音乐要素,获得所述尾奏。According to the preset composition rule and the song type, the fourth arpeggio sequence is arranged with the music elements required for the ending to obtain the ending.
PCT/CN2018/108851 2018-06-29 2018-09-29 Automatic composition method and apparatus, and computer device and storage medium WO2020000751A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201810715376.9A CN109036355B (en) 2018-06-29 2018-06-29 Automatic composing method, device, computer equipment and storage medium
CN201810715376.9 2018-06-29

Publications (1)

Publication Number Publication Date
WO2020000751A1 true WO2020000751A1 (en) 2020-01-02

Family

ID=65521361

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2018/108851 WO2020000751A1 (en) 2018-06-29 2018-09-29 Automatic composition method and apparatus, and computer device and storage medium

Country Status (2)

Country Link
CN (1) CN109036355B (en)
WO (1) WO2020000751A1 (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112435643A (en) * 2020-11-20 2021-03-02 腾讯音乐娱乐科技(深圳)有限公司 Method, device, equipment and storage medium for generating electronic style song audio
CN112785993A (en) * 2021-01-15 2021-05-11 杭州网易云音乐科技有限公司 Music generation method, device, medium and computing equipment
CN112785993B (en) * 2021-01-15 2024-04-12 杭州网易云音乐科技有限公司 Music generation method, device, medium and computing equipment

Families Citing this family (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109616090B (en) * 2018-12-24 2020-12-18 北京达佳互联信息技术有限公司 Multi-track sequence generation method, device, equipment and storage medium
CN110136730B (en) * 2019-04-08 2021-07-20 华南理工大学 Deep learning-based piano and acoustic automatic configuration system and method
CN110085263B (en) * 2019-04-28 2021-08-06 东华大学 Music emotion classification and machine composition method
CN113539215B (en) * 2020-12-29 2024-01-12 腾讯科技(深圳)有限公司 Music style conversion method, device, equipment and storage medium
CN112863465B (en) * 2021-01-27 2023-05-23 中山大学 Context information-based music generation method, device and storage medium
CN113140202A (en) * 2021-04-25 2021-07-20 北京灵动音科技有限公司 Information processing method, information processing device, electronic equipment and storage medium
CN113299255A (en) * 2021-05-13 2021-08-24 中国科学院声学研究所 Emotional music generation method based on deep neural network and music element drive

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103902642A (en) * 2012-12-21 2014-07-02 香港科技大学 Music composition system using correlation between melody and lyrics
CN104391980A (en) * 2014-12-08 2015-03-04 百度在线网络技术(北京)有限公司 Song generating method and device
CN105632480A (en) * 2014-11-20 2016-06-01 卡西欧计算机株式会社 Automatic composition apparatus and method
CN106652984A (en) * 2016-10-11 2017-05-10 张文铂 Automatic song creation method via computer

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2003058152A (en) * 2001-08-14 2003-02-28 Uubu Kk Music automatic generator
CN101800046B (en) * 2010-01-11 2014-08-20 北京中星微电子有限公司 Method and device for generating MIDI music according to notes
TWM531033U (en) * 2016-07-01 2016-10-21 南臺科技大學 Real-time composer and playback apparatus

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103902642A (en) * 2012-12-21 2014-07-02 香港科技大学 Music composition system using correlation between melody and lyrics
CN105632480A (en) * 2014-11-20 2016-06-01 卡西欧计算机株式会社 Automatic composition apparatus and method
CN104391980A (en) * 2014-12-08 2015-03-04 百度在线网络技术(北京)有限公司 Song generating method and device
CN106652984A (en) * 2016-10-11 2017-05-10 张文铂 Automatic song creation method via computer

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112435643A (en) * 2020-11-20 2021-03-02 腾讯音乐娱乐科技(深圳)有限公司 Method, device, equipment and storage medium for generating electronic style song audio
CN112785993A (en) * 2021-01-15 2021-05-11 杭州网易云音乐科技有限公司 Music generation method, device, medium and computing equipment
CN112785993B (en) * 2021-01-15 2024-04-12 杭州网易云音乐科技有限公司 Music generation method, device, medium and computing equipment

Also Published As

Publication number Publication date
CN109036355B (en) 2023-04-25
CN109036355A (en) 2018-12-18

Similar Documents

Publication Publication Date Title
US11017750B2 (en) Method of automatically confirming the uniqueness of digital pieces of music produced by an automated music composition and generation system while satisfying the creative intentions of system users
US10854180B2 (en) Method of and system for controlling the qualities of musical energy embodied in and expressed by digital music to be automatically composed and generated by an automated music composition and generation engine
US11037538B2 (en) Method of and system for automated musical arrangement and musical instrument performance style transformation supported within an automated music performance system
WO2020000751A1 (en) Automatic composition method and apparatus, and computer device and storage medium
US10964299B1 (en) Method of and system for automatically generating digital performances of music compositions using notes selected from virtual musical instruments based on the music-theoretic states of the music compositions
US11024275B2 (en) Method of digitally performing a music composition using virtual musical instruments having performance logic executing within a virtual musical instrument (VMI) library management system
WO2021166745A1 (en) Arrangement generation method, arrangement generation device, and generation program
Winter Interactive music: Compositional techniques for communicating different emotional qualities
US20240038205A1 (en) Systems, apparatuses, and/or methods for real-time adaptive music generation
Mazzola et al. Software Tools and Hardware Options
Braunsdorf Composing with flexible phrases: the impact of a newly designed digital musical instrument upon composing Western popular music for commercials and movie trailers.
Lu et al. Towards the Implementation of an Automatic Composition System for Popular Songs

Legal Events

Date Code Title Description
NENP Non-entry into the national phase

Ref country code: DE

32PN Ep: public notification in the ep bulletin as address of the adressee cannot be established

Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205A DATED 06.04.2021)

121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 18925018

Country of ref document: EP

Kind code of ref document: A1

122 Ep: pct application non-entry in european phase

Ref document number: 18925018

Country of ref document: EP

Kind code of ref document: A1