CN106098058A - Tone line generates method and apparatus - Google Patents

Tone line generates method and apparatus Download PDF

Info

Publication number
CN106098058A
CN106098058A CN201610466693.2A CN201610466693A CN106098058A CN 106098058 A CN106098058 A CN 106098058A CN 201610466693 A CN201610466693 A CN 201610466693A CN 106098058 A CN106098058 A CN 106098058A
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.)
Granted
Application number
CN201610466693.2A
Other languages
Chinese (zh)
Other versions
CN106098058B (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 and generate method and apparatus.The method comprise the steps that acquisition note information sequence, in described note information sequence, each note information includes note height;To each note height in described note information sequence, calculate the replacement values of described note height according to preset function with described note height for independent variable, wherein, when the independent variable of described preset function be positioned at described note height span at least part of in the range of time, the derived function of described preset function be more than 1;To each note height in described note information sequence, described note height is replaced with the replacement values of described note height, form new note information sequence;Tone line is shown according to described new note information sequence.

Description

Tone line generates method and apparatus
Technical field
The present invention relates to field of audio processing, particularly relate to a kind of tone line and generate method and apparatus.
Background technology
K song system is the coalition of music player and recording software, both can play original singer, it is also possible to the song of user Sound incorporates in the accompaniment of song, it is also possible to the song of user is carried out audio frequency effect process, finally by the literary composition after audio effect processing Part uploads to the song allowing more people hear oneself in network.
Existing K song systematic difference flow process is generally: after entrance system, first user selects song, sings rank subsequently into K Section;Song selected by system plays user, during user sings, system pipes demonstrate original singer's tone line of this song with And the tone line that user sings, and according to the gap of these two tone lines, the performance of user is marked.
System is when showing tone line, and vertical coordinate is generally note height.But, in actual application, each note in song Note height difference the least, it is the least that this causes the tone line that shows to rise and fall so that user is difficult to find out what oneself was sung Tone line and the gap of the tone line of song original singer, reduce Consumer's Experience.
Summary of the invention
Embodiments provide a kind of tone line and generate method and apparatus, for generating the tone line of big rise and fall.
First aspect, the present invention provides a kind of tone line to generate method, including:
Obtaining note information sequence, in described note information sequence, each note information includes note height;
To each note height in described note information sequence, count according to preset function with described note height for independent variable Calculate the replacement values of described note height, wherein, when the independent variable of described preset function is positioned at described note height span Time in the range of Zhi Shaobufen, the derived function of described preset function is more than 1;
To each note height in described note information sequence, described note height is replaced with replacing of described note height Change value, form new note information sequence;
Tone line is shown according to described new note information sequence.
Second aspect, the present invention provides a kind of tone line generating means, including:
Acquisition module, is used for obtaining note information sequence, and in described note information sequence, each note information includes sound Symbol height;
Computing module, for each note height in described note information sequence, with described note height as independent variable The replacement values of described note height is calculated, wherein, when the independent variable of described preset function is positioned at described note according to preset function Highly span at least part of in the range of time, the derived function of described preset function is more than 1;
Replacement module, for each note height in described note information sequence, replaces with institute by described note height State the replacement values of note height, form new note information sequence;
Display module, for showing tone line according to described new note information sequence.
As can be seen from the above technical solutions, the embodiment of the present invention has the advantage that
In the present invention, to each note height in described note information sequence, by using preset function and note height Calculate the replacement values of this note height, owing to the derived function of this preset function is greater than 1, then the note information calculated In sequence, gap between the replacement values of each note height is greater than the gap of each note height, so, by note information sequence In each note height replace with the replacement values of this note height after the new note information sequence that formed, according to this new note information The fluctuating of the tone line that sequence shows is compared the fluctuating of the tone line shown according to former note information sequence and is become apparent from, and contributes to Improve the experience of user.
Accompanying drawing explanation
Fig. 1 is the schematic flow sheet of an embodiment of the tone line generation method of the present invention;
Fig. 2 is the tone line generated according to the note information sequence in table 1;
Fig. 3 is the tone line generated according to the note information sequence in table 2;
Fig. 4 is the structural representation of a kind of embodiment of the tone line generating means of the present invention;
Fig. 5 is the structural representation of a kind of embodiment of the terminal of the present invention.
Detailed description of the invention
Refer to the schematic flow sheet that the tone line that Fig. 1, Fig. 1 are the present invention generates an embodiment of method.This enforcement In example, tone line generates method and includes:
101, obtaining note information sequence, in described note information sequence, each note information includes note height.
The method obtaining note information sequence has multiple.Such as, in actual application, the note information of song is stored in In MIDI (English: Musical Instrument Digital Interface, Chinese: musical instrument digital interface) file. MIDI is the electronic communication protocol of an industrial standard, for the performance apparatus such as electronic musical instrument (such as synthesizer) define various note or Play code.After getting the MIDI file of song, when parsing the beginning of each note in this song from this MIDI file Between, end time (or duration) and note height.Concrete, note height is normally in interval [21,108].Solve After separating out the time started of each note, end time (or duration) and note height, one structure of general definition Body stores these information.Therefore, when obtaining note information sequence, each note information can be searched from this structure.
But, although note height is normally in interval [21,108], but the note of major part note in part song Highly it is positioned at a little scope in this interval, say, that the difference between most of note in a song is less. Such as, in part song, the note height of major part note is positioned in interval [55,75].
102, to each note height in described note information sequence, according to preset function and described note high computational institute Stating the replacement values of note height, wherein, the note in the independent variable of described preset function is positioned at described note information sequence is high Degree span at least part of in the range of time, the derived function of described preset function be more than 1.
Owing to each note height in note information sequence differs less, therefore, in the present embodiment, always according to preset function Calculate the replacement values that each note height is corresponding.Wherein, it is positioned at described note information sequence when the independent variable of described preset function Note height span in row at least part of in the range of time, the derived function of described preset function be more than 1.Specifically, The note height that in note information sequence, value is maximum is d, and the note height of value minimum is c, is pointed to scope [c, d] extremely Two independent variable x1 and x2 in the range of small part, wherein corresponding for x1 (namely a note height) functional value (namely note The replacement values of highly x1) be the functional value that y1, x2 (namely a note height) are corresponding be y2 (namely the replacement of note height x2 Value), owing to derived function is more than 1, therefore (y1-y2)/(x1-x2) is more than 1, namely y1-y2 is more than x1-x2, so, will be located in model Enclose [c, d] at least part of in the range of note height substitute into preset function variable fall into a trap enumeration function value as this note height Replacement values, the difference between the replacement values of this note height is greater than the difference between former note height, has pulled open note high Distance between degree so that the change of note height becomes apparent from.
For concrete example, described preset function is f (x)=(q-p) × (2(x-c)/(d-c)-1)+p, wherein, c is note letter The note height that in breath sequence, value is minimum, d is the note height that in note information sequence, value is maximum, [p, q] be described newly The preset interval of note height in note information sequence.
103, to each note height in described note information sequence, described note height is replaced with described note height Replacement values, form new note information sequence.
Owing to the difference between the replacement values of note height at least part of in note information sequence is greater than former note height Between difference, therefore, each the note height in original note information sequence is replaced with the replacement values of this note height, Form new note information sequence.For concrete example, note information sequence includes three note informations, be respectively (35667, 398,71), (36068,264,69) and (36335,622,71), first numerical value in each of which note information is note Time started, second numerical value is the persistent period, and the 3rd numerical value is note height.Substitute into 71 in preset function and calculate letter Numerical value is 92, and enumeration function value of 69 substitution preset function being fallen into a trap is 73, then, the new note letter formed after replacing note height Breath sequence is (35667,398,92), (36068,264,73) and (36335,622,92).
104, tone line is shown according to described new note information sequence.
In the present embodiment, have multiple according to the method for new note information sequence display tone line.Such as, new note information sequence Each note information in row includes time started, end time (or duration) and note height, at display tone During line, each note information is a line segment being parallel to x-axis, wherein, the horizontal stroke of the starting point of this line segment in xy coordinate plane Coordinate is the time started in this note information, and the abscissa of terminal is end time in this note information (or this line segment This note information a length of in persistent period), the vertical coordinate of this line segment is the note height in this note information.
The most such as, being numbered each note information, each numbering indicates this note information for unique.In display During tone line, each note information is a point in xy coordinate plane, and wherein, the abscissa of this point is this note information Numbering, vertical coordinate is the note height in this note information.
In the present embodiment, to each note height in described note information sequence, by using preset function and note high Degree calculates the replacement values of this note height, owing to the derived function of this preset function is greater than 1, then the note letter calculated In breath sequence, the gap between the replacement values of each note height is greater than the gap of each note height, so, by note information sequence The new note information sequence that each note height in row is formed after replacing with the replacement values of this note height, believes according to this new note The fluctuating of tone line that breath sequence shows is compared the fluctuating of the tone line shown according to former note information sequence and is become apparent from, and helps In the experience improving user.
In the present embodiment, preset function can have multiple.Preferably, in the present embodiment, when certainly becoming of described preset function Measure value be positioned at [c, m] interior time, the derived function of described preset function is f1' (x), when the independent variable value position of described preset function In (m, n) in time, the derived function of described preset function is f2' (x), when the independent variable value of described preset function is positioned at [n, d] Time interior, the derived function of described preset function is f3' (x), wherein, d is the maximum of each note height, c in note information sequence Minima for note height each in note information sequence;M is less than d more than c and less than n, n;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, it is also possible to being piecewise function, this is not restricted.
Owing to the value of the note height of note each in song is largely focused on the stage casing part of [c, d], (m n), is positioned at The value of two parts [c, m] and [n, d] is less from beginning to end, uses preset function to become note height each in note information sequence When changing, owing to the independent variable of the preset function derived function when [c, d] is interior is more than independent variable leading when [c, m] and [n, d] is interior Function, can avoid the span mistake after each note height replaces with the replacement values of this note height in note information sequence Greatly, and then avoid the final shown space occupied by tone line excessive.
Further, it is preferred that f1' (x) and f3' (x) is respectively less than 1.Namely using preset function in note information sequence When each note height converts, be pointed to (m, n) in each note height between gap stretch, and be pointed to The gap between each note height in [c, m] and [n, d] is compressed, and so can avoid in note information sequence further The span that each note height replaces with after the replacement values of this note height is excessive, it is possible to achieve according to note information sequence Tone line is generated according to new note information sequence in the space of the tone line generated.
Below two kinds of methods of the replacement values according to note height described in preset function and described note high computational are entered Row illustrates.
Citing one, preset function are Wherein, n is integer, and [p, q] is the preset interval of note height in described new note information sequence.Determine preset function After, note height being substituted into described preset function and calculates functional value, described functional value is the replacement values of described note height.
Citing two, preset function are Wherein, n is integer, and [p, q] is the preset interval of note height in described new note information sequence.Determine preset function After, note height being substituted into described preset function and calculates functional value, described functional value is the replacement values of described note height.
Understand the present invention for aspect, below in conjunction with an actual application scenarios, the tone line of the present invention is generated method and carry out Citing describes.
As shown in table 1 below, table 1 below is the concrete value of each note information in note information sequence, wherein, each note information Time started, duration and note height including note.
Table 1
Determine preset functionWherein, p=0, q =100, c=61, d=71.Each note height in upper table is substituted in this preset function successively, calculates each note height Replacement values, obtain new note information sequence, and be numbered to successively each note information, as shown in table 2 below.
Table 2
After generating new note information sequence, on xy coordinate surface, generate tone line according to this new note information sequence.Specifically , in new note information sequence, each note information is a point in xy coordinate plane, and wherein, the abscissa of this point is for being somebody's turn to do The numbering of note information, vertical coordinate is the note height in this note information.As in figure 2 it is shown, upper figure is according in table 1 in Fig. 2 The tone line that generated of note information sequence, figure below is the tone line generated according to the note information sequence in table 2.
Above the tone line generation method of the present invention is described, below the tone line generating means of the present invention is entered Line description.
As shown in Figure 4, Fig. 4 is the structural representation of a kind of embodiment of tone line generating means of the present invention.This enforcement In example, tone line generating means 300 includes:
Acquisition module 301, is used for obtaining note information sequence, and in described note information sequence, each note information includes Note height;
Computing module 302, for each note height in described note information sequence, with described note height for from becoming Measure the replacement values calculating described note height according to preset function, wherein, when the independent variable of described preset function is positioned at described sound Symbol height span at least part of in the range of time, the derived function of described preset function be more than 1;
Replacement module 303, for each note height in described note information sequence, replaces with described note height The replacement values of described note height, forms new note information sequence;
Display module 304, for showing tone line according to described new note information sequence.
In the present embodiment, to each note height in described note information sequence, by using preset function and note high Degree calculates the replacement values of this note height, owing to the derived function of this preset function is greater than 1, then the note letter calculated In breath sequence, the gap between the replacement values of each note height is greater than the gap of each note height, so, by note information sequence The new note information sequence that each note height in row is formed after replacing with the replacement values of this note height, believes according to this new note The fluctuating of tone line that breath sequence shows is compared the fluctuating of the tone line shown according to former note information sequence and is become apparent from, and helps In the experience improving user.
Optionally, in described note information sequence, the maximum of note height is d, and the minima of note height is c;Work as institute State the independent variable value of preset function be positioned at [c, m] interior time, the derived function of described preset function is f1' (x), when described preset letter Number independent variable value be positioned at (m, n) in time, the derived function of described preset function is f2' (x), when certainly becoming of described preset function Measure value be positioned at [n, d] interior time, the derived function of described preset function is f3' (x), wherein, m is less than d more than c and less than n, n;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, described computing module 302 is specifically for determining preset function, and wherein, described preset function isN is integer, and [p, q] is described new sound The preset interval of note height in symbol information sequence;Described note height is substituted into described preset function and calculates functional value, Described functional value is the replacement values of described note height.
Optionally, described computing module 302 is specifically for determining preset function, and wherein, described preset function isN is integer, and [c, d] is described note letter The interval of note height in breath sequence, [p, q] is the preset interval of note height in described new note information sequence; Described note height being substituted into described preset function and calculates functional value, described functional value is the replacement values of described note height.
The embodiment of the present invention additionally provides another kind of terminal, as it is shown in figure 5, for convenience of description, illustrate only and this The part that bright embodiment is relevant, concrete ins and outs do not disclose, and refer to embodiment of the present invention method part.This terminal is permissible For including mobile phone, panel computer, PDA (Personal Digital Assistant, personal digital assistant), POS (Point of Sales, point-of-sale terminal), the arbitrarily terminal unit such as vehicle-mounted computer, as a example by terminal is as mobile phone:
Fig. 5 is illustrated that the block diagram of the part-structure of the mobile phone relevant to the terminal of embodiment of the present invention offer.With reference to figure 5, mobile phone includes: radio frequency (Radio Frequency, RF) circuit 1010, memorizer 1020, input block 1030, display unit 1040, sensor 1050, voicefrequency circuit 1060, Wireless Fidelity (wireless fidelity, WiFi) module 1070, processor The parts such as 1080 and power supply 1090.It will be understood by those skilled in the art that the handset structure shown in Fig. 5 is not intended that right The restriction of mobile phone, can include that ratio illustrates more or less of parts, or combine some parts, or different parts cloth Put.
Below in conjunction with Fig. 5 each component parts of mobile phone carried out concrete introduction:
RF circuit 1010 can be used for receiving and sending messages or in communication process, the reception of signal and transmission, especially, by base station After downlink information receives, process to processor 1080;It addition, be sent to base station by designing up data.Generally, RF circuit 1010 include but not limited to antenna, at least one amplifier, transceiver, bonder, low-noise amplifier (Low Noise Amplifier, LNA), duplexer etc..Additionally, RF circuit 1010 can also be led to network and other equipment by radio communication Letter.Above-mentioned radio communication can use arbitrary communication standard or agreement, includes 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), WCDMA (Wideband Code Division Multiple Access, WCDMA), Long Term Evolution (Long Term Evolution, LTE), Email, Short Message Service (Short Messaging Service, SMS) etc..
Memorizer 1020 can be used for storing software program and module, and processor 1080 is stored in memorizer by operation The software program of 1020 and module, thus perform the application of various functions and the data process of mobile phone.Memorizer 1020 can be led Including storage program area and storage data field, wherein, needed for storage program area can store operating system, at least one function Application program (such as sound-playing function, image player function etc.) etc.;Storage data field can store the use institute according to mobile phone The data (such as voice data, phone directory etc.) etc. created.Additionally, memorizer 1020 can include that high random access stores Device, it is also possible to include nonvolatile memory, for example, at least one disk memory, flush memory device or other volatibility are solid State memory device.
Input block 1030 can be used for receiving numeral or the character information of input, and produce with the user setup of mobile phone with And function controls relevant key signals input.Specifically, input block 1030 can include contact panel 1031 and other inputs Equipment 1032.Contact panel 1031, also referred to as touch screen, can collect user thereon or neighbouring touch operation (such as user Use any applicable object such as finger, stylus or adnexa behaviour on contact panel 1031 or near contact panel 1031 Make), and drive corresponding attachment means according to formula set in advance.Optionally, contact panel 1031 can include touching detection Device and two parts of 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 sends can be received and performed.Additionally, The polytypes such as resistance-type, condenser type, infrared ray and surface acoustic wave can be used to realize contact panel 1031.Except touch surface Plate 1031, input block 1030 can also include other input equipments 1032.Specifically, other input equipments 1032 can include But it is not limited in physical keyboard, function key (such as volume control button, switch key etc.), trace ball, mouse, action bars etc. One or more.
Display unit 1040 can be used for each of the information that inputted by user of display or the information being supplied to user and mobile phone Plant menu.Display unit 1040 can include display floater 1041, optionally, can use liquid crystal display (Liquid Crystal Display, LCD), the form such as Organic Light Emitting Diode (Organic Light-EmittingDiode, OLED) comes Configuration display floater 1041.Further, contact panel 1031 can cover display floater 1041, when contact panel 1031 detects Thereon or after neighbouring touch operation, send processor 1080 to determine the type of touch event, with preprocessor 1080 Type according to touch event provides corresponding visual output on display floater 1041.Although in Figure 5, contact panel 1031 It is to realize input and the input function of mobile phone as two independent parts with display floater 1041, but in some embodiment In, can be by integrated to contact panel 1031 and display floater 1041 and realize input and the output function of mobile phone.
Mobile phone may also include at least one sensor 1050, such as optical sensor, motion sensor and other sensors. Specifically, optical sensor can include ambient light sensor and proximity transducer, and wherein, ambient light sensor can be according to ambient light Light and shade regulate the brightness of display floater 1041, proximity transducer can cut out display floater when mobile phone moves in one's ear 1041 and/or backlight.As the one of motion sensor, accelerometer sensor can detect (generally three axles) in all directions and add The size of speed, can detect that size and the direction of gravity time static, can be used for identifying application (the such as horizontal/vertical screen of mobile phone attitude Switching, dependent game, magnetometer pose calibrating), Vibration identification correlation function (such as pedometer, percussion) etc.;As for mobile phone also Other sensors such as configurable gyroscope, barometer, drimeter, thermometer, infrared ray sensor, do not repeat them here.
Voicefrequency circuit 1060, speaker 1061, microphone 1062 can provide the audio interface between user and mobile phone.Audio frequency The signal of telecommunication after the voice data conversion that circuit 1060 can will receive, is transferred to speaker 1061, speaker 1061 changes Export for acoustical signal;On the other hand, the acoustical signal of collection is converted to the signal of telecommunication by microphone 1062, by voicefrequency circuit 1060 Voice data is converted to after reception, then after voice data output processor 1080 is processed, through RF circuit 1010 to be sent to ratio Such as another mobile phone, or voice data is exported to memorizer 1020 to process further.
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 the user wireless broadband internet and has accessed.Although Fig. 5 shows WiFi module 1070, but it is understood that, it is also not belonging to must be configured into of mobile phone, can not change as required completely Omit in the scope of the essence becoming invention.
Processor 1080 is the control centre of mobile phone, utilizes various interface and the various piece of the whole mobile phone of connection, It is stored in the software program in memorizer 1020 and/or module by running or performing, and calls and be stored in memorizer 1020 Interior data, perform the various functions of mobile phone and process data, thus mobile phone is carried out integral monitoring.Optionally, processor 1080 can include one or more processing unit;Preferably, processor 1080 can integrated application processor and modulation /demodulation process Device, wherein, application processor mainly processes operating system, user interface and application program etc., and modem processor is mainly located Reason radio communication.It is understood that above-mentioned modem processor can not also be integrated in processor 1080.
Mobile phone also 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 is logically contiguous with processor 1080, thus realizes management charging, electric discharge and power consumption pipe by power-supply management system The functions such as reason.
Although not shown, mobile phone can also include photographic head, bluetooth module etc., does not repeats them here.
In embodiments of the present invention, the processor 1080 included by this terminal also has control and performs above to be given birth to by tone line Become the method flow that device performs.
Those skilled in the art is it can be understood that arrive, for convenience and simplicity of description, and the system of foregoing description, The specific works process of device and unit, is referred to the corresponding process in preceding method embodiment, does not repeats them here.
In several embodiments provided herein, it should be understood that disclosed system, apparatus and method are permissible Realize by another way.Such as, device embodiment described above is only schematically, such as, and described unit Dividing, be only a kind of logic function and divide, actual can have other dividing mode, the most multiple unit or assembly when realizing Can in conjunction with or be desirably integrated into another system, or some features can be ignored, or does not performs.Another point, shown or The coupling each other discussed or direct-coupling or communication connection can be the indirect couplings by some interfaces, device or unit Close or communication connection, can be electrical, machinery or other form.
The described unit illustrated as separating component can be or may not be physically separate, shows as unit The parts shown can be or may not be physical location, i.e. may be located at a place, or can also be distributed to multiple On NE.Some or all of unit therein can be selected according to the actual needs to realize the mesh of the present embodiment scheme 's.
It addition, each functional unit in each embodiment of the present invention can be integrated in a processing unit, it is also possible to It is that unit is individually physically present, it is also possible to two or more unit are integrated in a unit.Above-mentioned integrated list Unit both can realize to use the form of hardware, it would however also be possible to employ the form of SFU software functional unit realizes.
If described integrated unit realizes and as independent production marketing or use using the form of SFU software functional unit Time, can be stored in a computer read/write memory medium.Based on such understanding, technical scheme is substantially The part that in other words prior art contributed or this technical scheme completely or partially can be with the form of software product Embodying, this computer software product is stored in a storage medium, including some instructions with so that a computer Equipment (can be personal computer, server, or the network equipment etc.) performs the complete of method described in each embodiment of the present invention Portion or part steps.And aforesaid storage medium includes: USB flash disk, portable hard drive, 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, above example only in order to technical scheme to be described, is not intended to limit;Although with reference to front State embodiment the present invention has been described in detail, it will be understood by those within the art that: it still can be to front State the technical scheme described in each embodiment to modify, or wherein portion of techniques feature is carried out equivalent;And these Amendment or replacement, do not make the essence of appropriate technical solution depart from the spirit and scope of various embodiments of the present invention technical scheme.

Claims (10)

1. a tone line generates method, it is characterised in that including:
Obtaining note information sequence, in described note information sequence, each note information includes note height;
To each note height in described note information sequence, calculate institute for independent variable according to preset function with described note height Stating the replacement values of note height, wherein, the note in the independent variable of described preset function is positioned at described note information sequence is high Degree span at least part of in the range of time, the derived function of described preset function be more than 1;
To each note height in described note information sequence, described note height is replaced with the replacement of described note height Value, forms new note information sequence;
Tone line is shown according to described new note information sequence.
Tone line the most according to claim 1 generates method, it is characterised in that note height in described note information sequence Maximum be d, the minima of note height is c;
When the independent variable value of described preset function be positioned at [c, m] interior time, the derived function of described preset function is f1' (x) works as institute The independent variable value stating preset function be positioned at (m, n) in time, the derived function of described preset function is f2' (x), when described preset letter Number independent variable value be positioned at [n, d] interior time, the derived function of described preset function is f3' (x), wherein, m is more than c and 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)。
Tone line the most according to claim 2 generates method, it is characterised in that f1' (x) and f3' (x) is respectively less than 1.
Tone line the most according to claim 2 generates method, it is characterised in that described with described note height as independent variable The replacement values of described note height is calculated according to preset function, including:
Determining preset function, wherein, described preset function is N is integer, and [p, q] is the preset interval of note height in described new note information sequence;
Described note height being substituted into described preset function and calculates functional value, described functional value is the replacement of described note height Value.
Tone line the most according to claim 2 generates method, it is characterised in that described with described note height as independent variable The replacement values of described note height is calculated according to preset function, including:
Determining preset function, wherein, described preset function is N is integer, and [c, d] is the interval of note height in described note information sequence, and [p, q] is described The preset interval of note height in new note information sequence;
Described note height being substituted into described preset function and calculates functional value, described functional value is the replacement of described note height Value.
6. a tone line generating means, it is characterised in that including:
Acquisition module, is used for obtaining note information sequence, and in described note information sequence, each note information includes that note is high Degree;
Computing module, for each note height in described note information sequence, with described note height for independent variable according to Preset function calculates the replacement values of described note height, wherein, when the independent variable of described preset function is positioned at described note height Span at least part of in the range of time, the derived function of described preset function be more than 1;
Replacement module, for each note height in described note information sequence, replaces with described sound by described note height The replacement values of symbol height, forms new note information sequence;
Display module, for showing tone line according to described new note information sequence.
Tone line generating means the most according to claim 6, it is characterised in that note height in described note information sequence Maximum be d, the minima of note height is c;
When the independent variable value of described preset function be positioned at [c, m] interior time, the derived function of described preset function is f1' (x) works as institute The independent variable value stating preset function be positioned at (m, n) in time, the derived function of described preset function is f2' (x), when described preset letter Number independent variable value be positioned at [n, d] interior time, the derived function of described preset function is f3' (x), wherein, m is more than c and 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)。
Tone line generating means the most according to claim 7, it is characterised in that f1' (x) and f3' (x) is respectively less than 1.
Tone line generating means the most according to claim 7, it is characterised in that described computing module is pre-specifically for determining Putting function, wherein, described preset function is N is integer, and [p, q] is the preset interval of note height in described new note information sequence;Described note height is substituted into Described preset function calculates functional value, and described functional value is the replacement values of described note height.
Tone line generating means the most according to claim 7, it is characterised in that described computing module is pre-specifically for determining Putting function, wherein, described preset function is N is Integer, [c, d] is the interval of note height in described note information sequence, and [p, q] is in described new note information sequence The preset interval of note height;Described note height being substituted into described preset function and calculates functional value, described functional value is The replacement values of described 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 true CN106098058A (en) 2016-11-09
CN106098058B 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)

Cited By (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 (6)

* 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
US20110238666A1 (en) * 2006-05-23 2011-09-29 Creative Technology Ltd Method and apparatus for accessing an audio file from a collection of audio files using tonal matching
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

Patent Citations (6)

* 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
US20110238666A1 (en) * 2006-05-23 2011-09-29 Creative Technology Ltd Method and apparatus for accessing an audio file from a collection of audio files using tonal matching
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

Cited By (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

Also Published As

Publication number Publication date
CN106098058B (en) 2018-09-07

Similar Documents

Publication Publication Date Title
CN106782460B (en) The method and apparatus for generating music score
CN110515626A (en) The code compiling method and Related product of deep learning Computational frame
CN103634717B (en) A kind of method, device and the terminal device of the control of utilization earphone
CN106126174B (en) A kind of control method and electronic equipment of scene audio
CN106210266B (en) A kind of acoustic signal processing method and audio signal processor
CN103472998B (en) A kind of method of selected text, device and terminal unit
CN103702297A (en) Short message enhancement method, device and system
CN106782600A (en) The methods of marking and device of audio file
CN107770729A (en) Signal intensity reminding method and Related product
CN103678502B (en) Information collection method and device
CN106095387A (en) The audio method to set up of a kind of terminal and terminal
CN105550316B (en) The method for pushing and device of audio list
CN106126160A (en) A kind of effect adjusting method and user terminal
CN106328176A (en) Method and device for generating song audio
CN106095385A (en) A kind of audio method to set up and mobile terminal
CN107766139B (en) Application management method and device
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
CN105976849B (en) A kind of method and apparatus of playing audio-fequency data
CN106126726A (en) The exhibiting method of a kind of file scene and relevant device
JP2020515123A (en) Message notification method and terminal
CN107452361A (en) Song subordinate sentence method and device
CN106202422A (en) The treating method and apparatus of Web page icon
CN108231046B (en) Song tone identification method and device
CN106126170A (en) The audio method to set up of a kind of terminal and terminal

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