CN106782460B - The method and apparatus for generating music score - Google Patents

The method and apparatus for generating music score Download PDF

Info

Publication number
CN106782460B
CN106782460B CN201611219106.6A CN201611219106A CN106782460B CN 106782460 B CN106782460 B CN 106782460B CN 201611219106 A CN201611219106 A CN 201611219106A CN 106782460 B CN106782460 B CN 106782460B
Authority
CN
China
Prior art keywords
note
sequence
sound
duration
moment
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
CN201611219106.6A
Other languages
Chinese (zh)
Other versions
CN106782460A (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.)
Guangzhou Kugou Computer Technology Co Ltd
Original Assignee
Guangzhou Kugou Computer 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 Guangzhou Kugou Computer Technology Co Ltd filed Critical Guangzhou Kugou Computer Technology Co Ltd
Priority to CN201611219106.6A priority Critical patent/CN106782460B/en
Publication of CN106782460A publication Critical patent/CN106782460A/en
Application granted granted Critical
Publication of CN106782460B publication Critical patent/CN106782460B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

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/0008Associated control or indicating means
    • 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
    • G10H2220/00Input/output interfacing specifically adapted for electrophonic musical tools or instruments
    • G10H2220/005Non-interactive screen display of musical or status data
    • G10H2220/015Musical staff, tablature or score displays, e.g. for score reading during a performance.
    • 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
    • G10H2220/00Input/output interfacing specifically adapted for electrophonic musical tools or instruments
    • G10H2220/091Graphical user interface [GUI] specifically adapted for electrophonic musical instruments, e.g. interactive musical displays, musical instrument icons or menus; Details of user interactions therewith
    • G10H2220/101Graphical user interface [GUI] specifically adapted for electrophonic musical instruments, e.g. interactive musical displays, musical instrument icons or menus; Details of user interactions therewith for graphical creation, edition or control of musical data or parameters
    • G10H2220/121Graphical user interface [GUI] specifically adapted for electrophonic musical instruments, e.g. interactive musical displays, musical instrument icons or menus; Details of user interactions therewith for graphical creation, edition or control of musical data or parameters for graphical editing of a musical score, staff or tablature

Landscapes

  • Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Acoustics & Sound (AREA)
  • Multimedia (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
  • Auxiliary Devices For Music (AREA)

Abstract

The invention discloses a kind of method and apparatus generating music score, belong to field of terminal technology.Method includes:Obtain the audio signal of destination multimedia file;According to the frequency of the audio signal at each note moment, the pitch of the audio signal at each note moment is determined;The pitch composition pitch sequence of the audio signal at each note moment is determined into the sequence of notes of destination multimedia file according to the predetermined interval between pitch sequence and note moment;Sequence of notes is divided into multiple note subsequences, obtains the beat of each note subsequence;The beat of each note subsequence and each note subsequence is formed to the music score of destination multimedia file.The present invention obtains pitch, sequence of notes and beat by the frequency of the audio signal at each note moment, determines the music score of destination multimedia file, improves the accuracy for generating music score.

Description

The method and apparatus for generating music score
Technical field
The present invention relates to field of terminal technology, more particularly to a kind of method and apparatus generating music score.
Background technology
With the development of terminal technology, the function that terminal can be supported is stronger and stronger, for example, terminal can support sound Happy software;Terminal not only can play song by music software, and the music score of song can also be generated by music software;It is broadcasting Sing song while, the music score of song is shown on currently playing interface.
Currently, usually listening to target song repeatedly by professional, by the melody of target song, target song is identified Each note, to obtain the music score of target song.
In the implementation of the present invention, the inventor finds that the existing technology has at least the following problems:
Professional needs to listen to target song repeatedly, just can recognize that note, causes the efficiency of above-mentioned generation music score low; Also, due to being influenced by factors such as professional's identification of spectrogram experience and technological know-hows, the accuracy that the above method generates music score is poor.
Invention content
In order to solve problems in the prior art, the present invention provides a kind of method and apparatus generating music score.Technical solution It is as follows:
In a first aspect, an embodiment of the present invention provides a kind of method generating music score, the method includes:
Obtain the audio signal of destination multimedia file;
According to the frequency of the audio signal at each note moment, the sound of the audio signal at each note moment is determined It is high;
The pitch of the audio signal at each note moment is formed into pitch sequence, according to the pitch sequence and note Predetermined interval between moment determines the sequence of notes of the destination multimedia file;
The sequence of notes is divided into multiple note subsequences, obtains the beat of each note subsequence;
The beat of each note subsequence and each note subsequence is formed into the destination multimedia file Music score.
Optionally, the predetermined interval according between the pitch sequence and note moment determines the more matchmakers of the target The sequence of notes of body file, including:
Continuous in the pitch sequence and identical multiple pitches are merged into a pitch, obtain the destination multimedia Each note that the sequence of notes of file includes;
Obtain the occurrence number that each note in the sequence of notes continuously occurs in the pitch sequence;
According to the occurrence number of each note in the sequence of notes and the predetermined interval, the sequence of notes is determined In the lasting duration of a sound of each note;
By each note and the duration of a sound composition sequence of notes in the sequence of notes.
Optionally, described that the sequence of notes is divided into multiple note subsequences, including:
According to the duration of a sound of each note in the sequence of notes, the position for dividing beat is determined in the sequence of notes It sets;
According to the position for dividing beat, the sequence of notes is divided into multiple note subsequences.
Optionally, the duration of a sound according to each note in the sequence of notes is determined in the sequence of notes and is drawn The position that merogenesis is clapped, including:
According to the duration of a sound of each note in the sequence of notes, each duration of a sound and each duration of a sound for presetting note are counted Occurrence number;
According to the occurrence number of each duration of a sound and each duration of a sound, selection, which meets, from each duration of a sound presets The duration of a sound of condition;
The default sound of duration of a sound difference within a preset range between the duration of a sound and the duration of a sound of selection is determined in the sequence of notes Symbol;
It is the position of division beat by location determination of the default note selected in the sequence of notes.
Optionally, the beat for obtaining each note subsequence, including:
For each note subsequence, according to the duration of a sound of each note in the note subsequence, from duration of a sound model The sub- beat for enclosing and in the correspondence of sub- beat, obtaining each note in the note subsequence;
By the beat of the sub- beat of each note in the note subsequence and as the beat of the note subsequence.
Optionally, described that the beat of each note subsequence and the note subsequence is formed into the more matchmakers of target After the music score of body file, the method further includes:
The corresponding subtitle file of the destination multimedia file is obtained, the subtitle file includes each note moment With with each note moment associated text information;
According to each note moment, the text information is inserted into the music score.
Optionally, the frequency of the audio signal at the basis each note moment determines the sound at each note moment The pitch of frequency signal, including:
Obtain the frequency of the audio signal at each note moment;
It is obtained from the correspondence of frequency range and pitch according to the frequency of the audio signal at each note moment Take the pitch of the audio signal at each note moment.
Optionally, the frequency of the audio signal for obtaining each note moment, including:
Analog-to-digital conversion is carried out to the audio signal at each note moment, obtains the audio number at each note moment According to;
The frequency of the audio signal at each note moment is obtained from the audio data at each note moment.
Second aspect, an embodiment of the present invention provides a kind of device generating music score, described device includes:
First acquisition module, the audio signal for obtaining destination multimedia file;
First determining module is used for the frequency of the audio signal according to each note moment, when determining each note The pitch of the audio signal at quarter;
Second determining module, for the pitch of the audio signal at each note moment to be formed pitch sequence, according to Predetermined interval between the pitch sequence and note moment determines the sequence of notes of the destination multimedia file;
Division module, for the sequence of notes to be divided into multiple note subsequences;
Second acquisition module, the beat for obtaining each note subsequence;
Comprising modules, for the beat of each note subsequence and each note subsequence to be formed the mesh Mark the music score of multimedia file.
Optionally, second determining module, including:
Combining unit is obtained for continuous in the pitch sequence and identical multiple pitches to be merged into a pitch Each note that the sequence of notes of the destination multimedia file includes;
First acquisition unit continuously occurs for obtaining each note in the sequence of notes in the pitch sequence Occurrence number;
First determination unit, for according to the occurrence number of each note in the sequence of notes and it is described it is default between Every determining the lasting duration of a sound of each note in the sequence of notes;
Component units are used for each note and the duration of a sound composition sequence of notes in the sequence of notes.
Optionally, the division module, including:
Second determination unit, for the duration of a sound according to each note in the sequence of notes, in the sequence of notes Determine the position for dividing beat;
Division unit, for according to the position for dividing beat, the sequence of notes to be divided into the sub- sequence of multiple notes Row.
Optionally, the division unit, is additionally operable to the duration of a sound according to each note in the sequence of notes, and statistics is default The occurrence number of each duration of a sound and each duration of a sound of note;According to the occurrence number of each duration of a sound and each duration of a sound, Selection meets the duration of a sound of preset condition from each duration of a sound;Determined in the sequence of notes duration of a sound and selection the duration of a sound it Between duration of a sound difference default note within a preset range;By location determination of the default note selected in the sequence of notes for Divide the position of beat.
Optionally, second acquisition module is additionally operable to for each note subsequence, according to the sub- sequence of the note The duration of a sound of each note in row, it is every in the note subsequence from the correspondence of duration of a sound range and sub- beat, obtaining The sub- beat of a note;
Second acquisition module is additionally operable to the beat and work of the sub- beat of each note in the note subsequence For the beat of the note subsequence.
Optionally, described device further includes:
Third acquisition module, for obtaining the corresponding subtitle file of the destination multimedia file, the subtitle file packet Include each note moment and with each note moment associated text information;
It is inserted into module, for according to each note moment, the text information to be inserted into the music score.
Optionally, first determining module, including:
Second acquisition unit, the frequency of the audio signal for obtaining each note moment;
Third acquiring unit is used for the frequency of the audio signal according to each note moment, from frequency range and sound In high correspondence, the pitch of the audio signal at each note moment is obtained.
Optionally, the second acquisition unit is additionally operable to carry out modulus turn to the audio signal at each note moment It changes, obtains the audio data at each note moment;It is obtained from the audio data at each note moment described each The frequency of the audio signal at note moment.
In the embodiment of the present invention, terminal can determine each note moment according to the audio signal at each note moment The pitch of audio signal, and the pitch of the audio signal at each note moment is formed into pitch sequence, according to the pitch sequence and Predetermined interval between the note moment determines the sequence of notes of the destination multimedia file, improves terminal and obtains sequence of notes Accuracy, meanwhile, which is divided into multiple note subsequences by terminal, and obtains the section of each note subsequence It claps, the beat of each note subsequence and the note subsequence is formed to the music score of destination multimedia file.Terminal passes through straight Connect the beat that each note subsequence is determined according to the audio signal, and by each note subsequence and each note subsequence Beat generate music score, improve terminal generate music score efficiency while, also improve terminal generate music score accuracy.
Description of the drawings
Fig. 1 is a kind of method flow diagram generating music score provided in an embodiment of the present invention;
Fig. 2 is a kind of method flow diagram generating music score provided in an embodiment of the present invention;
Fig. 3 is a kind of apparatus structure schematic diagram generating music score provided in an embodiment of the present invention;
Fig. 4 is a kind of apparatus structure schematic diagram generating music score provided in an embodiment of the present invention.
Specific implementation mode
To make the object, technical solutions and advantages of the present invention clearer, below in conjunction with attached drawing to embodiment party of the present invention Formula is described in further detail.
An embodiment of the present invention provides a kind of method generating music score, the executive agent of this method can be terminal, referring to Fig. 1, this method include:
Step 101:Obtain the audio signal of destination multimedia file.
Step 102:According to the frequency of the audio signal at each note moment, the audio signal at each note moment is determined Pitch.
Step 103:The pitch of the audio signal at each note moment is formed into pitch sequence, according to the pitch sequence and Predetermined interval between the note moment determines the sequence of notes of the destination multimedia file.
Step 104:The sequence of notes is divided into multiple note subsequences, obtains the beat of each note subsequence.
Step 105:The beat of each note subsequence He each note subsequence is formed into destination multimedia text The music score of part.
Optionally, according to the predetermined interval between the pitch sequence and note moment, the destination multimedia file is determined Sequence of notes, including:
Continuous in the pitch sequence and identical multiple pitches are merged into a pitch, obtain the destination multimedia file Sequence of notes each note for including;
Obtain the occurrence number that each note in the sequence of notes continuously occurs in the pitch sequence;
According to the occurrence number of each note in the sequence of notes and the predetermined interval, determine every in the sequence of notes The lasting duration of a sound of a note;
By in the sequence of notes each note and the duration of a sound form the sequence of notes.
Optionally, which is divided into multiple note subsequences, including:
According to the duration of a sound of each note in the sequence of notes, the position for dividing beat is determined in the sequence of notes;
According to the position of the division beat, which is divided into multiple note subsequences.
Optionally, it according to the duration of a sound of each note in the sequence of notes, is determined in the sequence of notes and divides beat Position, including:
According to the duration of a sound of each note in the sequence of notes, counts and preset each duration of a sound of note and going out for each duration of a sound Occurrence number;
According to the occurrence number of each duration of a sound and each duration of a sound, select to meet preset condition from each duration of a sound The duration of a sound;
The default note of duration of a sound difference within a preset range between the duration of a sound and the duration of a sound of selection is determined in the sequence of notes;
It is the position of division beat by location determination of the default note selected in the sequence of notes.
Optionally, the beat of each note subsequence is obtained, including:
For each note subsequence, according to the duration of a sound of each note in the note subsequence, from duration of a sound range and In the correspondence of sub- beat, the sub- beat of each note in the note subsequence is obtained;
By the beat of the sub- beat of each note in the note subsequence and as the beat of the note subsequence.
Optionally, the beat of each note subsequence He the note subsequence is formed to the pleasure of the destination multimedia file After spectrum, this method further includes:
Obtain the corresponding subtitle file of destination multimedia file, the subtitle file include each note moment and with this Associated text information of each note moment;
According to each note moment, which is inserted into the music score.
Optionally, according to the frequency of the audio signal at each note moment, the audio signal at each note moment is determined Pitch, including:
Obtain the frequency of the audio signal at each note moment;
It is obtained from the correspondence of frequency range and pitch according to the frequency of the audio signal at each note moment The pitch of the audio signal at each note moment.
Optionally, the frequency of the audio signal at each note moment is obtained, including:
Analog-to-digital conversion is carried out to the audio signal at each note moment, obtains the audio data at each note moment;
The frequency of the audio signal at each note moment is obtained from the audio data at each note moment.
In the embodiment of the present invention, terminal can determine each note moment according to the audio signal at each note moment The pitch of audio signal, and the pitch of the audio signal at each note moment is formed into pitch sequence, according to the pitch sequence and Predetermined interval between the note moment determines the sequence of notes of the destination multimedia file, improves terminal and obtains sequence of notes Accuracy, meanwhile, which is divided into multiple note subsequences by terminal, and obtains the section of each note subsequence It claps, the beat of each note subsequence and the note subsequence is formed to the music score of destination multimedia file.Terminal passes through straight Connect the beat that each note subsequence is determined according to the audio signal, and by each note subsequence and each note subsequence Beat generate music score, improve terminal generate music score efficiency while, also improve terminal generate music score accuracy.
An embodiment of the present invention provides a kind of method generating music score, the executive agent of this method can be terminal, referring to Fig. 2, this method include:
Step 201:Terminal obtains the audio signal of destination multimedia file.
When terminal generates music score, user selects the multimedia file of a music score to be generated, terminal to select user Multimedia file is determined as destination multimedia file, which can be the multimedia file stored in terminal, Or the multimedia file stored in server.
If the destination multimedia file is the multimedia file stored in terminal, this step can be:Terminal from this The audio signal of the destination multimedia file is obtained in target media file.
If the destination multimedia file is the multimedia file stored in server, this step can be:
Terminal to server, which is sent, obtains request, and acquisition request carries the file identification of the destination multimedia file;Clothes The acquisition request that device reception terminal of being engaged in is sent, according to the file identification of the target media file, from file identification and audio signal Correspondence in, obtain the corresponding audio signal of file identification of the target media file, i.e. the destination multimedia file Audio signal sends the audio signal of the destination multimedia file to terminal;Terminal receives the more matchmakers of the target that server is sent The audio signal of body file.
Destination multimedia file can be audio file or video file.The file identification of destination multimedia file can be with For the title of destination multimedia file or number etc..
Step 202:Terminal determines the audio letter at each note moment according to the frequency of the audio signal at each note moment Number pitch.
In this step, the terminal storage correspondence of frequency range and pitch, terminal obtains each note moment and corresponds to Audio signal frequency after, the corresponding pitch of the frequency can be obtained from the correspondence of frequency range and pitch, because This, this step can be realized by following steps 2021-2022.
Step 2021:Terminal obtains the frequency of the audio signal at each note moment.
In the embodiment of the present invention, terminal obtains one every predetermined interval from the audio signal of the destination multimedia file Note moment corresponding audio signal, the audio signal are the note moment corresponding analog signal, and terminal needs the sound first Frequency signal is converted to audio data, according to the audio data, calculates the frequency of the audio signal at each note moment.Therefore, This step is:The audio signal at terminal-pair each note moment carries out analog-to-digital conversion, obtains the audio data at each note moment; Terminal obtains the frequency of the audio signal at each note moment from the audio data at each note moment.
In this step, the audio signal at terminal-pair each note moment carries out analog-to-digital conversion, by the audio at the note moment Signal is converted to audio data, which is the corresponding piece of digital signal at the note moment, is deposited in the digital signal The frequency of note moment corresponding audio signal is stored up, terminal is by carrying out the note moment corresponding piece of digital signal It calculates, so that it is determined that going out the frequency of note moment corresponding audio signal.
Wherein, it is corresponding can be stored in the note moment by terminal for the frequency of corresponding audio signal of each note moment In the preset field of audio data, therefore, terminal obtains each note moment from the audio data at each note moment The step of frequency of audio signal can be:Terminal obtains the preset field of corresponding audio data of each note moment, according to The frequency of the audio signal at note moment is calculated in the audio data stored in the preset field.
Wherein, which can need to be arranged and change according to user, and the embodiment of the present invention does not limit this specifically It is fixed, for example, if the note moment corresponding piece of digital signal is " 01111000101001011000- 00111000011100110010 ", which can be the 21st to the 40th field of the audio data, and therefore, this is default The audio data stored in field can be " 00111000011100110010 ".
Wherein, predetermined interval can need to be arranged and change according to user, and the embodiment of the present invention is not especially limited this. For example, the predetermined interval can be 1 second, 10 milliseconds etc..
Step 2022:Terminal is according to the frequency of the audio signal at each note moment, from the correspondence of frequency range and pitch In relationship, the pitch of the audio signal at each note moment is obtained.
In this step, terminal determines the frequency model where the frequency according to the frequency of the audio signal at each note moment It encloses, due to the correspondence of frequency range and pitch in terminal storage standard music score, terminal can be according to the frequency institute Frequency range obtain the corresponding pitch of the frequency from the correspondence of frequency range and pitch, i.e. the frequency is corresponding The pitch of the audio signal at note moment.
Wherein, the pitch of standard music score can be to indicate that each pitch corresponds to by seven fundamental notes of different scales Different frequency ranges, the frequency range can need to be arranged and change according to user, and the embodiment of the present invention is not made this specifically It limits.For example, the corresponding pitch of frequency range of 435 hertz to 445 hertz of the frequency range is 1.
It should be noted that in order to more accurately obtain the destination multimedia file each note moment audio signal Frequency, terminal can repeat step 202, and when executing 202 every time, and corresponding predetermined interval is different.For example, terminal When executing step 202 for the first time, to obtain one from the audio signal of the destination multimedia file every 1 second predetermined interval Note moment corresponding audio signal, terminal next time can be every 0.1 second predetermined intervals from the sound of the destination multimedia file A note moment corresponding audio signal is obtained in frequency signal.In this way, terminal can be by reducing predetermined interval, and then improve Obtain the accuracy of the corresponding pitch of multimedia audio file sound intermediate frequency signal.
Step 203:The pitch of the audio signal at each note moment is formed pitch sequence by terminal, according to the pitch sequence Predetermined interval between row and note moment, determines the sequence of notes of the destination multimedia file.
In this step, terminal can form the pitch of the audio signal at multiple note moment of the destination multimedia file One pitch sequence, then, terminal determine sound according to the predetermined interval between the adjacent note moment in the destination multimedia file The corresponding note duration of each pitch in high sequence, and then determine the corresponding note sequence of the destination multimedia file Row, therefore, this step can be realized by following steps 2031-2032.
Step 2031:Continuous in the pitch sequence and identical multiple pitches are merged into a pitch by terminal, are somebody's turn to do Each note that the sequence of notes of destination multimedia file includes.
In this step, terminal detection continuously occurs in the pitch sequence and identical multiple pitches, when terminal detects Continuously occur in the pitch sequence and when identical multiple pitches, multiple pitch is merged into a pitch, since pitch can With to be indicated by the seven of different scales fundamental note, therefore, it is more to obtain the target according to the pitch sequence after the merging for terminal The sequence of notes of media file, the sequence of notes include multiple notes.
For example, wherein one section of pitch sequence that the pitch sequence includes can be " 111022200666 ", by the pitch After 1,2,6 continuously occurred in sequence merge, the corresponding sequence of notes of the pitch sequence can be " 10206 ".
Step 2032:What terminal obtained that each note in the sequence of notes continuously occurs in the pitch sequence goes out occurrence Number, terminal determine every in the sequence of notes according to the occurrence number and the predetermined interval of each note in the sequence of notes The lasting duration of a sound of a note.
In this step, the occurrence number which continuously occurs in the pitch sequence should that is, in the pitch sequence The occurrence number that the corresponding pitch of note continuously occurs, when which is two neighboring note in the destination multimedia file Time interval between quarter.For each note, terminal is according to the occurrence number and predetermined interval of the note, by the note The product of occurrence number and the predetermined interval, the duration lasting as the note, the i.e. lasting duration of a sound of the note.
For example, wherein one section of pitch sequence that the pitch sequence includes can be " 1110222006666 ", the pitch sequence It can be " 10206 " to arrange corresponding sequence of notes, if predetermined interval is 0.3 second, in " 10206 ", and 1,2 lasting sound of note A length of 0.9 second, the lasting duration of a sound of note 6 was 1.2 seconds.
Step 2033:Terminal by the sequence of notes each note and the duration of a sound form the sequence of notes.
In this step, the duration of a sound is the lasting duration of each note in the sequence of notes, and terminal is according in the sequence of notes Each note position, each note duration of a sound corresponding with the note is formed into the corresponding note sequence of the destination multimedia file Row.
Wherein, the lasting duration of each note can be indicated with the type of note in the sequence of notes.For example, if pre- If the duration of a sound of crotchet is 2 seconds, and the duration of a sound of " 2 " is 2 seconds in sequence of notes, then it is 2 that " 2 " can be expressed as to a duration of a sound The crotchet of second:2;If the duration of a sound of default quaver is 1 second, and the duration of a sound of " 3 " is 1 second in sequence of notes, then can be with " 3 " are expressed as the quaver that a duration of a sound is 1 second:3.
Similarly, in order to more accurately obtain the destination multimedia file sequence of notes, terminal can repeat step 202 With 203, and when executing 202 every time, corresponding predetermined interval is different.
Step 204:The sequence of notes is divided into multiple note subsequences by terminal, obtains the section of each note subsequence It claps.
In this step, sequence of notes is first divided into multiple note subsequences by terminal, according to every in each note subsequence The pause duration of the duration of a sound of a note and two neighboring note determines the beat of each note subsequence.Therefore, this step can To be realized by following steps 2041-2043.
Step 2041:Terminal is determined in the sequence of notes and is divided according to the duration of a sound of each note in the sequence of notes The sequence of notes is divided into multiple note subsequences by the position of beat, terminal according to the position of the division beat.
In the embodiment of the present invention, the duration of a sound that note is preset in sequence of notes is determined as stopping between two neighboring note by terminal The duration to pause is parked on the position in the sequence of notes according to this, determines the position for dividing beat, therefore, this step can lead to Following steps 2041a-2041c is crossed to realize.
Step 2041a terminals count each duration of a sound for presetting note according to the duration of a sound of each note in the sequence of notes With the occurrence number of each duration of a sound.
In this step, which can be the note that pitch is predetermined threshold value, which can be according to user It needs to be arranged and change, the embodiment of the present invention is not specifically limited this.For example, the predetermined threshold value can be pitch is 0 hertz, 0.1 hertz of pitch.
Step 2041b:Terminal is selected according to the occurrence number of each duration of a sound and each duration of a sound from each duration of a sound Meet the duration of a sound of preset condition.
In this step, terminal presets the primary pause at note at this using each default note as the sequence of notes, then The default position of the note in the sequence of notes is the position paused, and the default duration of a sound of the note in the sequence of notes is The duration of a sound of pause, terminal determine the duration each to pause in the sequence of notes and position, every with this according to each duration of a sound The occurrence number of a duration of a sound selects the duration of a sound for meeting preset condition from multiple duration of a sound.
Wherein, which can need to be arranged and change according to user, and the embodiment of the present invention does not limit this specifically It is fixed, for example, the preset condition can be that occurrence number is most;Alternatively, occurrence number is more than the first preset times, or go out occurrence Number is more than the second preset times and the duration of a sound is more than the default duration of a sound.For example, preset condition, which can be occurrence number, is more than 30 times and sound It is long to be more than 1 second.
The default duration of a sound, the first preset times and second preset times can need to be arranged and change, this hair according to user Bright embodiment is not especially limited this.For example, the default duration of a sound can be 1 second, 0.5 second etc., which can be with It is 80% etc. of total occurrence number of all default notes in 30 times or the sequence of notes, which can be 50 The half etc. of total occurrence number of all default notes in the secondary or sequence of notes.
Step 2041c:Terminal determines the duration of a sound difference between the duration of a sound and the duration of a sound of selection in default model in the sequence of notes Enclose interior default note, terminal is by the position that location determination of the default note selected in the sequence of notes is division beat.
In the embodiment of the present invention, since the audio signal of the destination multimedia file was waited by a series of compressing and converting Journey, compressed audio signal can not accurately react the sound of each note in the sequence of notes of the destination multimedia file Long, therefore, in this step, terminal also needs the duration of a sound to presetting note further to be screened, to accurately determine to draw The position that merogenesis is clapped.
In this step, terminal is first averaged the multiple duration of a sound for meeting preset condition that terminal in step 2041b selects, The average duration of a sound of the duration of a sound of multiple selection is obtained, terminal determines the sound between the duration of a sound and the average duration of a sound in the sequence of notes The default note of long difference within a preset range.
Wherein, which can need to be arranged and change according to user, and the embodiment of the present invention does not do this specific limit It is fixed.For example, the preset range can be 0.01 second, 0.03 second etc..
Then, terminal obtains the default position of the note in the sequence of notes, is to divide beat by the location determination Position.
It should be noted that divide beat position, that is, music score in beat line position, for one section of sequence of notes, terminal Can using the pitch selected for zero default note as the position of beat line.In this way, terminal is just divided into the sequence of notes Multiple note subsequences.
In the embodiment of the present invention, if it is not the position for dividing beat to have the pitch of default note in the sequence of notes, eventually End also needs to preset the duration of a sound of note according to this, determines the type of the default note, for example, if the duration of a sound of the default note is 2 Second, this can be preset note and be determined as four parts of rests by terminal:0.
Step 2042:For each note subsequence, terminal according to the duration of a sound of each note in the note subsequence, From in the correspondence of duration of a sound range and sub- beat, the sub- beat of each note in the note subsequence is obtained, terminal should The beat of the sub- beat of each note in note subsequence and beat as the note subsequence.
In this step, for each note subsequence, terminal obtains the duration of a sound of each note in each note subsequence, from In the correspondence of duration of a sound range and sub- beat, obtain the sub- beat of each note in the note subsequence, i.e. the note Type determines the sub- beat of each note in the note subsequence, and then, terminal is by each note in each note subsequence The sum of sub- beat, the beat as the note subsequence.In destination multimedia file, the sub- sequence of multiple notes that sequence of notes includes The beat of row is typically identical.
Wherein, the beat of the note subsequence can use time signature fraction representation, for example, the note can be indicated with " 3/4 " The beat of subsequence.
For example, adjacent two note subsequences " | 23 | 56 | " in, | 23 | it is a note subsequence, which has Two clap, | 56 | it is a note subsequence, which has two bats, and 2,3,5,6 note type is crotchet, | 23 | sound It according in subsequence, note 2 and the corresponding sub- beat of note 3 are 1/4 bat, therefore, | 23 | the beat of note subsequence is 2/4, It is a bat with crotchet, there are two bats per trifle.Similarly, | 56 | the beat of note subsequence is also 2/4 bat.
It should be noted that in this step, it is since terminal also needs to obtain each duration of a sound for presetting note, i.e., two neighboring pre- If the pause duration between other notes other than note, similarly, in order to more accurately divide destination multimedia file note Sequence, and the beat of each note subsequence is obtained, terminal can repeat step 202-204, and execute 202 every time When, corresponding predetermined interval is different.
Step 205:The beat of each note subsequence He each note subsequence is formed the more matchmakers of the target by terminal The music score of body file.
In this step, terminal obtains the beat of each note subsequence and each note subsequence, by the sub- sequence of the note Row form the music score of the destination multimedia file, and by this for indicating that multiple note subsequences that the sequence of notes includes are uniform The beat of cause adds in the music score.
After terminal generates the music score of destination multimedia file, terminal can also be added by following steps 206 for the music score Captioning information.
Step 206:Terminal obtains the corresponding subtitle file of destination multimedia file, which includes each sound It accords with the moment and the text information is inserted into and is somebody's turn to do according to each note moment with each note moment associated text information In music score.
In the embodiment of the present invention, if the destination multimedia file includes subtitle file, terminal can also be more by target The corresponding subtitle file of media file is inserted into the music score, due to the subtitle file include each note moment and with this it is each Note moment associated text information, therefore, terminal can be according to each note corresponding note moment in sequence of notes, from word Note moment corresponding text information is obtained in curtain file, and then the text information is inserted into the note moment pair in the music score The position for the note answered.
In the embodiment of the present invention, terminal can determine each note moment according to the audio signal at each note moment The pitch of audio signal, and the pitch of the audio signal at each note moment is formed into pitch sequence, according to the pitch sequence and Predetermined interval between the note moment determines the sequence of notes of the destination multimedia file, improves terminal and obtains sequence of notes Accuracy, meanwhile, which is divided into multiple note subsequences by terminal, and obtains the section of each note subsequence It claps, the beat of each note subsequence and the note subsequence is formed to the music score of destination multimedia file.Terminal passes through straight Connect the beat that each note subsequence is determined according to the audio signal, and by each note subsequence and the sub- sequence of each note The beat of row generates music score, while improving the efficiency of terminal generation music score, also improves the accuracy that terminal generates music score.
An embodiment of the present invention provides a kind of devices generating music score, which can apply in terminal, referring to Fig. 3, The device includes:
First acquisition module 301, the audio signal for obtaining destination multimedia file;
First determining module 302 is used for the frequency of the audio signal according to each note moment, when determining each note The pitch of the audio signal at quarter;
Second determining module 303, for the pitch of the audio signal at each note moment to be formed pitch sequence, according to Predetermined interval between the pitch sequence and note moment determines the sequence of notes of the destination multimedia file;
Division module 304, for the sequence of notes to be divided into multiple note subsequences;
Second acquisition module 305, the beat for obtaining each note subsequence;
Comprising modules 306, for the beat composition target of each note subsequence and each note subsequence is more The music score of media file.
Optionally, second determining module 303, including:
Combining unit is somebody's turn to do for continuous in the pitch sequence and identical multiple pitches to be merged into a pitch Each note that the sequence of notes of destination multimedia file includes;
First acquisition unit, what each note for obtaining in the sequence of notes continuously occurred in the pitch sequence goes out Occurrence number;
First determination unit, for the occurrence number and the predetermined interval according to each note in the sequence of notes, really The lasting duration of a sound of each note in the fixed sequence of notes;
Component units, for by the sequence of notes each note and the duration of a sound form the sequence of notes.
Optionally, the division module 304, including:
Second determination unit is determined for the duration of a sound according to each note in the sequence of notes in the sequence of notes Divide the position of beat;
The sequence of notes is divided into multiple note subsequences by division unit for the position according to the division beat.
Optionally, the division unit counts for the duration of a sound according to each note in the sequence of notes and presets note The occurrence number of each duration of a sound and each duration of a sound;According to the occurrence number of each duration of a sound and each duration of a sound, from each sound Selection meets the duration of a sound of preset condition in length;Determine the duration of a sound difference between the duration of a sound and the duration of a sound of selection pre- in the sequence of notes If the default note in range;It is the position of division beat by location determination of the default note selected in the sequence of notes.
Optionally, second acquisition module 305 is additionally operable to for each note subsequence, according to the note subsequence In the duration of a sound of each note obtain each sound in the note subsequence from the correspondence of duration of a sound range and sub- beat The sub- beat of symbol;
Second acquisition module 305 is additionally operable to the beat and work of the sub- beat of each note in the note subsequence For the beat of the note subsequence.
Optionally, which further includes:
Third acquisition module, for obtaining the corresponding subtitle file of destination multimedia file, which includes should Each note moment and with each note moment associated text information;
It is inserted into module, for according to each note moment, which to be inserted into the music score.
Optionally, first determining module 302, including:
Second acquisition unit, the frequency of the audio signal for obtaining each note moment;
Third acquiring unit is used for the frequency of the audio signal according to each note moment, from frequency range and pitch Correspondence in, obtain the pitch of the audio signal at each note moment.
Optionally, which is singly additionally operable to carry out analog-to-digital conversion to the audio signal at each note moment, obtains The audio data at each note moment;The audio at each note moment is obtained from the audio data at each note moment The frequency of signal.
In the embodiment of the present invention, terminal can determine each note moment according to the audio signal at each note moment The pitch of audio signal, and the pitch of the audio signal at each note moment is formed into pitch sequence, according to the pitch sequence and Predetermined interval between the note moment determines the sequence of notes of the destination multimedia file, improves terminal and obtains sequence of notes Accuracy, meanwhile, which is divided into multiple note subsequences by terminal, and obtains the section of each note subsequence It claps, the beat of each note subsequence and the note subsequence is formed to the music score of destination multimedia file.Terminal passes through straight Connect the beat that each note subsequence is determined according to the audio signal, and by each note subsequence and each note subsequence Beat generate music score, improve terminal generate music score efficiency while, also improve terminal generate music score accuracy.
It should be noted that:The device for the generation music score that above-described embodiment provides is when generating music score, only with above-mentioned each work( Can module division progress for example, in practical application, can be as needed and by above-mentioned function distribution by different functions Module is completed, i.e., the internal structure of device is divided into different function modules, described above all or part of to complete Function.In addition, the device for the generation music score that above-described embodiment provides belongs to same design with the embodiment of the method for generating music score, Specific implementation process refers to embodiment of the method, and which is not described herein again.
Fig. 4 is a kind of structural schematic diagram of terminal provided in an embodiment of the present invention.The terminal can be used for implementing above-mentioned reality Apply the function performed by the terminal in the method for the generation music score shown by example.Specifically:
Terminal 400 may include RF (Radio Frequency, radio frequency) circuit 110, include one or more meters The memory 120 of calculation machine readable storage medium storing program for executing, display unit 140, sensor 150, voicefrequency circuit 160, passes input unit 130 Defeated module 170, include there are one or more than one processing core processor 180 and the components such as power supply 190.This field Technical staff is appreciated that the restriction of the not structure paired terminal of terminal structure shown in Fig. 4, may include than illustrate it is more or Less component either combines certain components or different components arrangement.Wherein:
RF circuits 110 can be used for receiving and sending messages or communication process in, signal sends and receivees, particularly, by base station After downlink information receives, one or the processing of more than one processor 180 are transferred to;In addition, the data for being related to uplink are sent to Base station.In general, RF circuits 110 include but not limited to antenna, at least one amplifier, tuner, one or more oscillators, use Family identity module (SIM) card, transceiver, coupler, LNA (Low Noise Amplifier, low-noise amplifier), duplex Device etc..In addition, RF circuits 110 can also be communicated with network and other-end by radio communication.The wireless communication can make With any communication standard or agreement, and including but not limited to GSM (Global System of Mobile communication, entirely Ball mobile communcations system), GPRS (General Packet Radio Service, general packet radio service), CDMA (Code Division Multiple Access, CDMA), WCDMA (Wideband Code Division Multiple Access, wideband code division multiple access), LTE (Long Term Evolution, long term evolution), Email, SMS (Short Messaging Service, short message service) etc..
Memory 120 can be used for storing software program and module, the terminal institute as shown by the above exemplary embodiments Corresponding software program and module, processor 180 are stored in the software program and module of memory 120 by operation, from And application and data processing are performed various functions, such as realize the interaction based on video.Memory 120 can include mainly storage Program area and storage data field, wherein storing program area can storage program area, the application program needed at least one function (such as sound-playing function, image player function etc.) etc.;Storage data field can be stored to be created according to using for terminal 400 Data (such as audio data, phone directory etc.) etc..It, can be in addition, memory 120 may include high-speed random access memory Including nonvolatile memory, for example, at least a disk memory, flush memory device or other volatile solid-states Part.Correspondingly, memory 120 can also include Memory Controller, to provide processor 180 and input unit 130 to storage The access of device 120.
Input unit 130 can be used for receiving the number or character information of input, and generate and user setting and function Control related keyboard, mouse, operating lever, optics or the input of trace ball signal.Specifically, input unit 130 may include touching Sensitive surfaces 131 and other input terminals 132.Touch sensitive surface 131, also referred to as touch display screen or Trackpad are collected and are used Family on it or neighbouring touch operation (such as user using any suitable object or attachment such as finger, stylus in touch-sensitive table Operation on face 131 or near touch sensitive surface 131), and corresponding linked set is driven according to preset formula.It is optional , touch sensitive surface 131 may include both touch detecting apparatus and touch controller.Wherein, touch detecting apparatus detection is used The touch orientation at family, and the signal that touch operation is brought is detected, transmit a signal to touch controller;Touch controller is from touch Touch information is received in detection device, and is converted into contact coordinate, then gives processor 180, and can receive processor 180 The order sent simultaneously is executed.Furthermore, it is possible to using multiple types such as resistance-type, condenser type, infrared ray and surface acoustic waves Realize touch sensitive surface 131.In addition to touch sensitive surface 131, input unit 130 can also include other input terminals 132.Specifically, Other input terminals 132 can include but is not limited to physical keyboard, function key (such as volume control button, switch key etc.), It is one or more in trace ball, mouse, operating lever etc..
Display unit 140 can be used for showing information input by user or the information and terminal 400 that are supplied to user Various graphical user interface, these graphical user interface can be made of figure, text, icon, video and its arbitrary combination. Display unit 140 may include display panel 141, optionally, LCD (Liquid Crystal Display, liquid crystal may be used Show device), the forms such as OLED (Organic Light-Emitting Diode, Organic Light Emitting Diode) configure display panel 141.Further, touch sensitive surface 131 can cover display panel 141, when touch sensitive surface 131 detects on it or neighbouring touches After touching operation, processor 180 is sent to determine the type of touch event, is followed by subsequent processing type of the device 180 according to touch event Corresponding visual output is provided on display panel 141.Although in Fig. 4, touch sensitive surface 131 and display panel 141 are conducts Two independent components realize input and input function, but in some embodiments it is possible to by touch sensitive surface 131 and display Panel 141 is integrated and realizes and outputs and inputs function.
Terminal 400 may also include at least one sensor 150, such as optical sensor, motion sensor and other sensings Device.Specifically, optical sensor may include ambient light sensor and proximity sensor, wherein ambient light sensor can be according to environment The light and shade of light adjusts the brightness of display panel 141, and proximity sensor can close display when terminal 400 is moved in one's ear Panel 141 and/or backlight.As a kind of motion sensor, gravity accelerometer can detect in all directions (generally Three axis) acceleration size, size and the direction of gravity are can detect that when static, can be used to identify mobile phone posture application (ratio Such as horizontal/vertical screen switching, dependent game, magnetometer pose calibrating), Vibration identification correlation function (such as pedometer, tap);Extremely In other sensors such as gyroscope, barometer, hygrometer, thermometer, the infrared sensors that terminal 400 can also configure, herein It repeats no more.
Voicefrequency circuit 160, loud speaker 161, microphone 162 can provide the audio interface between user and terminal 400.Audio The transformed electric signal of the audio data received can be transferred to loud speaker 161 by circuit 160, and sound is converted to by loud speaker 161 Sound signal exports;On the other hand, the voice signal of collection is converted to electric signal by microphone 162, after being received by voicefrequency circuit 160 Audio data is converted to, then by after the processing of audio data output processor 180, through RF circuits 110 to be sent to such as another end End, or audio data is exported to memory 120 to be further processed.Voicefrequency circuit 160 is also possible that earphone jack, To provide the communication of peripheral hardware earphone and terminal 400.
Terminal 400 can help user to send and receive e-mail, browse webpage and access streaming video by transmission module 170 Deng, it provided to the user broadband internet wirelessly or non-wirelessly access.It, can be with although Fig. 4 shows transmission module 170 Understand, and is not belonging to must be configured into for terminal 400, it completely can be as needed in the range for the essence for not changing invention It is interior and omit.
Processor 180 is the control centre of terminal 400, and each portion of whole mobile phone is linked using various interfaces and circuit Point, by running or execute the software program and/or module that are stored in memory 120, and calls and be stored in memory 120 Interior data execute the various functions and processing data of terminal 400, to carry out integral monitoring to mobile phone.Optionally, processor 180 may include one or more processing cores;Preferably, processor 180 can integrate application processor and modem processor, Wherein, the main processing operation system of application processor, user interface and application program etc., modem processor mainly handles nothing Line communicates.It is understood that above-mentioned modem processor can not also be integrated into processor 180.
Terminal 400 further includes the power supply 190 (such as battery) powered to all parts, it is preferred that power supply can pass through electricity Management system and processor 180 are logically contiguous, to realize management charging, electric discharge and power consumption by power-supply management system The functions such as management.Power supply 190 can also include one or more direct current or AC power, recharging system, power supply event Hinder the random components such as detection circuit, power supply changeover device or inverter, power supply status indicator.
Although being not shown, terminal 400 can also include camera, bluetooth module etc., and details are not described herein.Specifically in this reality It applies in example, the display unit of terminal is touch-screen display, and terminal further includes having memory and one or more than one Program, either more than one program is stored in memory and is configured to by one or more than one processing for one of them Device executes said one or more than one program and includes the method for executing above-mentioned generation music score.
One of ordinary skill in the art will appreciate that realizing that all or part of step of above-described embodiment can pass through hardware It completes, relevant hardware can also be instructed to complete by program, the program can be stored in a kind of computer-readable In storage medium, storage medium mentioned above can be read-only memory, disk or CD etc..
The foregoing is merely presently preferred embodiments of the present invention, is not intended to limit the invention, it is all the present invention spirit and Within principle, any modification, equivalent replacement, improvement and so on should all be included in the protection scope of the present invention.

Claims (12)

1. a kind of method generating music score, which is characterized in that the method includes:
Obtain the audio signal of destination multimedia file;
According to the frequency of the audio signal at each note moment, the pitch of the audio signal at each note moment is determined;
The pitch of the audio signal at each note moment is formed into pitch sequence, according to the pitch sequence and note moment Between predetermined interval, determine the sequence of notes of the destination multimedia file;
According to the duration of a sound of each note in the sequence of notes, the appearance of each duration of a sound and each duration of a sound of presetting note is counted Number;
According to the occurrence number of each duration of a sound and each duration of a sound, select to meet preset condition from each duration of a sound The duration of a sound;
The default note of duration of a sound difference within a preset range between the duration of a sound and the duration of a sound of selection is determined in the sequence of notes;
It is the position of division beat by location determination of the default note selected in the sequence of notes;
According to the position for dividing beat, the sequence of notes is divided into multiple note subsequences;
Obtain the beat of each note subsequence;
The beat of each note subsequence and each note subsequence is formed to the pleasure of the destination multimedia file Spectrum.
2. according to the method described in claim 1, it is characterized in that, described according between the pitch sequence and note moment Predetermined interval determines the sequence of notes of the destination multimedia file, including:
Continuous in the pitch sequence and identical multiple pitches are merged into a pitch, obtain the destination multimedia file Sequence of notes each note for including;
Obtain the occurrence number that each note in the sequence of notes continuously occurs in the pitch sequence;
According to the occurrence number of each note in the sequence of notes and the predetermined interval, determine in the sequence of notes The lasting duration of a sound of each note;
By each note and the duration of a sound composition sequence of notes in the sequence of notes.
3. according to the method described in claim 1, it is characterized in that, the beat for obtaining each note subsequence, including:
For each note subsequence, according to the duration of a sound of each note in the note subsequence, from duration of a sound range and In the correspondence of sub- beat, the sub- beat of each note in the note subsequence is obtained;
By the beat of the sub- beat of each note in the note subsequence and as the beat of the note subsequence.
4. according to the method described in claim 1, it is characterized in that, described by each note subsequence and note After the beat of sequence forms the music score of the destination multimedia file, the method further includes:
Obtain the corresponding subtitle file of the destination multimedia file, the subtitle file include each note moment and with Each note moment associated text information;
According to each note moment, the text information is inserted into the music score.
5. according to the method described in claim 1, it is characterized in that, the frequency of the audio signal at the basis each note moment Rate determines the pitch of the audio signal at each note moment, including:
Obtain the frequency of the audio signal at each note moment;
According to the frequency of the audio signal at each note moment institute is obtained from the correspondence of frequency range and pitch State the pitch of the audio signal at each note moment.
6. according to the method described in claim 5, it is characterized in that, the audio signal for obtaining each note moment Frequency, including:
Analog-to-digital conversion is carried out to the audio signal at each note moment, obtains the audio data at each note moment;
The frequency of the audio signal at each note moment is obtained from the audio data at each note moment.
7. a kind of device generating music score, which is characterized in that described device includes:
First acquisition module, the audio signal for obtaining destination multimedia file;
First determining module is used for the frequency of the audio signal according to each note moment, determines each note moment The pitch of audio signal;
Second determining module, for the pitch of the audio signal at each note moment to be formed pitch sequence, according to described Predetermined interval between pitch sequence and note moment determines the sequence of notes of the destination multimedia file;
Division module, for according to the duration of a sound of each note in the sequence of notes, count each duration of a sound for presetting note and The occurrence number of each duration of a sound, according to the occurrence number of each duration of a sound and each duration of a sound, from each duration of a sound Selection meets the duration of a sound of preset condition, determines the duration of a sound difference between the duration of a sound and the duration of a sound of selection default in the sequence of notes Default note in range, by location determination of the default note selected in the sequence of notes to divide the position of beat, According to the position for dividing beat, the sequence of notes is divided into multiple note subsequences;
Second acquisition module, the beat for obtaining each note subsequence;
Comprising modules are more for the beat of each note subsequence and each note subsequence to be formed the target The music score of media file.
8. device according to claim 7, which is characterized in that second determining module, including:
Combining unit obtains described for continuous in the pitch sequence and identical multiple pitches to be merged into a pitch Each note that the sequence of notes of destination multimedia file includes;
First acquisition unit, what each note for obtaining in the sequence of notes continuously occurred in the pitch sequence goes out Occurrence number;
First determination unit is used for the occurrence number according to each note in the sequence of notes and the predetermined interval, really The lasting duration of a sound of each note in the fixed sequence of notes;
Component units are used for each note and the duration of a sound composition sequence of notes in the sequence of notes.
9. device according to claim 8, which is characterized in that
Second acquisition module is additionally operable to for each note subsequence, according to each of described note subsequence The duration of a sound of note obtains the son of each note in the note subsequence from the correspondence of duration of a sound range and sub- beat Beat;
Second acquisition module is additionally operable to by the beat of the sub- beat of each note in the note subsequence and as institute State the beat of note subsequence.
10. device according to claim 8, which is characterized in that described device further includes:
Third acquisition module, for obtaining the corresponding subtitle file of the destination multimedia file, the subtitle file includes institute State each note moment and with each note moment associated text information;
It is inserted into module, for according to each note moment, the text information to be inserted into the music score.
11. device according to claim 8, which is characterized in that first determining module, including:
Second acquisition unit, the frequency of the audio signal for obtaining each note moment;
Third acquiring unit, for the frequency according to the audio signal at each note moment, from frequency range and pitch In correspondence, the pitch of the audio signal at each note moment is obtained.
12. according to the devices described in claim 11, which is characterized in that
The second acquisition unit is additionally operable to carry out analog-to-digital conversion to the audio signal at each note moment, obtain described The audio data at each note moment;The sound at each note moment is obtained from the audio data at each note moment The frequency of frequency signal.
CN201611219106.6A 2016-12-26 2016-12-26 The method and apparatus for generating music score Active CN106782460B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201611219106.6A CN106782460B (en) 2016-12-26 2016-12-26 The method and apparatus for generating music score

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201611219106.6A CN106782460B (en) 2016-12-26 2016-12-26 The method and apparatus for generating music score

Publications (2)

Publication Number Publication Date
CN106782460A CN106782460A (en) 2017-05-31
CN106782460B true CN106782460B (en) 2018-10-30

Family

ID=58926216

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201611219106.6A Active CN106782460B (en) 2016-12-26 2016-12-26 The method and apparatus for generating music score

Country Status (1)

Country Link
CN (1) CN106782460B (en)

Families Citing this family (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107274876A (en) * 2017-06-30 2017-10-20 武汉理工大学 A kind of audition paints spectrometer
CN107452361B (en) * 2017-08-08 2020-07-07 腾讯音乐娱乐(深圳)有限公司 Song sentence dividing method and device
CN108257588B (en) * 2018-01-22 2022-03-01 姜峰 Music composing method and device
CN110379400B (en) * 2018-04-12 2021-09-24 森兰信息科技(上海)有限公司 Method and system for generating music score
WO2019196052A1 (en) 2018-04-12 2019-10-17 Sunland Information Technology Co., Ltd. System and method for generating musical score
CN108630243B (en) * 2018-05-09 2020-08-11 福建星网视易信息系统有限公司 Method and terminal for assisting singing
CN109273025B (en) * 2018-11-02 2021-11-05 中国地质大学(武汉) Chinese ethnic five-tone emotion recognition method and system
CN109979488B (en) * 2019-03-14 2021-05-14 浙江大学 System for converting human voice into music score based on stress analysis
CN110570834A (en) * 2019-09-27 2019-12-13 广州市迪声音响有限公司 method, device and equipment for realizing synchronous display of song score in song playing process
CN111081265B (en) * 2019-12-26 2023-01-03 广州酷狗计算机科技有限公司 Pitch processing method, pitch processing device, pitch processing equipment and storage medium
US11798523B2 (en) * 2020-01-31 2023-10-24 Soundtrap Ab Systems and methods for generating audio content in a digital audio workstation
CN113963723B (en) * 2021-09-16 2023-05-26 秦慈军 Music presentation method, device, equipment and storage medium

Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1703734A (en) * 2002-10-11 2005-11-30 松下电器产业株式会社 Method and apparatus for determining musical notes from sounds
CN1753080A (en) * 2004-09-22 2006-03-29 雅马哈株式会社 Apparatus and program for displaying musical information
CN1984407A (en) * 2006-06-07 2007-06-20 华为技术有限公司 Method for realizing beat function on mobile terminal and mobile terminal
CN101226526A (en) * 2007-01-17 2008-07-23 上海怡得网络有限公司 Method for searching music based on musical segment information inquest
CN102568457A (en) * 2011-12-23 2012-07-11 深圳市万兴软件有限公司 Music synthesis method and device based on humming input
CN102682752A (en) * 2011-03-07 2012-09-19 卡西欧计算机株式会社 Musical-score information generating apparatus, musical-score information generating method, music-tone generation controlling apparatus, and music-tone generation controlling method
CN103824565A (en) * 2014-02-26 2014-05-28 曾新 Humming music reading method and system based on music note and duration modeling
CN104485090A (en) * 2014-12-12 2015-04-01 上海斐讯数据通信技术有限公司 Music score generating method and device and mobile terminal
CN105161087A (en) * 2015-09-18 2015-12-16 努比亚技术有限公司 Automatic harmony method, device, and terminal automatic harmony operation method
CN105427708A (en) * 2015-12-10 2016-03-23 华北水利水电大学 Vocal music pronunciation training system
CN105761733A (en) * 2016-02-02 2016-07-13 腾讯科技(深圳)有限公司 Method and device for generating lyrics files

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7314994B2 (en) * 2001-11-19 2008-01-01 Ricoh Company, Ltd. Music processing printer

Patent Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1703734A (en) * 2002-10-11 2005-11-30 松下电器产业株式会社 Method and apparatus for determining musical notes from sounds
CN1753080A (en) * 2004-09-22 2006-03-29 雅马哈株式会社 Apparatus and program for displaying musical information
CN1984407A (en) * 2006-06-07 2007-06-20 华为技术有限公司 Method for realizing beat function on mobile terminal and mobile terminal
CN101226526A (en) * 2007-01-17 2008-07-23 上海怡得网络有限公司 Method for searching music based on musical segment information inquest
CN102682752A (en) * 2011-03-07 2012-09-19 卡西欧计算机株式会社 Musical-score information generating apparatus, musical-score information generating method, music-tone generation controlling apparatus, and music-tone generation controlling method
CN102568457A (en) * 2011-12-23 2012-07-11 深圳市万兴软件有限公司 Music synthesis method and device based on humming input
CN103824565A (en) * 2014-02-26 2014-05-28 曾新 Humming music reading method and system based on music note and duration modeling
CN104485090A (en) * 2014-12-12 2015-04-01 上海斐讯数据通信技术有限公司 Music score generating method and device and mobile terminal
CN105161087A (en) * 2015-09-18 2015-12-16 努比亚技术有限公司 Automatic harmony method, device, and terminal automatic harmony operation method
CN105427708A (en) * 2015-12-10 2016-03-23 华北水利水电大学 Vocal music pronunciation training system
CN105761733A (en) * 2016-02-02 2016-07-13 腾讯科技(深圳)有限公司 Method and device for generating lyrics files

Also Published As

Publication number Publication date
CN106782460A (en) 2017-05-31

Similar Documents

Publication Publication Date Title
CN106782460B (en) The method and apparatus for generating music score
CN105549740B (en) A kind of method and apparatus of playing audio-fequency data
CN105788612B (en) A kind of method and apparatus detecting sound quality
CN105363201B (en) The display methods and device of prompt message
CN104967910B (en) Multimedia progress monitoring method and device
CN106210755B (en) A kind of methods, devices and systems playing live video
CN105120065B (en) Message treatment method and device
CN104965843B (en) A kind of method and device obtaining comment information
CN104036536B (en) The generation method and device of a kind of stop-motion animation
CN104602135B (en) Control the method and device of played in full screen
CN103309673A (en) Session processing method and device based on gesture, and terminal equipment
CN106488296B (en) A kind of method and apparatus showing video barrage
CN106210266B (en) A kind of acoustic signal processing method and audio signal processor
CN105447124B (en) Virtual objects sharing method and device
CN106384599B (en) A kind of method and apparatus of distorsion identification
CN103294442B (en) A kind of method of playing alert tones, device and terminal device
CN106599204A (en) Method and device for recommending multimedia content
CN107507628A (en) Singing methods of marking, device and terminal
CN106652981B (en) BPM detection method and device
CN106454482A (en) Method and device for displaying chatting information
CN106558299A (en) The mode switching method and device of audio rendition
CN105550316B (en) The method for pushing and device of audio list
CN104583924B (en) A kind of method and terminal for handling media file
CN107817988A (en) The management method and Related product of PUSH message
CN106057213B (en) A kind of method and apparatus of display voice pitch data

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
CB02 Change of applicant information

Address after: 510660 Guangzhou City, Guangzhou, Guangdong, Whampoa Avenue, No. 315, self - made 1-17

Applicant after: Guangzhou KuGou Networks Co., Ltd.

Address before: 510000 B1, building, No. 16, rhyme Road, Guangzhou, Guangdong, China 13F

Applicant before: Guangzhou KuGou Networks Co., Ltd.

CB02 Change of applicant information
GR01 Patent grant
GR01 Patent grant