CN106548768B - A kind of modified method and apparatus of note - Google Patents
A kind of modified method and apparatus of note Download PDFInfo
- Publication number
- CN106548768B CN106548768B CN201610909169.8A CN201610909169A CN106548768B CN 106548768 B CN106548768 B CN 106548768B CN 201610909169 A CN201610909169 A CN 201610909169A CN 106548768 B CN106548768 B CN 106548768B
- Authority
- CN
- China
- Prior art keywords
- sound level
- note
- level frequency
- frequency separation
- sound
- 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
Links
Classifications
-
- G—PHYSICS
- G10—MUSICAL INSTRUMENTS; ACOUSTICS
- G10H—ELECTROPHONIC 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/00—Details of electrophonic musical instruments
- G10H1/02—Means for controlling the tone frequencies, e.g. attack or decay; Means for producing special musical effects, e.g. vibratos or glissandos
- G10H1/04—Means for controlling the tone frequencies, e.g. attack or decay; Means for producing special musical effects, e.g. vibratos or glissandos by additional modulation
-
- G—PHYSICS
- G10—MUSICAL INSTRUMENTS; ACOUSTICS
- G10H—ELECTROPHONIC MUSICAL INSTRUMENTS; INSTRUMENTS IN WHICH THE TONES ARE GENERATED BY ELECTROMECHANICAL MEANS OR ELECTRONIC GENERATORS, OR IN WHICH THE TONES ARE SYNTHESISED FROM A DATA STORE
- G10H2210/00—Aspects or methods of musical processing having intrinsic musical character, i.e. involving musical theory or musical parameters or relying on musical knowledge, as applied in electrophonic musical tools or instruments
- G10H2210/325—Musical pitch modification
- G10H2210/331—Note pitch correction, i.e. modifying a note pitch or replacing it by the closest one in a given scale
Abstract
The invention discloses a kind of modified method and apparatus of note, belong to field of computer technology.The method includes:Each note that the note data of target song includes is obtained, is determined in the sound level frequency separation belonging to each note, the most sound level frequency separation of occurrence number;It is sorted based on sound level, multiple sound level frequency separations of corresponding basic sound level is set, and the multiple sound level frequency separation includes the most sound level frequency separation of the occurrence number;In the note data, the note of basic sound level is not corresponded to for affiliated sound level frequency separation, the frequency values of the note are adjusted in the sound level frequency separation of corresponding basic sound level, obtain revised note data.Using the present invention, note amendment can be realized in the case of no standard note data.
Description
Technical field
The present invention relates to field of computer technology, more particularly to a kind of modified method and apparatus of note.
Background technology
For user after the audio recording for carrying out song by singing application program, singing application program can be based on the original of recording
The voice audio data of beginning extracts note data, and the process of extraction is:First the frequency point in original voice audio data is carried out
The continuous close frequency point of multiple frequencies is divided into a note, is then based on each frequency point that each note includes by grouping
Frequency calculates the corresponding frequency of note, and the time for each frequency point for including based on each note, at the beginning of determining each note
Between put and duration, then determine the mark of the sound level frequency separation belonging to the frequency of each note, and then voice audio can be obtained
The corresponding note data of data, record has the frequency of each note, the mark of affiliated sound level frequency separation, opens in note data
Begin time point and duration.Wherein, sound level frequency separation is the frequency separation that people divide to distinguish sound level, and dividing mode can
With as shown in table 1 below, the frequency range of sound is divided into multiple frequency separations, and each single item in table is a sound level frequency
The centre frequency in section, each sound level frequency separation correspond to a sound level, and each in table 1 is classified as a series of sound grouping.Sound level
May include C, C#/Db、D、D#/Eb、E、F、F#/Gb、G、G#/Ab、A、A#/Bb, B, wherein C, D, E, F, G, A, B be basic announcement
Grade.
User is during singing and carrying out audio recording, it sometimes appear that the case where " singing out of tune ", " singing out of tune "
Note, there are frequency departure, causes the comfort listened to poor relative to correct note.For this situation, application program is sung
In provide the modified function of note, the note of user's " singing out of tune " is modified, it is easypro to improve listening to for note data
Suitable sense.Detailed process is:Note data is extracted to the voice audio data of recording, and it is corresponding to obtain original singer's voice audio data
The note data of extraction is compared by standard note data with standard note data, if the note data and standard of extraction
Some note in note data is different, then the note in the note data of extraction is revised as corresponding standard note data
In note.
In the implementation of the present invention, the inventor finds that the existing technology has at least the following problems:
Standard note data are generally searched from network, during above-mentioned note is modified, if some song can not
Standard note data are found, then can not carry out note amendment.
Invention content
In order to solve problems in the prior art, an embodiment of the present invention provides a kind of modified method and apparatus of note.Institute
It is as follows to state technical solution:
In a first aspect, a kind of modified method of note is provided, the method includes:
Each note that the note data of target song includes is obtained, determines the sound level frequency separation belonging to each note
In, the most sound level frequency separation of occurrence number;
It is sorted based on sound level, multiple sound level frequency separations of corresponding basic sound level, the multiple sound level frequency separation is set
It include the most sound level frequency separation of the occurrence number;
In the note data, the note of basic sound level is not corresponded to for affiliated sound level frequency separation, by the note
Frequency values be adjusted in the sound level frequency separation of corresponding basic sound level, obtain revised note data.
Optionally, in the sound level frequency separation belonging to each note of the determination, the most sound level frequency zones of occurrence number
Between, including:
The frequency values for each note for including to the note data carry out zooming in or out for 2 integral multiple, respectively will
In the regular grouping to the preset series of sound of each note;
It determines by the sound level frequency separation belonging to regular treated each note, the most sound level frequency of occurrence number
Rate section.
In this way, operand can be reduced, the modified efficiency of note is improved.
Optionally, described in the note data, do not correspond to the note of basic sound level for affiliated sound level frequency separation,
The frequency values of the note are adjusted in the sound level frequency separation of corresponding basic sound level, obtain revised note data, wrapped
It includes:
In by regular treated each note, the sound of basic sound level is not corresponded to for affiliated sound level frequency separation
The frequency values of the note are adjusted in the sound level frequency separation of corresponding basic sound level, the note after being adjusted by symbol;
The frequency values of note after each adjustment are carried out with zooming in or out for 2 integral multiple, after each adjusting respectively
Note be restored in the grouping of the series of sound where the note before corresponding regular processing, obtain corresponding revised note;
In the note data, the note before the corresponding regular processing of the note after each adjustment is revised as corresponding to
Revised note, obtain revised note data.
In this way, the modified efficiency of note can be improved.
Optionally, the method further includes:It determines by the sound level frequency separation belonging to regular treated each note
In, the more sound level frequency separation of occurrence number time;
It is described to be sorted based on sound level, multiple sound level frequency separations of corresponding basic sound level, the multiple sound level frequency are set
Section includes the most sound level frequency separation of the occurrence number, including:
If the note that the occurrence number of the more sound level frequency separation of the occurrence number time includes with the note data
The ratio of number is less than or equal to predetermined threshold value, then is based on sound level and sorts, and multiple sound level frequency zones of corresponding basic sound level are arranged
Between, the multiple sound level frequency separation includes the most sound level frequency separation of the occurrence number;
If the note that the occurrence number of the more sound level frequency separation of the occurrence number time includes with the note data
The ratio of number is more than predetermined threshold value, then is based on sound level and sorts, and multiple sound level frequency separations of corresponding basic sound level are arranged, described
Multiple sound level frequency separations include the most sound level frequency separation of the occurrence number and the secondary more sound level of the occurrence number
Frequency separation.
In this way, the modified accuracy of note can be improved.
Optionally, if the occurrence number of the more sound level frequency separation of the occurrence number time and the note data
Including the ratio of number of notes be less than or equal to predetermined threshold value, then be based on sound level and sort, the multiple of corresponding basic sound level are set
Sound level frequency separation, the multiple sound level frequency separation include the most sound level frequency separation of the occurrence number, including:
If the note that the occurrence number of the more sound level frequency separation of the occurrence number time includes with the note data
The ratio of number is less than or equal to predetermined threshold value, then the most sound level frequency separation of the occurrence number is arranged and corresponds to C sound levels, base
It sorts in sound level, and corresponds to the sound level frequency separation of C sound levels, multiple sound level frequency separations of the corresponding other basic sound levels of setting;
If the occurrence number of the more sound level frequency separation of the occurrence number time includes with the note data
The ratio of number of notes is more than predetermined threshold value, then is based on sound level and sorts, and multiple sound level frequency separations of corresponding basic sound level are arranged,
The multiple sound level frequency separation includes that the most sound level frequency separation of the occurrence number and the occurrence number time are more
Sound level frequency separation, including:
If the note that the occurrence number of the more sound level frequency separation of the occurrence number time includes with the note data
The ratio of number is more than predetermined threshold value, then when the more sound level frequency separation of the occurrence number time is grouped in the preset series of sound
In serial number N when being more than serial number M of the most sound level frequency separation of the occurrence number in the preset series of sound grouping, really
Determine diff=N-M, when N is less than M, determines diff=N-M+12;
According to the difference of diff values, handle in the following way:If diff is 1,3,8,10, it is determined that M adds diff
Again divided by 12 remainder is serial number P, and setting serial number P corresponding sound level frequency separations in the preset series of sound grouping correspond to C
Sound level;If diff is 6, it is determined that again divided by 12 remainder is serial number Q plus 7, setting serial number Q is in the preset series of sound point by M
Corresponding sound level frequency separation corresponds to C sound levels in group;If diff is the numerical value except 1,3,6,8,10, go out occurrence described in setting
The most sound level frequency separation of number corresponds to C sound levels;
It is sorted based on sound level, and corresponds to the sound level frequency separation of C sound levels, multiple sound levels of the corresponding other basic sound levels of setting
Frequency separation.
In this way, the modified accuracy of note can be improved.
Optionally, the frequency values by the note are adjusted in the sound level frequency separation of corresponding basic sound level, including:
By the frequency values of the note, it is adjusted to the sound level frequency of closest with the note frequencies and corresponding basic sound level
In section.
In this way, can be in the modification minimized while listening to comfort level to note data for ensureing note data.
Second aspect provides a kind of modified device of note, which is characterized in that described device includes:
Determining module, each note that the note data for obtaining target song includes, determines belonging to each note
In sound level frequency separation, the most sound level frequency separation of occurrence number;
Setup module, for being sorted based on sound level, multiple sound level frequency separations of the corresponding basic sound level of setting are the multiple
Sound level frequency separation includes the most sound level frequency separation of the occurrence number;
Correcting module, in the note data, not corresponding to the sound of basic sound level for affiliated sound level frequency separation
The frequency values of the note are adjusted in the sound level frequency separation of corresponding basic sound level, obtain revised note data by symbol.
Optionally, the determining module, is used for:
The frequency values for each note for including to the note data carry out zooming in or out for 2 integral multiple, respectively will
In the regular grouping to the preset series of sound of each note;
It determines by the sound level frequency separation belonging to regular treated each note, the most sound level frequency of occurrence number
Rate section.
Optionally, the correcting module, is used for:
In by regular treated each note, the sound of basic sound level is not corresponded to for affiliated sound level frequency separation
The frequency values of the note are adjusted in the sound level frequency separation of corresponding basic sound level, the note after being adjusted by symbol;
The frequency values of note after each adjustment are carried out with zooming in or out for 2 integral multiple, after each adjusting respectively
Note be restored in the grouping of the series of sound where the note before corresponding regular processing, obtain corresponding revised note;
In the note data, the note before the corresponding regular processing of the note after each adjustment is revised as corresponding to
Revised note, obtain revised note data.
Optionally, the determining module, is additionally operable to:It determines by the sound level frequency belonging to regular treated each note
In section, the more sound level frequency separation of occurrence number time;
The setup module, is used for:
If the note that the occurrence number of the more sound level frequency separation of the occurrence number time includes with the note data
The ratio of number is less than or equal to predetermined threshold value, then is based on sound level and sorts, and multiple sound level frequency zones of corresponding basic sound level are arranged
Between, the multiple sound level frequency separation includes the most sound level frequency separation of the occurrence number;
If the note that the occurrence number of the more sound level frequency separation of the occurrence number time includes with the note data
The ratio of number is more than predetermined threshold value, then is based on sound level and sorts, and multiple sound level frequency separations of corresponding basic sound level are arranged, described
Multiple sound level frequency separations include the most sound level frequency separation of the occurrence number and the secondary more sound level of the occurrence number
Frequency separation.
Optionally, the setup module, is used for:
If the note that the occurrence number of the more sound level frequency separation of the occurrence number time includes with the note data
The ratio of number is less than or equal to predetermined threshold value, then the most sound level frequency separation of the occurrence number is arranged and corresponds to C sound levels, base
It sorts in sound level, and corresponds to the sound level frequency separation of C sound levels, multiple sound level frequency separations of the corresponding other basic sound levels of setting;
If the note that the occurrence number of the more sound level frequency separation of the occurrence number time includes with the note data
The ratio of number is more than predetermined threshold value, then when the more sound level frequency separation of the occurrence number time is grouped in the preset series of sound
In serial number N when being more than serial number M of the most sound level frequency separation of the occurrence number in the preset series of sound grouping, really
Determine diff=N-M, when N is less than M, determines diff=N-M+12;According to the difference of diff values, handle in the following way:
If diff be 1,3,8,10, it is determined that M plus diff again divided by 12 remainder be serial number P, setting serial number P in the preset sound
Corresponding sound level frequency separation corresponds to C sound levels in column split;If diff be 6, it is determined that M plus 7 again divided by 12 remainder be sequence
Number Q, setting serial number the Q corresponding sound level frequency separation in the preset series of sound grouping correspond to C sound levels;If diff be 1,3,6,
8, the numerical value except 10, then be arranged the most sound level frequency separation of the occurrence number and correspond to C sound levels;It is sorted based on sound level, and
The sound level frequency separation of corresponding C sound levels, multiple sound level frequency separations of the corresponding other basic sound levels of setting.
Optionally, the correcting module, is used for:
By the frequency values of the note, it is adjusted to the sound level frequency of closest with the note frequencies and corresponding basic sound level
In section.
The advantageous effect that technical solution provided in an embodiment of the present invention is brought is:
In the embodiment of the present invention, each note that the note data that obtains target song includes determines belonging to each note
Sound level frequency separation in, the most sound level frequency separation of occurrence number is sorted based on sound level, and the more of corresponding basic sound level are arranged
A sound level frequency separation, this multiple sound level frequency separation includes the most sound level frequency separation of above-mentioned occurrence number, above-mentioned
In note data, the note of basic sound level is not corresponded to for affiliated sound level frequency separation, the frequency values of the note are adjusted to pair
In the sound level frequency separation for answering basic sound level, revised note data is obtained.In this way, can make in revised note data
Note belong to basic sound level, from the angle of acoustics, this can improve the comfort of listening to of note data, that is, realize note repair
Just, to which this programme can realize note amendment in the case of no standard note data.
Description of the drawings
To describe the technical solutions in the embodiments of the present invention more clearly, make required in being described below to embodiment
Attached drawing is briefly described, it should be apparent that, drawings in the following description are only some embodiments of the invention, for
For those of ordinary skill in the art, without creative efforts, other are can also be obtained according to these attached drawings
Attached drawing.
Fig. 1 is the flow diagram of a kind of modified method of note provided in an embodiment of the present invention;
Fig. 2 is the flow diagram of a kind of modified method of note provided in an embodiment of the present invention;
Fig. 3 is the flow diagram of a kind of modified method of note provided in an embodiment of the present invention;
Fig. 4 is a kind of structural schematic diagram of the modified device of note provided in an embodiment of the present invention;
Fig. 5 is a kind of structural schematic diagram of terminal 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 modified method of note, this method can be realized by terminal or server.Its
In, terminal can be the terminal for having audio recording function, can be equipped with and sing application program, and server can sing to answer
With the background server of program.The present embodiment carries out the detailed description of scheme so that executive agent is terminal as an example, other situations with
It is similar, the present embodiment is not repeated.
Terminal may include the components such as processor, memory, audio detection component.Processor can be CPU (Central
Processing Unit, central processing unit) etc., it is extracted in the voice audio data that can be used for singing and recording in user
Note data is arranged basic sound level, adjusts the frequency values of note, wait processing.Memory can be RAM (Random Access
Memory, random access memory), Flash (flash memory) etc. can be used for storing needed for the data received, processing procedure
The data etc. generated in data, processing procedure, such as the most sound level frequency separation of note data, occurrence number, occurrence number time
More sound level frequency separation, sound level sequence, revised note data etc..Audio detection component can be microphone etc., can be with
Sound for detecting user's singing, and corresponding voice audio data is transferred to processor and memory.Terminal can be with
Including transceiver, input part, display unit, audio output part etc..Transceiver can be used for carrying out data biography with server
It is defeated, may include antenna, match circuit, modem etc. for example, revised note data is transferred to server.It is defeated
It can be touch screen, keyboard, mouse etc. to enter component.Audio output part can be speaker, earphone etc..
As shown in Figure 1, the process flow of this method may include following step:
Step 101, each note that the note data for obtaining target song includes determines the sound level frequency belonging to each note
In rate section, the most sound level frequency separation of occurrence number.
In force, when user wants with simultaneously recording song is sung, it can be opened in terminal and sing application program, sung
In the song list for singing application program offer, the song (i.e. target song) for oneself wanting to sing, click is selected to start to record button, then
The accompaniment of target song can be played with triggering terminal, and the voice audio data that user sings is detected by microphone, be transmitted to
Memory is stored.After recording, terminal can extract note data, note data in the voice audio data of recording
Middle mark, sart point in time and the duration for recording the frequency, affiliated sound level frequency separation that have each note.Determine each note
Sound level frequency range belonging to frequency chooses the most sound level frequency of occurrence number in these sound level frequency ranges determined
Rate range.
Optionally, can be first regular in a series of sound is grouped by all notes, corresponding processing can be as follows:
Step 1, the frequency values for each note for including to note data carry out zooming in or out for 2 integral multiple, respectively
It will be in the regular grouping to the preset series of sound of each note.
Wherein, preset series of sound grouping can be arbitrarily arranged according to demand, it is preferred to use the most important frequency band pair of voice
The series of sound grouping answered, i.e. the 4th series of sound grouping (series of sound of number 3 is grouped).
In force, by taking the preset series of sound is grouped into the grouping of the 4th series of sound as an example, the 4th series of sound grouping one shares 12 sound levels
Frequency separation, each sound level frequency separation have certain frequency range, wherein (the sequence of series of sound grouping of sound level frequency separation 31
Number be 3, sound level frequency separation the series of sound grouping in serial number 1, it is subsequent number with this similarly) lower-frequency limit be
The upper frequency limit of 127.088Hz, sound level frequency separation 312 are 254.175Hz.For any note in note data, it is assumed that
The frequency values of the note are Note, if Note is more than 254.175Hz, Note=Note/2, until Note is less than or equal to
254.175Hz;If Note is less than 127.088Hz, Note=Note*2, until Note is greater than or equal to 127.088Hz.By
After above-mentioned processing, the note is then by the regular grouping to the preset series of sound.Because adjacent series of sound grouping is to differ the pass of octave
System multiplies 2 except 2 adjustment will not change serial number of the sound level frequency separation of note in series of sound grouping, so, multiply 2 and is equivalent to
By note improve one 8 degree, note is moved to right into a section in table 1, except 2 be equivalent to by note reduction by one 8 degree, in table 1
It is middle that note is moved to left into a section.
During regular processing, after carrying out above-mentioned 2 scaling of integral multiple, the frequency values of note can also be advised
The whole centre frequency to the sound level frequency separation being currently located.
Step 2 is determined by the sound level frequency separation belonging to regular treated each note, occurrence number is most
Sound level frequency separation.
In force, after carrying out regular processing to note data, some notes are adjusted in note data, some
Adjustment (because these notes just belong to preset series of sound grouping originally) does not occur for note.At this point it is possible to determine by regular
Sound level frequency range belonging to the frequency of treated each note selects in these sound level frequency ranges determined
The most sound level frequency range of occurrence number.
Step 102, it is based on sound level to sort, multiple sound level frequency separations of corresponding basic sound level is set, this multiple sound level frequency
Rate section includes the most sound level frequency separation of above-mentioned occurrence number.
Wherein, sound level sequence is that sound level specified in music theory sorts, specially C, C#/Db、D、D#/Eb、E、F、F#/
Gb、G、G#/Ab、A、A#/Bb, B sequence.
In force, multiple sound level frequency separations of corresponding basic sound level can be set, keep above-mentioned occurrence number most
Sound level frequency separation is herein among multiple sound level frequency separations, and the corresponding sound level of sound level frequency separation meets sound level sequence.Example
Such as, the most sound level frequency separation of occurrence number is sound level frequency separation 33, and sound level frequency separation 31 can be arranged and correspond to C sounds
Grade, sound level frequency separation 33 correspond to D sound levels, and sound level frequency separation 35 corresponds to E sound levels, and so on, at this time it can be deduced that sound level
Frequency separation 32 corresponds to C#/DbSound level, sound level frequency separation 34 correspond to D#/EbSound level, etc., furthermore it is also possible to deduce, sound level
Frequency separation 21, sound level frequency separation 11, sound level frequency separation 41 etc. correspond to C sound levels, because of them and sound level frequency separation
The one or more octaves of 31 differences.
Optionally, in addition to determining by the sound level frequency separation belonging to regular treated each note, occurrence number
Most sound level frequency separations can also be determined by the sound level frequency separation belonging to regular treated each note, going out
Occurrence sound level frequency separation more for several times.In turn, when more if there is the occurrence number of secondary more sound level frequency separation for several times,
It can be also configured as to the sound level frequency separation of corresponding basic sound level.Corresponding processing can be as follows:
Situation one, if there is the secondary sound that the occurrence number of more sound level frequency separations includes with above-mentioned note data for several times
The ratio for according with number is less than or equal to predetermined threshold value (such as 20%), then is based on sound level and sorts, and the multiple of corresponding basic sound level are arranged
Sound level frequency separation, this multiple sound level frequency separation include the most sound level frequency separation of occurrence number.
Specifically, if there is the secondary sound that the occurrence number of more sound level frequency separations includes with above-mentioned note data for several times
The ratio for according with number is less than or equal to predetermined threshold value, then the most sound level frequency separation of occurrence number is arranged and corresponds to C sound levels, is based on
Sound level sorts, and corresponds to the sound level frequency separation of C sound levels, multiple sound level frequency separations of the corresponding other basic sound levels of setting.
For example, the most sound level frequency separation of occurrence number is sound level frequency separation 35, then sound level frequency can be arranged
Section 35 corresponds to C sound levels, sound level frequency separation 37 corresponds to D sound levels, sound level frequency separation 39 corresponds to E sound levels, sound level frequency separation
310 correspond to F sound levels, sound level frequency separation 312 corresponds to G sound levels, 32 corresponding A sound level of sound level frequency separation, sound level frequency separation 34
Corresponding B sound levels, the corresponding sound level of other all sound level frequency separations can deduce according to above-mentioned setting.
Situation two, if there is the secondary sound that the occurrence number of more sound level frequency separations includes with above-mentioned note data for several times
The ratio for according with number is more than predetermined threshold value, then is based on sound level and sorts, and multiple sound level frequency separations of corresponding basic sound level are arranged, this
Multiple sound level frequency separations include the most sound level frequency separation of occurrence number and the secondary more sound level frequency separation of occurrence number.
Specifically, can be with as shown in Fig. 2, carrying out in accordance with the following steps:
Step S1, if there is the secondary note number that the occurrence number of more sound level frequency separations includes with note data for several times
Purpose ratio is more than predetermined threshold value, then the serial number N when the more sound level frequency separation of occurrence number time in the grouping of the preset series of sound
The sound level frequency separation most more than occurrence number determines diff=N-M, when N is small in the serial number M during the preset series of sound is grouped
When M, diff=N-M+12 is determined.
Wherein, diff is a median for subsequently calculating
Step S2 is handled in the following way according to the difference of diff values:If diff is 1,3,8,10, it is determined that M adds
Upper diff is again divided by 12 remainder is serial number P, and setting serial number P corresponding sound level frequency separations in the grouping of the preset series of sound correspond to
C sound levels;If diff be 6, it is determined that M plus 7 again divided by 12 remainder be serial number Q, setting serial number Q the preset series of sound grouping in
Corresponding sound level frequency separation corresponds to C sound levels;If diff is the numerical value except 1,3,6,8,10, it is most that occurrence number is set
Sound level frequency separation corresponds to C sound levels.
Step S3 is sorted based on sound level, and corresponds to the sound level frequency separation of C sound levels, the corresponding other basic sound levels of setting
Multiple sound level frequency separations.
The processing of the step is referred to content above.Based on the processing of above-mentioned several steps, then occurrence can be provided
The most sound level frequency separation of more sound level frequency separation and occurrence number is all corresponding with basic sound level for several times.
Step 103, in above-mentioned note data, the note of basic sound level is not corresponded to for affiliated sound level frequency separation, it will
The frequency values of the note are adjusted in the sound level frequency separation of corresponding basic sound level, obtain revised note data.
In force, by the processing of above-mentioned steps, it may be determined that each corresponding sound level of sound level frequency separation, it can also
It is corresponding basic sound level which sound level frequency separation determines, which has, which sound level frequency separation does not correspond to basic sound level.Into one
Step, for the note in note data, the sound level frequency separation belonging to note is determined, if the sound level frequency zones belonging to note
Between correspond to basic sound level, it may be considered that the note is correct, need not correct, if the sound level frequency separation belonging to note
Basic sound level is not corresponded to, then is based on Principles of Acoustics, such note generates discomfort when user can be caused to listen to note data,
It is considered that the note is the modified note of needs of mistake, the sound level frequency separation of a corresponding basic sound level can be selected,
The frequency values of the note are adjusted in the sound level frequency separation.It may be adjusted to the centre frequency of the sound level frequency separation.
It optionally, can be basic in each correspondence in the sound level frequency separation of one corresponding basic sound level of above-mentioned selection
In the sound level frequency separation of sound level, selection and the immediate sound level frequency separation of the note frequencies, because, if belonging to note
Sound level frequency separation does not correspond to basic sound level, then, it is certainly corresponding basic with the immediate sound level frequency separation of the note frequencies
Sound level.That is, by the frequency values of note, it is adjusted to the sound level frequency zones of closest with the note frequencies and corresponding basic sound level
Between in.For example, the frequency of note is 177 hertz, sound level frequency separation 36 does not correspond to basic sound level, then can be by the note
Frequency values are adjusted in sound level frequency separation 37, are adjusted to 185 hertz.
Optionally, for above-mentioned the case where carrying out regular processing to note, the processing of step 103 may include such as Fig. 3 institutes
The step of showing:
Step T1 does not correspond to basic announcement in by regular treated each note for affiliated sound level frequency separation
The frequency values of the note are adjusted in the sound level frequency separation of corresponding basic sound level, the note after being adjusted by the note of grade.
Step T2 carries out the frequency values of the note after each adjustment zooming in or out for 2 integral multiple, respectively will be each
Note after adjustment is restored in the grouping of the series of sound where the note before corresponding regular processing, obtains corresponding revised sound
Symbol.
Step T3, in above-mentioned note data, by the note before the corresponding regular processing of the note after each adjustment, modification
For corresponding revised note, revised note data is obtained.
It is corresponding by regular treated note for example, the frequency of some note in note data is 376 hertz
Frequency be 188 hertz, sound level frequency separation 37 does not correspond to basic sound level, then can will be regular after note frequency values tune
Whole in sound level frequency separation 38, the frequency values of the note after adjustment are 196 hertz, are then restored to the note after adjustment pair
In series of sound grouping (i.e. five notes of traditional Chinese music column split) where note before the regular processing answered, i.e., by the frequency values of the note after adjustment
2 are multiplied by, obtains corresponding revised note, the frequency values of revised note are 392, in turn, can will be in note data
The note of corresponding regular processing money, is revised as the revised note.
Optionally, in step 103, " in above-mentioned note data, basic announcement is not corresponded to for affiliated sound level frequency separation
The frequency values of the note are adjusted in the sound level frequency separation of corresponding basic sound level by the note of grade " after, it can also be by audio
The frequency of all notes is finally modified to the centre frequency of affiliated sound level frequency separation in data, and then obtains revised note
Data.
It should be noted that the frequency of note is carry out various modifications in above-mentioned processing procedure, during modification, note
Frequency belonging to the mark of sound level frequency separation can also change with the variation of frequency.
By the modified processing of above-mentioned note, revised note data can be obtained, after which can be used for
Continuous audio plays, and in playing process, can obtain the mark of the sound level frequency separation of each note, sound is inquired in table 1
The corresponding centre frequency of grade frequency separation, and then it is based on the corresponding centre frequency of each note, sart point in time and duration, it plays
Note data.
In the embodiment of the present invention, each note that the note data that obtains target song includes determines belonging to each note
Sound level frequency separation in, the most sound level frequency separation of occurrence number is sorted based on sound level, and the more of corresponding basic sound level are arranged
A sound level frequency separation, this multiple sound level frequency separation includes the most sound level frequency separation of above-mentioned occurrence number, above-mentioned
In note data, the note of basic sound level is not corresponded to for affiliated sound level frequency separation, the frequency values of the note are adjusted to pair
In the sound level frequency separation for answering basic sound level, revised note data is obtained.In this way, can make in revised note data
Note belong to basic sound level, from the angle of acoustics, this can improve the comfort of listening to of note data, that is, realize note repair
Just, to which this programme can realize note amendment in the case of no standard note data.Moreover, user records song sometimes
When bent, rising tune or falling tone can be carried out on the basis of standard note, it can be by note number that user sings by routine techniques
According to standard note data are revised as, in this way, revised note data does not want in user on the tune sung that amendment is mistake really
, and scheme provided in an embodiment of the present invention is in this case, can't change the tune of user, is not in routine techniques
There are the problem of.
Based on the same technical idea, the embodiment of the present invention additionally provides a kind of modified device of note, which can be with
It is the terminal or server in above-described embodiment, as shown in figure 4, the device includes:
Determining module 410, each note that the note data for obtaining target song includes, determines belonging to each note
Sound level frequency separation in, the most sound level frequency separation of occurrence number;
Setup module 420, for being sorted based on sound level, multiple sound level frequency separations of the corresponding basic sound level of setting are described
Multiple sound level frequency separations include the most sound level frequency separation of the occurrence number;
Correcting module 430, in the note data, basic sound level not to be corresponded to for affiliated sound level frequency separation
The frequency values of the note are adjusted in the sound level frequency separation of corresponding basic sound level, obtain revised note number by note
According to.
Optionally, the determining module 410, is used for:
The frequency values for each note for including to the note data carry out zooming in or out for 2 integral multiple, respectively will
In the regular grouping to the preset series of sound of each note;
It determines by the sound level frequency separation belonging to regular treated each note, the most sound level frequency of occurrence number
Rate section.
Optionally, the correcting module 430, is used for:
In by regular treated each note, the sound of basic sound level is not corresponded to for affiliated sound level frequency separation
The frequency values of the note are adjusted in the sound level frequency separation of corresponding basic sound level, the note after being adjusted by symbol;
The frequency values of note after each adjustment are carried out with zooming in or out for 2 integral multiple, after each adjusting respectively
Note be restored in the grouping of the series of sound where the note before corresponding regular processing, obtain corresponding revised note;
In the note data, the note before the corresponding regular processing of the note after each adjustment is revised as corresponding to
Revised note, obtain revised note data.
Optionally, the determining module 410, is additionally operable to:It determines by the sound level belonging to regular treated each note
In frequency separation, the more sound level frequency separation of occurrence number time;
The setup module 420, is used for:
If the note that the occurrence number of the more sound level frequency separation of the occurrence number time includes with the note data
The ratio of number is less than or equal to predetermined threshold value, then is based on sound level and sorts, and multiple sound level frequency zones of corresponding basic sound level are arranged
Between, the multiple sound level frequency separation includes the most sound level frequency separation of the occurrence number;
If the note that the occurrence number of the more sound level frequency separation of the occurrence number time includes with the note data
The ratio of number is more than predetermined threshold value, then is based on sound level and sorts, and multiple sound level frequency separations of corresponding basic sound level are arranged, described
Multiple sound level frequency separations include the most sound level frequency separation of the occurrence number and the secondary more sound level of the occurrence number
Frequency separation.
Optionally, the setup module 420, is used for:
If the note that the occurrence number of the more sound level frequency separation of the occurrence number time includes with the note data
The ratio of number is less than or equal to predetermined threshold value, then the most sound level frequency separation of the occurrence number is arranged and corresponds to C sound levels, base
It sorts in sound level, and corresponds to the sound level frequency separation of C sound levels, multiple sound level frequency separations of the corresponding other basic sound levels of setting;
If the note that the occurrence number of the more sound level frequency separation of the occurrence number time includes with the note data
The ratio of number is more than predetermined threshold value, then when the more sound level frequency separation of the occurrence number time is grouped in the preset series of sound
In serial number N when being more than serial number M of the most sound level frequency separation of the occurrence number in the preset series of sound grouping, really
Determine diff=N-M, when N is less than M, determines diff=N-M+12;According to the difference of diff values, handle in the following way:
If diff be 1,3,8,10, it is determined that M plus diff again divided by 12 remainder be serial number P, setting serial number P in the preset sound
Corresponding sound level frequency separation corresponds to C sound levels in column split;If diff be 6, it is determined that M plus 7 again divided by 12 remainder be sequence
Number Q, setting serial number the Q corresponding sound level frequency separation in the preset series of sound grouping correspond to C sound levels;If diff be 1,3,6,
8, the numerical value except 10, then be arranged the most sound level frequency separation of the occurrence number and correspond to C sound levels;It is sorted based on sound level, and
The sound level frequency separation of corresponding C sound levels, multiple sound level frequency separations of the corresponding other basic sound levels of setting.
Optionally, the correcting module 430, is used for:
By the frequency values of the note, it is adjusted to the sound level frequency of closest with the note frequencies and corresponding basic sound level
In section.
In the embodiment of the present invention, each note that the note data that obtains target song includes determines belonging to each note
Sound level frequency separation in, the most sound level frequency separation of occurrence number is sorted based on sound level, and the more of corresponding basic sound level are arranged
A sound level frequency separation, this multiple sound level frequency separation includes the most sound level frequency separation of above-mentioned occurrence number, above-mentioned
In note data, the note of basic sound level is not corresponded to for affiliated sound level frequency separation, the frequency values of the note are adjusted to pair
In the sound level frequency separation for answering basic sound level, revised note data is obtained.In this way, can make in revised note data
Note belong to basic sound level, from the angle of acoustics, this can improve the comfort of listening to of note data, that is, realize note repair
Just, to which this programme can realize note amendment in the case of no standard note data.
It should be noted that:Above-described embodiment provide acquisition song information device when obtaining song information, only with
The division progress of above-mentioned each function module, can be as needed and by above-mentioned function distribution by not for example, in practical application
Same function module is completed, i.e., the internal structure of equipment is divided into different function modules, to complete whole described above
Or partial function.In addition, the device for the acquisition song information that above-described embodiment provides is implemented with the method for obtaining song information
Example belongs to same design, and specific implementation process refers to embodiment of the method, and which is not described herein again.
Referring to FIG. 5, it illustrates the structural schematic diagram of the terminal involved by the embodiment of the present invention, which can be used for
The modified method of note provided in above-described embodiment is provided.Specifically:
Terminal 1200 may include RF (Radio Frequency, radio frequency) circuit 110, include one or more
The memory 120 of computer readable storage medium, input unit 130, display unit 140, sensor 150, voicefrequency circuit 160,
WiFi (wireless fidelity, Wireless Fidelity) module 170, include there are one or more than one processing core processing
The components such as device 180 and power supply 190.It will be understood by those skilled in the art that terminal structure shown in Fig. 5 is not constituted pair
The restriction of terminal may include either combining certain components or different component cloth than illustrating more or fewer components
It sets.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 equipment 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, and processor 180 is stored in memory 120 by operation
Software program and module, to perform various functions application and data processing.Memory 120 can include mainly storage journey
Sequence area and storage data field, wherein storing program area can storage program area, the application program (ratio needed at least one function
Such as sound-playing function, image player function) etc.;Storage data field can be stored uses created number according to terminal 1200
According to (such as audio data, phone directory etc.) etc..In addition, memory 120 may include high-speed random access memory, can also wrap
Include nonvolatile memory, a for example, at least disk memory, flush memory device or other volatile solid-state parts.
Correspondingly, memory 120 can also include Memory Controller, to provide processor 180 and input unit 130 to memory
120 access.
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 equipments 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 attachment device 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 equipments 132.Specifically,
Other input equipments 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 1200 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 Figure 5, 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 1200 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 1200 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 1200 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 1200.Sound
The transformed electric signal of the audio data received can be transferred to loud speaker 161, is converted to by loud speaker 161 by frequency circuit 160
Voice signal exports;On the other hand, the voice signal of collection is converted to electric signal by microphone 162, is received by voicefrequency circuit 160
After be converted to audio data, it is such as another to be sent to through RF circuits 110 then by after the processing of audio data output processor 180
Terminal, or audio data is exported to memory 120 to be further processed.Voicefrequency circuit 160 is also possible that earplug is inserted
Hole, to provide the communication of peripheral hardware earphone and terminal 1200.
WiFi belongs to short range wireless transmission technology, and terminal 1200 can help user to receive and dispatch electricity by WiFi module 170
Sub- mail, browsing webpage and access streaming video etc., it has provided wireless broadband internet to the user and has accessed.Although Fig. 5 shows
Go out WiFi module 170, but it is understood that, and it is not belonging to must be configured into for terminal 1200, it completely can be according to need
It to be omitted in the range for the essence for not changing invention.
Processor 180 is the control centre of terminal 1200, utilizes each portion of various interfaces and connection whole mobile phone
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 1200, to carry out integral monitoring to mobile phone.Optionally, it handles
Device 180 may include one or more processing cores;Preferably, processor 180 can integrate application processor and modulation /demodulation processing
Device, wherein the main processing operation system of application processor, user interface and application program etc., modem processor is mainly located
Reason wireless communication.It is understood that above-mentioned modem processor can not also be integrated into processor 180.
Terminal 1200 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 1200 can also include camera, bluetooth module etc., and details are not described herein.Specifically at this
In embodiment, the display unit of terminal 1200 is touch-screen display, terminal 1200 further include have memory and one or
More than one program, either more than one program is stored in memory and is configured to by one or one for one of them
A above processor execution states one or more than one program includes the instruction for being operated below:
Each note that the note data of target song includes is obtained, determines the sound level frequency separation belonging to each note
In, the most sound level frequency separation of occurrence number;
It is sorted based on sound level, multiple sound level frequency separations of corresponding basic sound level, the multiple sound level frequency separation is set
It include the most sound level frequency separation of the occurrence number;
In the note data, the note of basic sound level is not corresponded to for affiliated sound level frequency separation, by the note
Frequency values be adjusted in the sound level frequency separation of corresponding basic sound level, obtain revised note data.
Optionally, in the sound level frequency separation belonging to each note of the determination, the most sound level frequency zones of occurrence number
Between, including:
The frequency values for each note for including to the note data carry out zooming in or out for 2 integral multiple, respectively will
In the regular grouping to the preset series of sound of each note;
It determines by the sound level frequency separation belonging to regular treated each note, the most sound level frequency of occurrence number
Rate section.
Optionally, described in the note data, do not correspond to the note of basic sound level for affiliated sound level frequency separation,
The frequency values of the note are adjusted in the sound level frequency separation of corresponding basic sound level, obtain revised note data, wrapped
It includes:
In by regular treated each note, the sound of basic sound level is not corresponded to for affiliated sound level frequency separation
The frequency values of the note are adjusted in the sound level frequency separation of corresponding basic sound level, the note after being adjusted by symbol;
The frequency values of note after each adjustment are carried out with zooming in or out for 2 integral multiple, after each adjusting respectively
Note be restored in the grouping of the series of sound where the note before corresponding regular processing, obtain corresponding revised note;
In the note data, the note before the corresponding regular processing of the note after each adjustment is revised as corresponding to
Revised note, obtain revised note data.
Optionally, the method further includes:It determines by the sound level frequency separation belonging to regular treated each note
In, the more sound level frequency separation of occurrence number time;
It is described to be sorted based on sound level, multiple sound level frequency separations of corresponding basic sound level, the multiple sound level frequency are set
Section includes the most sound level frequency separation of the occurrence number, including:
If the note that the occurrence number of the more sound level frequency separation of the occurrence number time includes with the note data
The ratio of number is less than or equal to predetermined threshold value, then is based on sound level and sorts, and multiple sound level frequency zones of corresponding basic sound level are arranged
Between, the multiple sound level frequency separation includes the most sound level frequency separation of the occurrence number;
If the note that the occurrence number of the more sound level frequency separation of the occurrence number time includes with the note data
The ratio of number is more than predetermined threshold value, then is based on sound level and sorts, and multiple sound level frequency separations of corresponding basic sound level are arranged, described
Multiple sound level frequency separations include the most sound level frequency separation of the occurrence number and the secondary more sound level of the occurrence number
Frequency separation.
Optionally, if the occurrence number of the more sound level frequency separation of the occurrence number time and the note data
Including the ratio of number of notes be less than or equal to predetermined threshold value, then be based on sound level and sort, the multiple of corresponding basic sound level are set
Sound level frequency separation, the multiple sound level frequency separation include the most sound level frequency separation of the occurrence number, including:
If the note that the occurrence number of the more sound level frequency separation of the occurrence number time includes with the note data
The ratio of number is less than or equal to predetermined threshold value, then the most sound level frequency separation of the occurrence number is arranged and corresponds to C sound levels, base
It sorts in sound level, and corresponds to the sound level frequency separation of C sound levels, multiple sound level frequency separations of the corresponding other basic sound levels of setting;
If the occurrence number of the more sound level frequency separation of the occurrence number time includes with the note data
The ratio of number of notes is more than predetermined threshold value, then is based on sound level and sorts, and multiple sound level frequency separations of corresponding basic sound level are arranged,
The multiple sound level frequency separation includes that the most sound level frequency separation of the occurrence number and the occurrence number time are more
Sound level frequency separation, including:
If the note that the occurrence number of the more sound level frequency separation of the occurrence number time includes with the note data
The ratio of number is more than predetermined threshold value, then when the more sound level frequency separation of the occurrence number time is grouped in the preset series of sound
In serial number N when being more than serial number M of the most sound level frequency separation of the occurrence number in the preset series of sound grouping, really
Determine diff=N-M, when N is less than M, determines diff=N-M+12;
According to the difference of diff values, handle in the following way:If diff is 1,3,8,10, it is determined that M adds diff
Again divided by 12 remainder is serial number P, and setting serial number P corresponding sound level frequency separations in the preset series of sound grouping correspond to C
Sound level;If diff is 6, it is determined that again divided by 12 remainder is serial number Q plus 7, setting serial number Q is in the preset series of sound point by M
Corresponding sound level frequency separation corresponds to C sound levels in group;If diff is the numerical value except 1,3,6,8,10, go out occurrence described in setting
The most sound level frequency separation of number corresponds to C sound levels;
It is sorted based on sound level, and corresponds to the sound level frequency separation of C sound levels, multiple sound levels of the corresponding other basic sound levels of setting
Frequency separation.
Optionally, the frequency values by the note are adjusted in the sound level frequency separation of corresponding basic sound level, including:
By the frequency values of the note, it is adjusted to the sound level frequency of closest with the note frequencies and corresponding basic sound level
In section.
In the embodiment of the present invention, each note that the note data that obtains target song includes determines belonging to each note
Sound level frequency separation in, the most sound level frequency separation of occurrence number is sorted based on sound level, and the more of corresponding basic sound level are arranged
A sound level frequency separation, this multiple sound level frequency separation includes the most sound level frequency separation of above-mentioned occurrence number, above-mentioned
In note data, the note of basic sound level is not corresponded to for affiliated sound level frequency separation, the frequency values of the note are adjusted to pair
In the sound level frequency separation for answering basic sound level, revised note data is obtained.In this way, can make in revised note data
Note belong to basic sound level, from the angle of acoustics, this can improve the comfort of listening to of note data, that is, realize note repair
Just, to which this programme can realize note amendment in the case of no standard note data.
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 (10)
1. a kind of modified method of note, which is characterized in that the method includes:
Each note that the note data of target song includes is obtained, to the frequency values for each note that the note data includes
Zooming in or out for 2 integral multiple is carried out, respectively by the regular grouping to the preset series of sound of each note, determines and passes through regular place
In the sound level frequency separation belonging to each note after reason, the most sound level frequency separation of occurrence number;
It is sorted based on sound level, multiple sound level frequency separations of corresponding basic sound level is set, are wrapped in the multiple sound level frequency separation
Include the most sound level frequency separation of the occurrence number;
In the note data, the note of basic sound level is not corresponded to for affiliated sound level frequency separation, by the frequency of the note
Rate value is adjusted in the sound level frequency separation of corresponding basic sound level, obtains revised note data.
2. according to the method described in claim 1, it is characterized in that, described in the note data, for affiliated sound level frequency
Rate section does not correspond to the note of basic sound level, and the frequency values of the note are adjusted to the sound level frequency separation of corresponding basic sound level
In, revised note data is obtained, including:
In by regular treated each note, the note of basic sound level not correspond to for affiliated sound level frequency separation, general
The frequency values of the note are adjusted in the sound level frequency separation of corresponding basic sound level, the note after being adjusted;
The frequency values of note after each adjustment are carried out with zooming in or out for 2 integral multiple, respectively by the sound after each adjustment
During the series of sound where according with the note before being restored to corresponding regular processing is grouped, corresponding revised note is obtained;
In the note data, by the note before the corresponding regular processing of the note after each adjustment, it is revised as corresponding repair
Note after just obtains revised note data.
3. according to the method described in claim 1, it is characterized in that, the method further includes:Determination process is regular, and treated
In sound level frequency separation belonging to each note, the more sound level frequency separation of occurrence number time;
It is described to be sorted based on sound level, multiple sound level frequency separations of corresponding basic sound level, the multiple sound level frequency separation are set
Include the most sound level frequency separation of the occurrence number, including:
If the number of notes that the occurrence number of the more sound level frequency separation of the occurrence number time includes with the note data
Ratio be less than or equal to predetermined threshold value, then be based on sound level and sort, multiple sound level frequency separations of corresponding basic sound level, institute are set
It includes the most sound level frequency separation of the occurrence number to state multiple sound level frequency separations;
If the number of notes that the occurrence number of the more sound level frequency separation of the occurrence number time includes with the note data
Ratio be more than predetermined threshold value, then be based on sound level and sort, multiple sound level frequency separations of corresponding basic sound level are set, it is the multiple
Sound level frequency separation includes the most sound level frequency separation of the occurrence number and the secondary more sound level frequency of the occurrence number
Section.
4. if according to the method described in claim 3, the it is characterized in that, secondary more sound level frequency zones of the occurrence number
Between the ratio of occurrence number and the note data number of notes that includes be less than or equal to predetermined threshold value, then be based on sound level and arrange
Multiple sound level frequency separations of corresponding basic sound level are arranged in sequence, and the multiple sound level frequency separation includes the occurrence number
Most sound level frequency separations, including:
If the number of notes that the occurrence number of the more sound level frequency separation of the occurrence number time includes with the note data
Ratio be less than or equal to predetermined threshold value, then the most sound level frequency separation of the occurrence number is set and corresponds to C sound levels, based on sound
Grade sequence, and the sound level frequency separation of C sound levels is corresponded to, multiple sound level frequency separations of the corresponding other basic sound levels of setting;
If the note that the occurrence number of the more sound level frequency separation of the occurrence number time includes with the note data
The ratio of number is more than predetermined threshold value, then is based on sound level and sorts, and multiple sound level frequency separations of corresponding basic sound level are arranged, described
Multiple sound level frequency separations include the most sound level frequency separation of the occurrence number and the secondary more sound level of the occurrence number
Frequency separation, including:
If the number of notes that the occurrence number of the more sound level frequency separation of the occurrence number time includes with the note data
Ratio be more than predetermined threshold value, then when the more sound level frequency separation of the occurrence number time is in the preset series of sound grouping
When serial number N is more than serial number M of the most sound level frequency separation of the occurrence number in the preset series of sound grouping, determine
Diff=N-M determines diff=N-M+12 when N is less than M;
According to the difference of diff values, handle in the following way:If diff is 1,3,8,10, it is determined that M is removed again plus diff
Using 12 remainder as serial number P, setting serial number P corresponding sound level frequency separations in the preset series of sound grouping correspond to C sound levels;
If diff is 6, it is determined that again divided by 12 remainder is serial number Q plus 7, setting serial number Q is right in the preset series of sound grouping by M
The sound level frequency separation answered corresponds to C sound levels;If diff is the numerical value except 1,3,6,8,10, it is most that the occurrence number is set
Sound level frequency separation correspond to C sound levels;
It is sorted based on sound level, and corresponds to the sound level frequency separation of C sound levels, multiple sound level frequencies of the corresponding other basic sound levels of setting
Section.
5. according to the described method of any one of claim 1-4, which is characterized in that the frequency values by the note adjust
Into the sound level frequency separation of corresponding basic sound level, including:
By the frequency values of the note, it is adjusted to the sound level frequency separation of closest with the note frequencies and corresponding basic sound level
In.
6. a kind of modified device of note, which is characterized in that described device includes:
Determining module, each note that the note data for obtaining target song includes, to the note data include it is every
The frequency values of a note carry out zooming in or out for 2 integral multiple, are grouped to the preset series of sound by each note is regular respectively,
It determines by the sound level frequency separation belonging to regular treated each note, the most sound level frequency separation of occurrence number;
Multiple sound level frequency separations of corresponding basic sound level, the multiple sound level is arranged for sorting based on sound level in setup module
Frequency separation includes the most sound level frequency separation of the occurrence number;
Correcting module will in the note data, not corresponding to the note of basic sound level for affiliated sound level frequency separation
The frequency values of the note are adjusted in the sound level frequency separation of corresponding basic sound level, obtain revised note data.
7. device according to claim 6, which is characterized in that the correcting module is used for:
In by regular treated each note, the note of basic sound level not correspond to for affiliated sound level frequency separation, general
The frequency values of the note are adjusted in the sound level frequency separation of corresponding basic sound level, the note after being adjusted;
The frequency values of note after each adjustment are carried out with zooming in or out for 2 integral multiple, respectively by the sound after each adjustment
During the series of sound where according with the note before being restored to corresponding regular processing is grouped, corresponding revised note is obtained;
In the note data, by the note before the corresponding regular processing of the note after each adjustment, it is revised as corresponding repair
Note after just obtains revised note data.
8. device according to claim 6, which is characterized in that the determining module is additionally operable to:It determines and passes through regular processing
In the sound level frequency separation belonging to each note afterwards, the more sound level frequency separation of occurrence number time;
The setup module, is used for:
If the number of notes that the occurrence number of the more sound level frequency separation of the occurrence number time includes with the note data
Ratio be less than or equal to predetermined threshold value, then be based on sound level and sort, multiple sound level frequency separations of corresponding basic sound level, institute are set
It includes the most sound level frequency separation of the occurrence number to state multiple sound level frequency separations;
If the number of notes that the occurrence number of the more sound level frequency separation of the occurrence number time includes with the note data
Ratio be more than predetermined threshold value, then be based on sound level and sort, multiple sound level frequency separations of corresponding basic sound level are set, it is the multiple
Sound level frequency separation includes the most sound level frequency separation of the occurrence number and the secondary more sound level frequency of the occurrence number
Section.
9. device according to claim 8, which is characterized in that the setup module is used for:
If the number of notes that the occurrence number of the more sound level frequency separation of the occurrence number time includes with the note data
Ratio be less than or equal to predetermined threshold value, then the most sound level frequency separation of the occurrence number is set and corresponds to C sound levels, based on sound
Grade sequence, and the sound level frequency separation of C sound levels is corresponded to, multiple sound level frequency separations of the corresponding other basic sound levels of setting;
If the number of notes that the occurrence number of the more sound level frequency separation of the occurrence number time includes with the note data
Ratio be more than predetermined threshold value, then when the more sound level frequency separation of the occurrence number time is in the preset series of sound grouping
When serial number N is more than serial number M of the most sound level frequency separation of the occurrence number in the preset series of sound grouping, determine
Diff=N-M determines diff=N-M+12 when N is less than M;According to the difference of diff values, handle in the following way:If
Diff be 1,3,8,10, it is determined that M plus diff again divided by 12 remainder be serial number P, setting serial number P in the preset series of sound
Corresponding sound level frequency separation corresponds to C sound levels in grouping;If diff be 6, it is determined that M plus 7 again divided by 12 remainder be serial number
Q, setting serial number the Q corresponding sound level frequency separation in the preset series of sound grouping correspond to C sound levels;If diff be 1,3,6,8,
Numerical value except 10 is then arranged the most sound level frequency separation of the occurrence number and corresponds to C sound levels;It is sorted based on sound level and right
Answer the sound level frequency separation of C sound levels, multiple sound level frequency separations of the corresponding other basic sound levels of setting.
10. according to the device described in any one of claim 6-9, which is characterized in that the correcting module is used for:
By the frequency values of the note, it is adjusted to the sound level frequency separation of closest with the note frequencies and corresponding basic sound level
In.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610909169.8A CN106548768B (en) | 2016-10-18 | 2016-10-18 | A kind of modified method and apparatus of note |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610909169.8A CN106548768B (en) | 2016-10-18 | 2016-10-18 | A kind of modified method and apparatus of note |
Publications (2)
Publication Number | Publication Date |
---|---|
CN106548768A CN106548768A (en) | 2017-03-29 |
CN106548768B true CN106548768B (en) | 2018-09-04 |
Family
ID=58369412
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201610909169.8A Active CN106548768B (en) | 2016-10-18 | 2016-10-18 | A kind of modified method and apparatus of note |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106548768B (en) |
Families Citing this family (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108364528A (en) * | 2018-04-17 | 2018-08-03 | 南通理工学院 | Piano playing note correction system and method |
CN111326171B (en) * | 2020-01-19 | 2023-06-23 | 成都潜在人工智能科技有限公司 | Method and system for extracting vocal melody based on numbered musical notation recognition and fundamental frequency extraction |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1674089A (en) * | 2004-03-22 | 2005-09-28 | Lg电子有限公司 | Apparatus and method for processing bell sound |
CN102682762A (en) * | 2011-03-15 | 2012-09-19 | 新加坡科技研究局 | Harmony synthesizer and method for harmonizing vocal signals |
CN104143324A (en) * | 2014-07-14 | 2014-11-12 | 电子科技大学 | Musical tone note identification method |
CN105845115A (en) * | 2016-03-16 | 2016-08-10 | 腾讯科技(深圳)有限公司 | Song mode determining method and song mode determining device |
Family Cites Families (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US7102072B2 (en) * | 2003-04-22 | 2006-09-05 | Yamaha Corporation | Apparatus and computer program for detecting and correcting tone pitches |
US8847056B2 (en) * | 2012-10-19 | 2014-09-30 | Sing Trix Llc | Vocal processing with accompaniment music input |
US9773426B2 (en) * | 2015-02-01 | 2017-09-26 | Board Of Regents, The University Of Texas System | Apparatus and method to facilitate singing intended notes |
-
2016
- 2016-10-18 CN CN201610909169.8A patent/CN106548768B/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1674089A (en) * | 2004-03-22 | 2005-09-28 | Lg电子有限公司 | Apparatus and method for processing bell sound |
CN102682762A (en) * | 2011-03-15 | 2012-09-19 | 新加坡科技研究局 | Harmony synthesizer and method for harmonizing vocal signals |
CN104143324A (en) * | 2014-07-14 | 2014-11-12 | 电子科技大学 | Musical tone note identification method |
CN105845115A (en) * | 2016-03-16 | 2016-08-10 | 腾讯科技(深圳)有限公司 | Song mode determining method and song mode determining device |
Also Published As
Publication number | Publication date |
---|---|
CN106548768A (en) | 2017-03-29 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN104967900B (en) | A kind of method and apparatus generating video | |
CN106210755B (en) | A kind of methods, devices and systems playing live video | |
CN105788612B (en) | A kind of method and apparatus detecting sound quality | |
WO2017121353A1 (en) | Method and device for displaying control | |
CN106782460B (en) | The method and apparatus for generating music score | |
CN103984493B (en) | Control method by sliding and terminal | |
CN105549740B (en) | A kind of method and apparatus of playing audio-fequency data | |
CN106454404A (en) | Live video playing method, device and system | |
CN104850406B (en) | A kind of method and apparatus for switching the page | |
CN103309673A (en) | Session processing method and device based on gesture, and terminal equipment | |
CN106328176B (en) | A kind of method and apparatus generating song audio | |
CN106231433B (en) | A kind of methods, devices and systems playing network video | |
CN106782627B (en) | Audio file rerecords method and device | |
CN106210266B (en) | A kind of acoustic signal processing method and audio signal processor | |
CN106384599B (en) | A kind of method and apparatus of distorsion identification | |
CN105185401B (en) | The method and device of synchronized multimedia listed files | |
CN106558299A (en) | The mode switching method and device of audio rendition | |
CN105959482B (en) | A kind of control method and electronic equipment of scene audio | |
CN106210919A (en) | A kind of main broadcaster of broadcasting sings the methods, devices and systems of video | |
CN106599204A (en) | Method and device for recommending multimedia content | |
CN105047185B (en) | A kind of methods, devices and systems obtaining audio accompaniment | |
CN106057213B (en) | A kind of method and apparatus of display voice pitch data | |
CN105550316B (en) | The method for pushing and device of audio list | |
CN106791916A (en) | A kind of methods, devices and systems of recommendation of audio data | |
CN109243488A (en) | Audio-frequency detection, device and storage medium |
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 | ||
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. |
|
GR01 | Patent grant | ||
GR01 | Patent grant |