CN106098058B - Tone line generation method and device - Google Patents

Tone line generation method and device Download PDF

Info

Publication number
CN106098058B
CN106098058B CN201610466693.2A CN201610466693A CN106098058B CN 106098058 B CN106098058 B CN 106098058B CN 201610466693 A CN201610466693 A CN 201610466693A CN 106098058 B CN106098058 B CN 106098058B
Authority
CN
China
Prior art keywords
note
height
information sequence
preset function
function
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
CN201610466693.2A
Other languages
Chinese (zh)
Other versions
CN106098058A (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.)
Tencent Technology Shenzhen Co Ltd
Original Assignee
Tencent Technology Shenzhen 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 Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN201610466693.2A priority Critical patent/CN106098058B/en
Publication of CN106098058A publication Critical patent/CN106098058A/en
Application granted granted Critical
Publication of CN106098058B publication Critical patent/CN106098058B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G10MUSICAL INSTRUMENTS; ACOUSTICS
    • G10LSPEECH ANALYSIS OR SYNTHESIS; SPEECH RECOGNITION; SPEECH OR VOICE PROCESSING; SPEECH OR AUDIO CODING OR DECODING
    • G10L13/00Speech synthesis; Text to speech systems
    • G10L13/08Text analysis or generation of parameters for speech synthesis out of text, e.g. grapheme to phoneme translation, prosody generation or stress or intonation determination
    • G10L13/10Prosody rules derived from text; Stress or intonation

Abstract

The embodiment of the invention discloses a kind of tone line generation method and devices.Present invention method includes:Note information sequence is obtained, each note information includes note height in the note information sequence;To each note height in the note information sequence, the replacement values of the note height are calculated according to preset function using the note height as independent variable, wherein, when the independent variable of the preset function is located in at least partly range of the note height value range, the derived function of the preset function is more than 1;To each note height in the note information sequence, note height is replaced with to the replacement values of the note height, forms new note information sequence;Tone line is shown according to the new note information sequence.

Description

Tone line generation method and device
Technical field
The present invention relates to field of audio processing more particularly to a kind of tone line generation method and devices.
Background technology
K song systems are the combinations of music player and recording software, can both play original singer, can also be the song of user Sound incorporates in the accompaniment of song, audio frequency effect processing can also be carried out to the song of user, finally by the text after audio effect processing Part uploads in network the song for allowing more people to hear oneself.
Existing K songs systematic difference flow is generally:Into after system, user selects song first, and rank is sung subsequently into K Section;The selected song of system plays user, during user sings, system pipes show original singer's tone line of the song with And the tone line that user sings, and scored the performance of user according to the gap of two tone lines.
For system when showing tone line, ordinate is generally note height.However, in practical application, each note in song Note height differ very little, this leads to the tone line fluctuating very little shown so that user is difficult to find out what oneself was sung The gap of tone line and the tone line of song original singer, reduces user experience.
Invention content
An embodiment of the present invention provides a kind of tone line generation method and device, the tone line for generating big rise and fall.
In a first aspect, the present invention provides a kind of tone line generation method, including:
Note information sequence is obtained, each note information includes note height in the note information sequence;
To each note height in the note information sequence, counted according to preset function as independent variable using the note height Calculate the replacement values of the note height, wherein when the independent variable of the preset function is located at the note height value range When at least partly in range, the derived function of the preset function is more than 1;
To each note height in the note information sequence, note height is replaced with into replacing for the note height Value is changed, new note information sequence is formed;
Tone line is shown according to the new note information sequence.
Second aspect, the present invention provide a kind of tone line generating means, including:
Acquisition module, for obtaining note information sequence, each note information includes sound in the note information sequence Symbol height;
Computing module is used for each note height in the note information sequence, using the note height as independent variable The replacement values of the note height are calculated according to preset function, wherein when the independent variable of the preset function is located at the note When in at least partly range of height value range, the derived function of the preset function is more than 1;
Replacement module, for each note height in the note information sequence, note height to be replaced with institute The replacement values for stating note height form new note information sequence;
Display module, for showing tone line according to the new note information sequence.
As can be seen from the above technical solutions, the embodiment of the present invention has the following advantages:
In the present invention, to each note height in the note information sequence, by using preset function and note height The replacement values for calculating the note height, since the derived function of the preset function is greater than 1, then the note information calculated Gap in sequence between the replacement values of each note height is greater than the gap of each note height, in this way, by note information sequence In each note height replace with the new note information sequence formed after the replacement values of the note height, according to the new note information The fluctuating for the tone line that sequence is shown is more obvious compared to the fluctuating of the tone line shown according to former note information sequence, contributes to Improve the usage experience of user.
Description of the drawings
Fig. 1 is the flow diagram of one embodiment of the tone line generation method of the present invention;
Fig. 2 is the tone line that is generated according to the note information sequence in table 1;
Fig. 3 is the tone line that is generated according to the note information sequence in table 2;
Fig. 4 is a kind of structural schematic diagram of embodiment of the tone line generating means of the present invention;
Fig. 5 is a kind of structural schematic diagram of embodiment of the terminal of the present invention.
Specific implementation mode
Referring to Fig. 1, Fig. 1 is the flow diagram of one embodiment of the tone line generation method of the present invention.This implementation In example, tone line generation method includes:
101, note information sequence is obtained, each note information includes note height in the note information sequence.
There are many ways to obtaining note information sequence.For example, in practical application, the note information of song is stored in MIDI (English:Musical Instrument Digital Interface, Chinese:Musical instrument digital interface) in file. MIDI is the electronic communication protocol of an industrial standard, be the performance apparatus (such as synthesizer) such as electronic musical instrument define various notes or Play code.After getting the MIDI files of song, parsed from the MIDI files in the song at the beginning of each note Between, end time (or duration) and note height.Specifically, note height is normally in section [21,108].Solution At the beginning of each note is precipitated, after end time (or duration) and note height, a structure is generally defined Body stores these information.Therefore, when obtaining note information sequence, each note information can be searched from the structure.
However, although note height is normally at, section [21,108] is interior, the note of most of note in the song of part Height is located at an a small range in the section, that is to say, that the difference between most of note in a song is smaller. For example, the note height of most of note is located in section [55,75] in the song of part.
102, to each note height in the note information sequence, institute is calculated according to preset function and the note height State the replacement values of note height, wherein when the independent variable of the preset function is located at the height of the note in the note information sequence When spending in at least partly range of value range, the derived function of the preset function is more than 1.
Since each note height difference in note information sequence is smaller, in the present embodiment, also according to preset function Calculate the corresponding replacement values of each note height.Wherein, when the independent variable of the preset function is located at the note information sequence When in at least partly range of the note height value range in row, the derived function of the preset function is more than 1.Specifically, The maximum note height of value is d in note information sequence, and the note height of value minimum is c, to being located at range [c, d] extremely Two independents variable x1 and x2 within the scope of small part, the corresponding functional values of wherein x1 (namely a note height) (namely note The replacement values of height x1) it is y1, the corresponding functional values of x2 (namely a note height) are y2 (namely the replacements of note height x2 Value), since derived function is more than 1, (y1-y2)/(x1-x2) is more than 1 namely y1-y2 and is more than x1-x2, in this way, will be located at model The variable for enclosing note height substitution preset function in at least partly range of [c, d] falls into a trap enumeration function value as the note height Replacement values, the difference between the replacement values of the note height is greater than the difference between former note height, pulled open note height The distance between degree so that the variation of note height is more obvious.
For concrete example, the preset function is f (x)=(q-p) × (2(x-c)/(d-c)- 1)+p, wherein c believes for note The note height of value minimum in sequence is ceased, d is the maximum note height of value in note information sequence, and [p, q] is described new The preset interval of note height in note information sequence.
103, to each note height in the note information sequence, note height is replaced with into the note height Replacement values, form new note information sequence.
Since the difference in note information sequence at least partly between the replacement values of note height is greater than former note height Between difference each note height in original note information sequence is therefore replaced with into the replacement values of the note height, Form new note information sequence.For concrete example, note information sequence includes three note informations, respectively (35667, 398,71), (36068,264,69) and (36335,622,71), first numerical value wherein in each note information are note Time started, second numerical value are the duration, and third numerical value is note height.71 are substituted into preset function and calculates letter Numerical value is 92, by 69 substitution preset functions fall into a trap enumeration function value be 73, then, replace note height after formed new note letter It is (35667,398,92), (36068,264,73) and (36335,622,92) to cease sequence.
104, tone line is shown according to the new note information sequence.
In the present embodiment, there are many ways to showing tone line according to new note information sequence.For example, new note information sequence Each note information in row includes time started, end time (or duration) and note height, in display tone When line, each note information is a line segment for being parallel to x-axis in xy coordinate planes, wherein the cross of the starting point of the line segment Coordinate be in the note information at the beginning of, the abscissa of terminal is end time (or line segment in the note information Length be duration in the note information), the ordinate of the line segment is the note height in the note information.
In another example each note information is numbered, each number is for uniquely indicating the note information.It is showing When tone line, each note information is a point in xy coordinate planes, wherein the abscissa of the point is the note information Number, ordinate are the note height in the note information.
It is high by using preset function and note to each note height in the note information sequence in the present embodiment Degree calculates the replacement values of the note height, since the derived function of the preset function is greater than 1, then the note letter calculated Gap in breath sequence between the replacement values of each note height is greater than the gap of each note height, in this way, by note information sequence Each note height in row replaces with the new note information sequence formed after the replacement values of the note height, is believed according to the new note The fluctuating for the tone line that breath sequence is shown is more obvious compared to the fluctuating of the tone line shown according to former note information sequence, helps In the usage experience for improving user.
In the present embodiment, preset function can there are many.Preferably, in the present embodiment, when becoming certainly for the preset function Measurement value be located at [c, m] it is interior when, the derived function of the preset function is f1' (x), when the independent variable value position of the preset function When (m, n) is interior, the derived function of the preset function is f2' (x), when the independent variable value of the preset function is located at [n, d] When interior, the derived function of the preset function is f3' (x), wherein d is the maximum value of each note height in note information sequence, c For the minimum value of each note height in note information sequence;M is more than c and is less than n, and n is less than d;f2' (x) is more than 1, f2' (x) is more than f1' (x), and f2' (x) is more than f3‘(x)。
Wherein, preset function can be a smooth curve, can also be piecewise function, this is not restricted.
Since the value of the note height of each note in song is largely focused on the stage casing part (m, n) of [c, d], it is located at The value of head and the tail two parts [c, m] and [n, d] are less, are become to each note height in note information sequence using preset function When changing, since derived function of the independent variable when [c, d] is interior of preset function is more than independent variable leading in [c, m] and [n, d] interior Function can replace with the value range mistake after the replacement values of the note height to avoid each note height in note information sequence Greatly, and then avoid the space occupied by final shown tone line excessive.
Further, it is preferred that f1' (x) and f3' (x) is respectively less than 1.Namely in use preset function in note information sequence It is to be stretched to the gap between each note height for being located in (m, n), and to being located at when each note height is converted The gap between each note height in [c, m] and [n, d] is compressed, and can be further avoided in note information sequence in this way It is excessive that each note height replaces with the value range after the replacement values of the note height, may be implemented according to note information sequence Tone line is generated according to new note information sequence in the space of the tone line generated.
Below to calculated according to preset function and the note height note height replacement values two methods into Row illustrates.
Citing one, preset function are Wherein, n is integer, and [p, q] is the preset interval of note height in the new note information sequence.Determine preset function Afterwards, note height is substituted into the preset function and calculates functional value, the functional value is the replacement values of the note height.
Citing two, preset function are Wherein, n is integer, and [p, q] is the preset interval of note height in the new note information sequence.Determine preset function Afterwards, note height is substituted into the preset function and calculates functional value, the functional value is the replacement values of the note height.
Understand the present invention for aspect, the tone line generation method of the present invention is carried out with reference to a practical application scene Citing description.
As shown in table 1 below, the following table 1 is each specific value of note information in note information sequence, wherein each note information At the beginning of including note, duration and note height.
Table 1
Determine preset functionWherein, p=0, q =100, c=61, d=71.Each note height in upper table is substituted into successively in the preset function, each note height is calculated Replacement values, obtain new note information sequence, and be numbered successively to each note information, as shown in table 2 below.
Table 2
After generating new note information sequence, tone line is generated on xy coordinate surfaces according to the new note information sequence.Specifically , each note information is a point in xy coordinate planes in new note information sequence, wherein the abscissa of the point is should The number of note information, ordinate are the note height in the note information.As shown in Fig. 2, upper figure is according in table 1 in Fig. 2 The tone line that is generated of note information sequence, figure below is the tone line that is generated according to the note information sequence in table 2.
Above to the present invention tone line generation method be described, below to the present invention tone line generating means into Row description.
As shown in figure 4, Fig. 4 is a kind of structural schematic diagram of embodiment of the tone line generating means of the present invention.This implementation In example, tone line generating means 300 include:
Acquisition module 301, for obtaining note information sequence, each note information includes in the note information sequence Note height;
Computing module 302, for being from change with the note height to each note height in the note information sequence Amount calculates the replacement values of the note height according to preset function, wherein when the independent variable of the preset function is located at the sound When according in at least partly range of height value range, the derived function of the preset function is more than 1;
Replacement module 303, for each note height in the note information sequence, note height to be replaced with The replacement values of the note height form new note information sequence;
Display module 304, for showing tone line according to the new note information sequence.
It is high by using preset function and note to each note height in the note information sequence in the present embodiment Degree calculates the replacement values of the note height, since the derived function of the preset function is greater than 1, then the note letter calculated Gap in breath sequence between the replacement values of each note height is greater than the gap of each note height, in this way, by note information sequence Each note height in row replaces with the new note information sequence formed after the replacement values of the note height, is believed according to the new note The fluctuating for the tone line that breath sequence is shown is more obvious compared to the fluctuating of the tone line shown according to former note information sequence, helps In the usage experience for improving user.
Optionally, the maximum value of note height is d in the note information sequence, and the minimum value of note height is c;Work as institute State preset function independent variable value be located at [c, m] it is interior when, the derived function of the preset function is f1' (x), when the preset letter Several independent variable values be located at (m, n) it is interior when, the derived function of the preset function is f2' (x), when becoming certainly for the preset function Measurement value be located at [n, d] it is interior when, the derived function of the preset function is f3' (x), wherein m is more than c and is less than n, and n is less than d;f2 ' (x) is more than 1, f2' (x) is more than f1' (x), and f2' (x) is more than f3‘(x)。
Further, optionally, f1' (x) and f3' (x) is respectively less than 1.
Optionally, the computing module 302 is specifically used for determining preset function, wherein the preset function isN is integer, and [p, q] is the new sound Accord with the preset interval of note height in information sequence;The note height is substituted into the preset function and calculates functional value, The functional value is the replacement values of the note height.
Optionally, the computing module 302 is specifically used for determining preset function, wherein the preset function isN is integer, and [c, d] believes for the note The interval of note height in sequence is ceased, [p, q] is the preset interval of note height in the new note information sequence; The note height is substituted into the preset function and calculates functional value, the functional value is the replacement values of the note height.
The embodiment of the present invention additionally provides another terminal, as shown in figure 5, for convenience of description, illustrating only and this hair The bright relevant part of embodiment, particular technique details do not disclose, please refer to present invention method part.The terminal can be with It includes mobile phone, tablet computer, PDA (Personal Digital Assistant, personal digital assistant), POS (Point of to be Sales, point-of-sale terminal), the arbitrary terminal device such as vehicle-mounted computer, by taking terminal is mobile phone as an example:
Fig. 5 shows the block diagram with the part-structure of the relevant mobile phone of terminal provided in an embodiment of the present invention.Reference chart 5, mobile phone includes:Radio frequency (Radio Frequency, RF) circuit 1010, memory 1020, input unit 1030, display unit 1040, sensor 1050, voicefrequency circuit 1060, Wireless Fidelity (wireless fidelity, WiFi) module 1070, processor The components such as 1080 and power supply 1090.It will be understood by those skilled in the art that handset structure shown in Fig. 5 is not constituted pair The restriction of mobile phone may include either combining certain components or different component cloth than illustrating more or fewer components It sets.
Each component parts of mobile phone is specifically introduced with reference to Fig. 5:
RF circuits 1010 can be used for receiving and sending messages or communication process in, signal sends and receivees, particularly, by base station After downlink information receives, handled to processor 1080;In addition, the data for designing uplink are sent to base station.In general, RF circuits 1010 include but not limited to antenna, at least one amplifier, transceiver, coupler, low-noise amplifier (Low Noise Amplifier, LNA), duplexer etc..In addition, RF circuits 1010 can also be logical with network and other equipment by radio communication Letter.Above-mentioned wireless communication can use any communication standard or agreement, including but not limited to global system for mobile communications (Global System of Mobile communication, GSM), general packet radio service (General Packet Radio Service, GPRS), CDMA (Code Division Multiple Access, CDMA), wideband code division multiple access (Wideband Code Division Multiple Access, WCDMA), long term evolution (Long Term Evolution, LTE), Email, short message service (Short Messaging Service, SMS) etc..
Memory 1020 can be used for storing software program and module, and processor 1080 is stored in memory by operation 1020 software program and module, to execute various function application and the data processing of mobile phone.Memory 1020 can be led To include storing program area and storage data field, wherein storing program area can storage program area, needed at least one function Application program (such as sound-playing function, image player function etc.) etc.;Storage data field can be stored uses institute according to mobile phone Data (such as audio data, phone directory etc.) of establishment etc..In addition, memory 1020 may include high random access storage Device, can also include nonvolatile memory, and a for example, at least disk memory, flush memory device or other volatibility are solid State memory device.
Input unit 1030 can be used for receiving the number or character information of input, and generate with the user setting of mobile phone with And the related key signals input of function control.Specifically, input unit 1030 may include touch panel 1031 and other inputs Equipment 1032.Touch panel 1031, also referred to as touch screen collect user on it or neighbouring touch operation (such as user Use the behaviour of any suitable object or attachment such as finger, stylus on touch panel 1031 or near touch panel 1031 Make), and corresponding attachment device is driven according to preset formula.Optionally, touch panel 1031 may include touch detection Two parts of device and touch controller.Wherein, the touch orientation of touch detecting apparatus detection user, and detect touch operation band The signal come, transmits a signal to touch controller;Touch controller receives touch information from touch detecting apparatus, and by it It is converted into contact coordinate, then gives processor 1080, and order that processor 1080 is sent can be received and executed.In addition, The multiple types such as resistance-type, condenser type, infrared ray and surface acoustic wave may be used and realize touch panel 1031.In addition to touch surface Plate 1031, input unit 1030 can also include other input equipments 1032.Specifically, other input equipments 1032 may include But in being not limited to physical keyboard, function key (such as volume control button, switch key etc.), trace ball, mouse, operating lever etc. It is one or more.
Display unit 1040 can be used for showing information input by user or be supplied to user information and mobile phone it is each Kind menu.Display unit 1040 may include display panel 1041, optionally, liquid crystal display (Liquid may be used Crystal Display, LCD), the forms such as Organic Light Emitting Diode (Organic Light-EmittingDiode, OLED) come Configure display panel 1041.Further, touch panel 1031 can cover display panel 1041, when touch panel 1031 detects On it or after neighbouring touch operation, processor 1080 is sent to determine the type of touch event, is followed by subsequent processing device 1080 Corresponding visual output is provided on display panel 1041 according to the type of touch event.Although in Figure 5, touch panel 1031 It is to realize input and the input function of mobile phone as two independent components with display panel 1041, but in some embodiments In, can be integrated by touch panel 1031 and display panel 1041 and that realizes mobile phone output and input function.
Mobile phone may also include at least one sensor 1050, such as optical sensor, motion sensor and other sensors. Specifically, optical sensor may include ambient light sensor and proximity sensor, wherein ambient light sensor can be according to ambient light Light and shade adjust the brightness of display panel 1041, proximity sensor can close display panel when mobile phone is moved in one's ear 1041 and/or backlight.As a kind of motion sensor, accelerometer sensor can detect in all directions (generally three axis) and add The size of speed can detect that size and the direction of gravity when static, can be used to identify application (such as the horizontal/vertical screen of mobile phone posture Switching, dependent game, magnetometer pose calibrating), Vibration identification correlation function (such as pedometer, tap) etc.;Also as mobile phone The other sensors such as configurable gyroscope, barometer, hygrometer, thermometer, infrared sensor, details are not described herein.
Voicefrequency circuit 1060, loud speaker 1061, microphone 1062 can provide the audio interface between user and mobile phone.Audio The transformed electric signal of the audio data received can be transferred to loud speaker 1061, is converted by loud speaker 1061 by circuit 1060 It is exported for voice signal;On the other hand, the voice signal of collection is converted to electric signal by microphone 1062, by voicefrequency circuit 1060 Audio data is converted to after reception, then by after the processing of audio data output processor 1080, through RF circuits 1010 to be sent to ratio Such as another mobile phone, or audio data is exported to memory 1020 to be further processed.
WiFi belongs to short range wireless transmission technology, and mobile phone can help user's transceiver electronics postal by WiFi module 1070 Part, browsing webpage and access streaming video etc., it has provided wireless broadband internet to the user and has accessed.Although Fig. 5 is shown WiFi module 1070, but it is understood that, and it is not belonging to must be configured into for mobile phone, it can not change as needed completely Become in the range of the essence of invention and omits.
Processor 1080 is the control centre of mobile phone, using the various pieces of various interfaces and connection whole mobile phone, By running or execute the software program and/or module that are stored in memory 1020, and calls and be stored in memory 1020 Interior data execute the various functions and processing data of mobile phone, to carry out integral monitoring to mobile phone.Optionally, processor 1080 may include one or more processing units;Preferably, processor 1080 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 1080.
Mobile phone further includes the power supply 1090 (such as battery) powered to all parts, it is preferred that power supply can pass through power supply Management system and processor 1080 are logically contiguous, to realize management charging, electric discharge and power consumption pipe by power-supply management system The functions such as reason.
Although being not shown, mobile phone can also include camera, bluetooth module etc., and details are not described herein.
In embodiments of the present invention, the processor 1080 included by the terminal also has control execution is above to be given birth to by tone line The method flow executed at device.
It is apparent to those skilled in the art that for convenience and simplicity of description, the system of foregoing description, The specific work process of device and unit, can refer to corresponding processes in the foregoing method embodiment, and details are not described herein.
In several embodiments provided herein, it should be understood that disclosed system, device and method can be with It realizes by another way.For example, the apparatus embodiments described above are merely exemplary, for example, the unit It divides, only a kind of division of logic function, formula that in actual implementation, there may be another division manner, such as multiple units or component It can be combined or can be integrated into another system, or some features can be ignored or not executed.Another point, it is shown or The mutual coupling, direct-coupling or communication connection discussed can be the indirect coupling by some interfaces, device or unit It closes or communicates to connect, can be electrical, machinery or other forms.
The unit illustrated as separating component may or may not be physically separated, aobvious as unit The component shown may or may not be physical unit, you can be located at a place, or may be distributed over multiple In network element.Some or all of unit therein can be selected according to the actual needs to realize the mesh of this embodiment scheme 's.
In addition, each functional unit in each embodiment of the present invention can be integrated in a processing unit, it can also It is that each unit physically exists alone, it can also be during two or more units be integrated in one unit.Above-mentioned integrated list The form that hardware had both may be used in member is realized, can also be realized in the form of SFU software functional unit.
If the integrated unit is realized in the form of SFU software functional unit and sells or use as independent product When, it can be stored in a computer read/write memory medium.Based on this understanding, technical scheme of the present invention is substantially The all or part of the part that contributes to existing technology or the technical solution can be in the form of software products in other words It embodies, which is stored in a storage medium, including some instructions are used so that a computer Equipment (can be personal computer, server or the network equipment etc.) executes the complete of each embodiment the method for the present invention Portion or part steps.And storage medium above-mentioned includes:USB flash disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), magnetic disc or CD etc. are various can store journey The medium of sequence code.
The above, the above embodiments are merely illustrative of the technical solutions of the present invention, rather than its limitations;Although with reference to before Stating embodiment, invention is explained in detail, it will be understood by those of ordinary skill in the art that:It still can be to preceding The technical solution recorded in each embodiment is stated to modify or equivalent replacement of some of the technical features;And these Modification or replacement, the spirit and scope for various embodiments of the present invention technical solution that it does not separate the essence of the corresponding technical solution.

Claims (10)

1. a kind of tone line generation method, which is characterized in that including:
Note information sequence is obtained, each note information includes note height in the note information sequence;
To each note height in the note information sequence, institute is calculated according to preset function using the note height as independent variable State the replacement values of note height, wherein when the independent variable of the preset function is located at the height of the note in the note information sequence When spending in at least partly range of value range, the derived function of the preset function is more than 1;
To each note height in the note information sequence, note height is replaced with to the replacement of the note height Value, forms new note information sequence;
Tone line is shown according to the new note information sequence.
2. tone line generation method according to claim 1, which is characterized in that note height in the note information sequence Maximum value be d, the minimum value of note height is c;
When the independent variable value of the preset function be located at [c, m] it is interior when, the derived function of the preset function is f1' (x) works as institute State preset function independent variable value be located at (m, n) it is interior when, the derived function of the preset function is f2' (x), when the preset letter Several independent variable values be located at [n, d] it is interior when, the derived function of the preset function is f3' (x), wherein m is more than c and is less than n, n Less than d;f2' (x) is more than 1, f2' (x) is more than f1' (x), and f2' (x) is more than f3‘(x)。
3. tone line generation method according to claim 2, which is characterized in that f1' (x) and f3' (x) is respectively less than 1.
4. tone line generation method according to claim 2, which is characterized in that described using the note height as independent variable The replacement values of the note height are calculated according to preset function, including:
Determine preset function, wherein the preset function is N is integer, and [p, q] is the preset interval of note height in the new note information sequence;
The note height is substituted into the preset function and calculates functional value, the functional value is the replacement of the note height Value.
5. tone line generation method according to claim 2, which is characterized in that described using the note height as independent variable The replacement values of the note height are calculated according to preset function, including:
Determine preset function, wherein the preset function is N is integer, and [c, d] is the interval of note height in the note information sequence, and [p, q] is The preset interval of note height in the new note information sequence;
The note height is substituted into the preset function and calculates functional value, the functional value is the replacement of the note height Value.
6. a kind of tone line generating means, which is characterized in that including:
Acquisition module, for obtaining note information sequence, each note information includes note height in the note information sequence Degree;
Computing module, for each note height in the note information sequence, using the note height as independent variable according to Preset function calculates the replacement values of the note height, wherein when the independent variable of the preset function is located at the note height When in at least partly range of value range, the derived function of the preset function is more than 1;
Replacement module, for each note height in the note information sequence, note height to be replaced with the sound The replacement values for according with height, form new note information sequence;
Display module, for showing tone line according to the new note information sequence.
7. tone line generating means according to claim 6, which is characterized in that note height in the note information sequence Maximum value be d, the minimum value of note height is c;
When the independent variable value of the preset function be located at [c, m] it is interior when, the derived function of the preset function is f1' (x) works as institute State preset function independent variable value be located at (m, n) it is interior when, the derived function of the preset function is f2' (x), when the preset letter Several independent variable values be located at [n, d] it is interior when, the derived function of the preset function is f3' (x), wherein m is more than c and is less than n, n Less than d;f2' (x) is more than 1, f2' (x) is more than f1' (x), and f2' (x) is more than f3‘(x)。
8. tone line generating means according to claim 7, which is characterized in that f1' (x) and f3' (x) is respectively less than 1.
9. tone line generating means according to claim 7, which is characterized in that the computing module is specifically used for determining pre- Set function, wherein the preset function is N is integer, and [p, q] is the preset interval of note height in the new note information sequence;The note height is substituted into The preset function calculates functional value, and the functional value is the replacement values of the note height.
10. tone line generating means according to claim 7, which is characterized in that the computing module is specifically used for determining Preset function, wherein the preset function is N is integer, and [c, d] is the interval of note height in the note information sequence, and [p, q] is The preset interval of note height in the new note information sequence;The note height is substituted into the preset function to calculate Functional value, the functional value are the replacement values of the note height.
CN201610466693.2A 2016-06-23 2016-06-23 Tone line generation method and device Active CN106098058B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610466693.2A CN106098058B (en) 2016-06-23 2016-06-23 Tone line generation method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610466693.2A CN106098058B (en) 2016-06-23 2016-06-23 Tone line generation method and device

Publications (2)

Publication Number Publication Date
CN106098058A CN106098058A (en) 2016-11-09
CN106098058B true CN106098058B (en) 2018-09-07

Family

ID=57252495

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610466693.2A Active CN106098058B (en) 2016-06-23 2016-06-23 Tone line generation method and device

Country Status (1)

Country Link
CN (1) CN106098058B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112992106A (en) * 2021-03-23 2021-06-18 平安科技(深圳)有限公司 Music creation method, device, equipment and medium based on hand-drawn graph

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH1049183A (en) * 1996-08-06 1998-02-20 Yamaha Corp Karaoke rating device
WO2009094606A1 (en) * 2008-01-24 2009-07-30 Qualcomm Incorporated Systems and methods for providing multi-region instrument support in an audio player
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
CN105391764A (en) * 2015-10-14 2016-03-09 小米科技有限责任公司 Method and device for monitoring musical instrument learning

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070276668A1 (en) * 2006-05-23 2007-11-29 Creative Technology Ltd Method and apparatus for accessing an audio file from a collection of audio files using tonal matching

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH1049183A (en) * 1996-08-06 1998-02-20 Yamaha Corp Karaoke rating device
WO2009094606A1 (en) * 2008-01-24 2009-07-30 Qualcomm Incorporated Systems and methods for providing multi-region instrument support in an audio player
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
CN105391764A (en) * 2015-10-14 2016-03-09 小米科技有限责任公司 Method and device for monitoring musical instrument learning

Also Published As

Publication number Publication date
CN106098058A (en) 2016-11-09

Similar Documents

Publication Publication Date Title
CN106782600B (en) Scoring method and device for audio files
CN106126174B (en) A kind of control method and electronic equipment of scene audio
CN105788612B (en) A kind of method and apparatus detecting sound quality
CN106782460B (en) The method and apparatus for generating music score
CN106210755B (en) A kind of methods, devices and systems playing live video
CN106126176B (en) A kind of audio collocation method and mobile terminal
WO2018223837A1 (en) Music playing method and related product
CN108319657A (en) Detect method, storage medium and the terminal of strong rhythm point
CN110515626A (en) The code compiling method and Related product of deep learning Computational frame
CN106328176B (en) A kind of method and apparatus generating song audio
CN106210266B (en) A kind of acoustic signal processing method and audio signal processor
CN105959481B (en) A kind of control method and electronic equipment of scene audio
CN106921791A (en) The storage and inspection method of a kind of multimedia file, device and mobile terminal
WO2022089098A1 (en) Pitch adjustment method and device, and computer storage medium
CN106384599B (en) A kind of method and apparatus of distorsion identification
CN105550316B (en) The method for pushing and device of audio list
CN105959482B (en) A kind of control method and electronic equipment of scene audio
CN108172200A (en) A kind of method and terminal device of this display of applicating Chinese
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
CN106126726A (en) The exhibiting method of a kind of file scene and relevant device
CN105976849B (en) A kind of method and apparatus of playing audio-fequency data
CN106202422B (en) The treating method and apparatus of Web page icon
JP2020515123A (en) Message notification method and terminal
CN107452361A (en) Song subordinate sentence method and device

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant