CN101916240B - Method for generating new musical melody based on known lyric and musical melody - Google Patents

Method for generating new musical melody based on known lyric and musical melody Download PDF

Info

Publication number
CN101916240B
CN101916240B CN2010102216746A CN201010221674A CN101916240B CN 101916240 B CN101916240 B CN 101916240B CN 2010102216746 A CN2010102216746 A CN 2010102216746A CN 201010221674 A CN201010221674 A CN 201010221674A CN 101916240 B CN101916240 B CN 101916240B
Authority
CN
China
Prior art keywords
melody
pitch
note
probability vector
time
Prior art date
Legal status (The legal status 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 status listed.)
Active
Application number
CN2010102216746A
Other languages
Chinese (zh)
Other versions
CN101916240A (en
Inventor
关胤
陈宏展
吴拥民
柳晖
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Baidu com Times Technology Beijing Co Ltd
Original Assignee
FUZHOU BOYUAN WIRELESS NETWORK TECHNOLOGY Co Ltd
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 FUZHOU BOYUAN WIRELESS NETWORK TECHNOLOGY Co Ltd filed Critical FUZHOU BOYUAN WIRELESS NETWORK TECHNOLOGY Co Ltd
Priority to CN2010102216746A priority Critical patent/CN101916240B/en
Publication of CN101916240A publication Critical patent/CN101916240A/en
Application granted granted Critical
Publication of CN101916240B publication Critical patent/CN101916240B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The invention discloses a method for generating a new musical melody based on known lyric and a known musical melody. The method comprises the following steps of: inputting data; pre-processing the input data; generating a time probability vector; matrixing the time probability vector to obtain a pitch probability vector; initializing; calculating the pitch probability vector; normalizing; calculating time distribution; calculating pitch distribution; adjusting the pitch distribution; adjusting the time distribution; outputting the new melody and the like. The method disclosed by the invention is suitable for the conventional popular and simple system device; by using the conventional popular system device, the new musical melody corresponding to the lyric can be automatically generated; and thus a normal user can quickly and conveniently create the favorite melody and music, more people can conveniently participate in the interactive communication and the development of digital music can be further promoted.

Description

A kind of method based on known lyric and generating new musical melody music rhythm
Technical field the present invention relates to music rhythm creation field, relates in particular to a kind of method based on known lyric and generating new musical melody music rhythm.
The background technology digital music is meant the general designation of carrying out a series of processes such as musical composition, editor, storage, propagation with digital form; It mainly relies on computing machine is that operational processes is carried out to music in the center; Digital music can transmit with internet and wireless network, download, online test listening, appreciation etc.; Convenient more people participates in interaction, has excited people more to create wish.
Melody is the fundamental that constitutes music, and melody can show music expression and human emotion effectively.People can cross the creation melody earlier, in melody, add the lyrics again and accomplish musical composition; Also can write a song earlier, make the melody that adapts according to the lyrics again.Yet for the ordinary people, melody that he likes himself according to lyrics creation and music are very difficult, and the very difficult wish of accomplishing common user is difficult to exchange and appreciates and interaction.
Continuous development along with digital music and computer-related technologies; Increasing people wants to utilize the automatic art music of computer technology; The system and method that the automatic art musics of some computing machines also occurred at present; But existing technical scheme is high to the requirement of computing machine and system, needs dedicated system equipment and uses complicacy, and common user is difficult to accept use.
Summary of the invention the object of the invention provides a kind of method based on known lyric and generating new musical melody music rhythm; Make the melody and the music of the creation oneself that common user can be quick and easy; Convenient more people participates in interaction, further promotes the development of digital music.
To achieve these goals, the present invention includes following steps:
A, user are input to the melody generation system with the lyrics, melody fluctuations extent index, and this melody generation system obtains melody note quantity parameter with lyrics processing and is connected the tightness degree parameter with adjacent note, and known melody processing is obtained the digitizing melody;
B, according to said digitizing melody, every bat melody of this digitizing melody is handled the rise time probability vector, matrixing time probability vector obtains the pitch probability vector;
C, initialization time probability vector and pitch probability vector, be that each element is composed the weights to equate in the vector;
D, calculating pitch probability vector are according to said digitizing melody; When sometime the corresponding positions of the corresponding said digitizing melody of element in the said time probability vector is equipped with note; Increase the weights of element corresponding in the pitch probability vector; When this note is relevant with the trifle chord, increase the weights of element corresponding in the pitch probability vector again, increase the weights of adjacent element in the pitch probability vector at last;
E, said pitch probability vector and said time probability vector are carried out normalization calculate;
F, computing time distribute, and the time that obtains new melody note according to said melody note quantity parameter distributes;
G, calculating pitch distributions are according to said pitch probability vector being handled the pitch distributions that obtains new melody note;
H, according to said melody fluctuations extent index adjustment pitch distributions;
I, connect the tightness degree parameter adjustment time according to said adjacent note and distribute;
J, export new melody.
The present invention can be according to the music rhythm of known lyric and generating new musical melody.
The melody of said known melody for storing in the melody of user input or the melody generation system.Therefore, the user can import melody voluntarily and also can select the melody stored in the melody generation system.
It is the textual form that the lyrics of user's input is converted into representation in the computing machine that described melody generation system is handled the method that obtains melody note quantity parameter with the lyrics; Number of words according to lyrics text calculates melody note quantity parameter then, and said melody note quantity parameter is a quantity interval value.The present invention utilizes this method can obtain melody note quantity parameter, and the time of utilizing this parameter can obtain new melody note distributes.
It is with the Chinese word segmentation algorithm said lyrics text to be handled that described melody generation system is handled the method that obtains adjacent note connection tightness degree parameter with the lyrics; Obtain adjacent note and connect the tightness degree parameter; Said adjacent note connects the tightness degree parameter and representes with discrete value 0,1; When corresponding adjacent lyric characters belongs to same word or phrase, be 1 promptly, otherwise then be 0.The present invention utilizes this method can obtain adjacent note connection tightness degree parameter, utilizes this parameter value to distribute the adjustment time.
The method of described rise time probability vector is according to said digitizing melody data, and every bat melody evenly is divided into N unit, wherein N=3 n-2 m, n=0,1,2,3,4,5,6,7,8,9 or ∈ [10, ∞), m=0,1,2,3,4,5,6,7,8,9 or ∈ [10, ∞);
The method of described matrixing time probability vector is that each element in the said time probability vector is generated corresponding pitch probability vector, and the length of each pitch probability vector is N, and its N value is greater than 8.The present invention utilizes this method can obtain time probability vector sum pitch probability vector.
It is all pitch probability vectors to be carried out normalization calculate that said pitch probability vector and said time probability vector are carried out the normalization Calculation Method, makes that total value is 1, all time probability vectors is carried out normalization calculate, and makes that total value is 1.The present invention normalizes to 1 to all pitch probability vectors and time probability vector, and is easy and can improve counting yield.
The method that distribute described computing time is to adopt the said melody note of roulette algorithm process quantity parameter, and the time that obtains new melody note distributes; The method of described calculating pitch distributions is to adopt the said pitch probability vector of roulette algorithm process, obtains the pitch distributions of new melody note.The present invention utilizes the roulette algorithm, has improved counting yield.
According to said melody fluctuations extent index adjustment pitch distributions is that the pitch in the pitch distributions of new melody note is compared with the pitch of the corresponding note of said digitizing melody; With the pitch of difference, adopt the roulette algorithm to recomputate the pitch distributions that makes new advances again greater than said melody fluctuations extent index.Therefore, the present invention can readjust new pitch distributions according to the melody fluctuations extent index of user's input, further reaches the purpose with user's exchange and interdynamic.
The method that connects the distribution of tightness degree parameter adjustment time according to said adjacent note is to connect the tightness degree calculation of parameter according to said adjacent note; When its parameter is 1; Time gap during the time of dwindling new melody note distributes; When parameter is 0, the time gap during the time of amplifying new melody note distributes.Therefore, the present invention's adjacent note that is obtained by the lyrics capable of using connects the time distribution that the tightness degree parameter is adjusted new melody, has guaranteed the coupling of the new melody and the lyrics.
The invention has the beneficial effects as follows: method provided by the invention is applicable to existing popular, comparatively easy system equipment; Utilize existing popular system equipment just can generate the new music rhythm corresponding automatically with the lyrics; Melody and music that creation oneself that common user can be quick and easy is liked; Convenient more people participates in interaction, further promotes the development of digital music.
Embodiment the present invention includes following steps:
A, user are input to the melody generation system with the lyrics, fluctuations extent index, and this melody generation system obtains melody note quantity parameter with lyrics processing and is connected the tightness degree parameter with adjacent note, and known melody processing is obtained the digitizing melody;
The melody of said known melody for storing in the melody of user input or the melody generation system, the melody of input is the music score of Chinese operas form of symbolism, also can be the MIDI file;
Described melody generation system converts the lyrics of user's input into the textual form of representation in the computing machine; Number of words according to lyrics text calculates melody note quantity parameter then; Said melody note quantity parameter is a quantity interval value; It is limited to down sum of lyrics text number of words, on be limited to 16 times of lyrics text number of words sum;
Described melody generation system is handled said lyrics text with the Chinese word segmentation algorithm; Obtain adjacent note and connect the tightness degree parameter; Said adjacent note connects the tightness degree parameter and representes with discrete value 0,1; When corresponding adjacent lyric characters belongs to same word or phrase, be 1 promptly, otherwise then be 0.
B, according to said digitizing melody, every bat melody of this digitizing melody is handled the rise time probability vector, matrixing time probability vector obtains the pitch probability vector; Described rise time probability vector is according to said digitizing melody data, every bat melody evenly is divided into N unit, wherein
N=3 n-2 m, n=0,1,2,3,4,5,6,7,8,9 or ∈ [10, ∞), m=0,1,2,3,4,5,6,7,8,9 or ∈ [10, ∞);
Described matrixing time probability vector is that each element in the said time probability vector is generated corresponding pitch probability vector, and the length of each pitch probability vector is N, and its N value comprises 9,10,11,12,13,14,15,16,17,18,19,20,21,22,23 greater than 8; 24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41; 42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59; 60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77; 78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94; 95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111; 112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,127,128.
C, initialization time probability vector and pitch probability vector, be that each element is composed the weights to equate in the vector;
D, calculating pitch probability vector;
Described calculating pitch probability vector is according to said digitizing melody; When sometime the corresponding positions of the corresponding known melody of element in the said time probability vector is equipped with note; Increase the weights of element corresponding in the pitch probability vector; When this note is relevant with the trifle chord, increase the weights of element corresponding in the pitch probability vector again, increase the weights of adjacent element in the pitch probability vector at last.
E, normalization are calculated;
Described normalization Calculation Method is all pitch probability vectors to be carried out normalization calculate, and makes that total value is 1, all time probability vectors is carried out normalization calculate, and makes that total value is 1.
F, computing time distribute;
Distributing described computing time is to adopt the said melody note of roulette algorithm process quantity parameter, and the time that obtains new melody note distributes.
G, calculating pitch distributions;
Described calculating pitch distributions is to adopt the said pitch probability vector of roulette algorithm process, obtains the pitch distributions of new each note of melody.
H, adjustment pitch distributions;
Described adjustment pitch distributions is that the pitch in the pitch distributions of new each note of melody is compared with the pitch of the corresponding note of said digitizing melody; With the pitch of difference, adopt the roulette algorithm to recomputate the pitch distributions that makes new advances again greater than said fluctuations extent index.
I, adjustment time distribute;
It is to connect the tightness degree calculation of parameter according to said adjacent note that described adjustment time distributes, when its parameter is 1, and the time gap during the time of dwindling new melody note distributes, when parameter is 0, the time gap during the time of amplifying new melody note distributes.
J, export new melody.
Method of the present invention can be applicable to like animation, recreation, internet music service, a plurality of applications such as mobile phone.

Claims (4)

1. method based on known lyric and generating new musical melody music rhythm is characterized in that: may further comprise the steps:
A, user are input to the melody generation system with the lyrics, melody fluctuations extent index, and this melody generation system obtains melody note quantity parameter with lyrics processing and is connected the tightness degree parameter with adjacent note, and known melody processing is obtained the digitizing melody; It is the textual form that the lyrics of user's input is converted into representation in the computing machine that described melody generation system is handled the method that obtains melody note quantity parameter with the lyrics; Number of words according to lyrics text calculates melody note quantity parameter then, and said melody note quantity parameter is a quantity interval value;
It is with the Chinese word segmentation algorithm said lyrics text to be handled that described melody generation system is handled the method that obtains adjacent note connection tightness degree parameter with the lyrics; Obtain adjacent note and connect the tightness degree parameter; Said adjacent note connects the tightness degree parameter and representes with discrete value 0,1; When corresponding adjacent lyric characters belongs to same word or phrase, be 1 promptly, otherwise then be 0;
B, according to said digitizing melody, every bat melody of this digitizing melody is handled the rise time probability vector, matrixing time probability vector obtains the pitch probability vector; The method of described rise time probability vector is according to said digitizing melody data, every bat melody evenly is divided into N unit, wherein
N=3 n-2 m, n=0,1,2,3,4,5:6,7,8,9 or ∈ [10, ∞), m=0,1,2,3,4,5,6,7,8,9 or ∈ [10, ∞);
The method of described matrixing time probability vector is that each element in the said time probability vector is generated corresponding pitch probability vector, and the length of each pitch probability vector is N, and its N value is greater than 8;
C, initialization time probability vector and pitch probability vector, be that each element is composed the weights to equate in the vector;
D, calculating pitch probability vector; According to said digitizing melody; When sometime the corresponding positions of the corresponding said digitizing melody of element in the said time probability vector is equipped with note, increase the weights of element corresponding in the pitch probability vector, when this note is relevant with the trifle chord; Increase the weights of element corresponding in the pitch probability vector again, increase the weights of adjacent element in the pitch probability vector at last;
E, said pitch probability vector and said time probability vector are carried out normalization calculate;
F, computing time distribute, and the time that obtains new melody note according to said melody note quantity parameter distributes; The method that distribute described computing time is to adopt the said melody note of roulette algorithm process quantity parameter, and the time that obtains new melody note distributes; The method of described calculating pitch distributions is to adopt the said pitch probability vector of roulette algorithm process, obtains the pitch distributions of new melody note;
G, calculating pitch distributions are according to said pitch probability vector being handled the pitch distributions that obtains new melody note;
H, according to said melody fluctuations extent index adjustment pitch distributions; According to said melody fluctuations extent index adjustment pitch distributions is that the pitch in the pitch distributions of new melody note is compared with the pitch of the corresponding note of said digitizing melody; With the pitch of difference, adopt the roulette algorithm to recomputate the pitch distributions that makes new advances again greater than said melody fluctuations extent index;
I, connect the tightness degree parameter adjustment time according to said adjacent note and distribute; The method that connects the distribution of tightness degree parameter adjustment time according to said adjacent note is to connect the tightness degree calculation of parameter according to said adjacent note; When its parameter is 1; Time gap during the time of dwindling new melody note distributes; When parameter is 0, the time gap during the time of amplifying new melody note distributes;
J, export new melody.
2. a kind of method based on known lyric and generating new musical melody music rhythm according to claim 1 is characterized in that: the melody of said known melody for storing in the melody of user input or the melody generation system.
3. a kind of method based on known lyric and generating new musical melody music rhythm according to claim 2 is characterized in that: be limited to the sum of lyrics text number of words under the described melody note quantity parameter, on be limited to 16 times of lyrics text number of words sum.
4. a kind of method according to claim 1 and 2 based on known lyric and generating new musical melody music rhythm; It is characterized in that: it is all pitch probability vectors to be carried out normalization calculate that said pitch probability vector and said time probability vector are carried out the normalization Calculation Method; Make that total value is 1; All time probability vectors are carried out normalization calculate, make that total value is 1.
CN2010102216746A 2010-07-08 2010-07-08 Method for generating new musical melody based on known lyric and musical melody Active CN101916240B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2010102216746A CN101916240B (en) 2010-07-08 2010-07-08 Method for generating new musical melody based on known lyric and musical melody

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2010102216746A CN101916240B (en) 2010-07-08 2010-07-08 Method for generating new musical melody based on known lyric and musical melody

Publications (2)

Publication Number Publication Date
CN101916240A CN101916240A (en) 2010-12-15
CN101916240B true CN101916240B (en) 2012-06-13

Family

ID=43323755

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2010102216746A Active CN101916240B (en) 2010-07-08 2010-07-08 Method for generating new musical melody based on known lyric and musical melody

Country Status (1)

Country Link
CN (1) CN101916240B (en)

Families Citing this family (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102374201A (en) * 2011-10-25 2012-03-14 哈尔滨汇隆汽车箱桥有限公司 Double-row rare earth continuous gas carburizing furnace direct attached side fan
CN104485101B (en) * 2014-11-19 2018-04-27 成都云创新科技有限公司 A kind of method that music rhythm is automatically generated based on template
CN108806656B (en) * 2017-04-26 2022-01-28 微软技术许可有限责任公司 Automatic generation of songs
CN110555126B (en) 2018-06-01 2023-06-27 微软技术许可有限责任公司 Automatic generation of melodies
CN109448697B (en) * 2018-10-08 2023-06-02 平安科技(深圳)有限公司 Poem melody generation method, electronic device and computer readable storage medium
CN109859739B (en) * 2019-01-04 2023-12-22 平安科技(深圳)有限公司 Melody generation method and device based on voice synthesis and terminal equipment
CN112699269A (en) * 2020-12-30 2021-04-23 北京达佳互联信息技术有限公司 Lyric display method, device, electronic equipment and computer readable storage medium
CN113436591B (en) * 2021-06-24 2023-11-17 广州酷狗计算机科技有限公司 Pitch information generation method, device, computer equipment and storage medium

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP3666364B2 (en) * 2000-05-30 2005-06-29 ヤマハ株式会社 Content generation service device, system, and recording medium
CN101203904A (en) * 2005-04-18 2008-06-18 Lg电子株式会社 Operating method of a music composing device
CN101471074A (en) * 2007-12-28 2009-07-01 英华达(南京)科技有限公司 Method for converting voice into music of electronic device
CN101800046B (en) * 2010-01-11 2014-08-20 北京中星微电子有限公司 Method and device for generating MIDI music according to notes

Also Published As

Publication number Publication date
CN101916240A (en) 2010-12-15

Similar Documents

Publication Publication Date Title
CN101916240B (en) Method for generating new musical melody based on known lyric and musical melody
Lee et al. Music popularity: Metrics, characteristics, and audio-based prediction
CN103823867B (en) Humming type music retrieval method and system based on note modeling
US20170140743A1 (en) Procedurally Generating Background Music for Sponsored Audio
Mayer et al. Musical genre classification by ensembles of audio and lyrics features
CN103186527A (en) System for building music classification model, system for recommending music and corresponding method
CN101800046A (en) Method and device for generating MIDI music according to notes
WO2018121368A1 (en) Method for generating music to accompany lyrics and related apparatus
CN107247768A (en) Method for ordering song by voice, device, terminal and storage medium
CN110209869A (en) A kind of audio file recommended method, device and storage medium
CN105702249B (en) The method and apparatus for automatically selecting accompaniment
CN107103912A (en) A kind of student for imparting knowledge to students and checking and rating sings performance points-scoring system
WO2020082574A1 (en) Generative adversarial network-based music generation method and device
GB2571340A (en) Method of combining audio signals
CN102541965A (en) Method and system for automatically acquiring feature fragments from music file
CN108206029A (en) A kind of method and system for realizing the word for word lyrics
CN105279289B (en) Individualized music based on exponential damping window recommends sort method
Wu et al. Transformer-XL based music generation with multiple sequences of time-valued notes
Nakamura et al. Acoustic score following to musical performance with errors and arbitrary repeats and skips for automatic accompaniment
CN101930732A (en) Music producing method and device based on user input voice and intelligent terminal
Kızrak et al. Classification of classic Turkish music makams
Qian et al. Training strategies for automatic song writing: A unified framework perspective
Trochidis et al. Investigation of the relationships between audio features and induced emotions in Contemporary Western music
Kong et al. Audio Flamingo: A Novel Audio Language Model with Few-Shot Learning and Dialogue Abilities
Chordia et al. Extending Content-Based Recommendation: The Case of Indian Classical Music.

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
ASS Succession or assignment of patent right

Owner name: FUZHOU BOYUAN WIRELESS NETWORK TECHNOLOGY CO., LTD

Free format text: FORMER OWNER: FUJIAN TIANQING ONLINE INTERACTIVE TECHNOLOGY CO., LTD.

Effective date: 20111205

C41 Transfer of patent application or patent right or utility model
COR Change of bibliographic data

Free format text: CORRECT: ADDRESS; FROM: 350001 FUZHOU, FUJIAN PROVINCE TO: 350000 FUZHOU, FUJIAN PROVINCE

TA01 Transfer of patent application right

Effective date of registration: 20111205

Address after: 350000, 403A, room four, Torch Innovation Building, 8 star road, Mawei District, Fujian, Fuzhou

Applicant after: Fuzhou Boyuan Wireless Network Technology Co., Ltd.

Address before: Hunan Town, Fujian city of Changle province Dahe village 350001

Applicant before: Fujian Tianqing Online Interactive Technology Co., Ltd.

C14 Grant of patent or utility model
GR01 Patent grant
C41 Transfer of patent application or patent right or utility model
TR01 Transfer of patent right

Effective date of registration: 20160106

Address after: 100000, No. two, building 17, Zhongguancun Software Park, 8 northeast Wang Xi Road, Beijing, Haidian District, A2

Patentee after: BAIDU.COM TIMES TECHNOLOGY (BEIJING) Co.,Ltd.

Address before: 350000, 403A, room four, Torch Innovation Building, 8 star road, Mawei District, Fujian, Fuzhou

Patentee before: Fuzhou Boyuan Wireless Network Technology Co., Ltd.