CN100342424C - Rhythm control and sound mixing method for musical synthesis - Google Patents
Rhythm control and sound mixing method for musical synthesis Download PDFInfo
- Publication number
- CN100342424C CN100342424C CNB021274894A CN02127489A CN100342424C CN 100342424 C CN100342424 C CN 100342424C CN B021274894 A CNB021274894 A CN B021274894A CN 02127489 A CN02127489 A CN 02127489A CN 100342424 C CN100342424 C CN 100342424C
- Authority
- CN
- China
- Prior art keywords
- channel
- synthetic
- music
- note
- musical instrument
- 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.)
- Expired - Fee Related
Links
Images
Abstract
The present invention relates to a rhythm control and sound mixing method for musical synthesis. Music scores of various musical instruments use sample points of digital signal waveforms as basic time units to synthesize music, the start and the close of synthesis of each note are controlled through a time interval parameter (w) of note front sections in the music scores, waveforms of music start and attenuation are output at the start of the synthesis, and waveforms of a vanishing period are output at the close of the synthesis.
Description
Technical field
The present invention relates to a kind of music synthesis method, rhythm control and sound mixing method that particularly a kind of music is synthetic.
Background technology
Arriving along with the Mobile business epoch, one is short and small frivolous, multiple functional to seeking, and emphasize to allow the user whenever and wherever possible with the portable electric device of walking (for example electronic dictionary, personal digital assistant, portable computer, mobile phone, electronic dictionary etc.).The mobile commodity of individual are also constantly being weeded out the old and bring forth the new always, and on market, be subjected to liking and use of more and more people, yet therefore do not satisfy for the development of the mobile commodity of individual on the market and stagnate, attempt can go to stride forward towards the application of diversification more on the contrary, reason wherein is the compact characteristic of these products, though performance is come powerfully not as desk-top computer, but the user's that can both satisfy part demand, for example the appearance of electronic dictionary promptly solves the inconvenience and the heavy problem of consult a dictionary inquiry.
Yet these portable electric devices all have compact characteristic, so just must sacrifice arithmetic speed and storage volume during product design, and its extendibility has certain degree of difficulty.Therefore, under the situation of considering arithmetic speed and storage volume, the design of a lot of application programs correction again of just having to is so that use on these portable electric devices.
The music tonequality of the above-mentioned portable electric device that arithmetic speed and storage volume just limit.This is because be close to the tone color performance of the former sound of musical instrument, need huge internal memory to store, and in computing, also need to be promoted, moreover note down huge that the needed internal memory of various instrument tambers really can be suitable, Here it is why these portable electric devices the reason of interesting to listen to music can't appear always.
A kind of MIDI that knows (musical instrument digital interface) music is the synthetic most typical example of music, general Midi music is synthetic, comprise two time parameters, the one, the bat number of every crotchet (Ticks Per Quarter Note, hereinafter to be referred as Ticks PQN), another is the time (Time PQN) of every crotchet, can be scaled time (the Time Per Tick of each bat (Tick), hereinafter to be referred as TPT), it is a synthetic TPT=Time PQN/Ticks PQN of basic time span unit of Midi music.All there is one to wait for digital w before each Midi note, represented to begin to play this note w basic time after the length or stop to play this note.Its duration control method, be to calculate how long passed through and read the note that desire is play or stopped to play with the interruption (interrupt) that a time interval is TPT, wait for w basic time length, promptly be that representative is had no progeny through among the w, just begin broadcast or stop to play this note.
In sum, after open music synthesis method, the present invention discloses a kind of music synthetic rhythm control and sound mixing method, in the hope of under the situation that need not take too many memory headroom, and the music that emulation is more interesting to listen to.
Summary of the invention
Be to the present invention to provide a kind of music synthetic rhythm control and sound mixing method, the information translation of time become the sample points of musical waveform, by each synthetic contained sample points (SamplesPer Ticks of each beat; SPT), to control the beat of music; Utilize the method for channel multiplex then, different musical instruments, different note are synthesized respectively in different channel, it is synthetic to be superposeed again, reaches the purpose of audio mixing.
For reaching above-mentioned purpose, the invention provides a kind of music synthetic rhythm control and sound mixing method, comprise the following steps:
First (step 100) loads a music score in one or more synthetic channels, comprising:
One or more synthetic channels (step 200) are provided, import a music score (step 210) and each the musical instrument sequence of notes in the music score is corresponded to the time interval parameter w and the command sequence (step 220) of each synthetic channel.
Second (step 110) read in the time interval parameter w of first musical instrument note of each channel.
The 3rd (step 120), set the broadcast musical instrument note of each channel, comprise that whether the time interval parameter w that checks each channel is zero (step 300), set the composite music waveform (step 310) of each channel and read in the time interval parameter w (step 320) of the next musical instrument note of each channel.
The 4th (step 130), synthetic each channel length is the musical waveform of SPT, check synthetic channel and in regular turn in the middle of each synthetic channel reads this musical waveform database respectively corresponding to the decaying wave graphic data and length, recurrence Wave data and length, the amplitude adjustment modes parameter in tenuto stage and amplitude are adjusted parameter, the amplitude adjustment modes parameter in the stage that disappears and amplitude are adjusted parameter of starting the music of musical instrument, be the musical waveform of the digital signal waveform sample points of SPT with the composition length.
The 5th (step 140) is with the waveform adder output that each channel synthesized.
The 6th (step 150) subtracts 1 with the time interval parameter of the next musical instrument note that each channel read in.
The 7th (step 160), check whether synthetic the finishing of broadcast note of each channel, if not, then get back to the broadcast musical instrument note step 120 that this sets each channel, to continue the musical waveform of synthetic next SPT, if, then jump to next step the 8th (step 170), check whether each channel has arrived last note, if, then finish, if not, then get back to the broadcast musical instrument note step 120 that this sets each channel.
Wherein, synthetic each channel length is the method for the musical waveform of SPT, comprises the following steps:
One (step 400), output start the music the decling phase waveform and be multiplied by a fixing amplitude parameter.
Two (steps 410), output recurrence waveform also are multiplied by the amplitude parameter in tenuto stage and do the adjustment of amplitude parameter.
Three (steps 420), output recurrence waveform also are multiplied by the amplitude parameter in disappearance stage and do the adjustment of amplitude parameter.
Description of drawings
For above and other objects of the present invention, feature and advantage can be become apparent, preferred embodiment cited below particularly, and conjunction with figs. are described in detail below:
Fig. 1 is synthetic rhythm control and a sound mixing method process flow diagram of music of the present invention;
Fig. 2 is that loading one music score of the present invention is in the method flow diagram of one or more synthetic channels;
Fig. 3 is the method flow diagram of the broadcast musical instrument note of each channel of setting of the present invention; And
Fig. 4 is the method flow diagram of the musical waveform of SPT for synthetic each channel length of the present invention.
Symbol description
Synthetic each the channel length of step 130 is the musical waveform of SPT
Whether the broadcast note of each channel of step 160 inspection synthesizes finishes
Embodiment
In general, common music beat has the basic beat length of a minimum.Utilizing this basic beat length, earlier this time span is converted into the sample points (Samples PerTick is hereinafter to be referred as SPT) of digital signal waveform, is each composition length with SPT then.When every composition length is the musical waveform of SPT, insert the effect that new musical instrument note can be finished rhythm control again.
Therefore, the melody of one section performance, can be thought of as is a series of musical instrument note, with certain time interval, constantly produces and disappears.This time interval can be zero (being dispersed in different channel usually), and expression has multiple musical instrument note to play simultaneously, and musical instrument note that so just can this is a succession of synthesizes certain musical waveform at certain time point.And wherein the synthetic of each musical instrument note is separate, and they are synthetic at different channels respectively.Then, after every composition length is SPT, the composite music waveform of all channels is all added together, store or the output pronunciation.So, the both rhythm of may command music output also can be finished the effect of audio mixing.
Suppose that we are with one section melody, be expressed as (the cmd=Note_On that opens or closes of a series of musical instrument note (Note), cmd=Note_Off) command sequence, have a time interval parameter w (Wait) before each musical instrument note order, writing down and wanting the length of what SPT at interval, just beginning or stop to synthesize.So, can be unit with one by one SPT time with entire synthesis process, come composite music.Its notion is: the musical instrument note that all channels are assigned, its time interval parameter w is that the mode of chronomere is come timing with SPT.In case when being discharged to the note order of certain musical instrument, promptly begin or stop synthetic this musical instrument note.If there are a plurality of musical instrument note order times to be discharged to, just begin together or stop to synthesize.Each musical instrument note begin synthetic after, will continue to synthesize, up to running into the order that this note closes (cmd=Note_Off), promptly enter the disappearance stage, the stage that disappears synthetic until synthetic amplitude parameter finish during less than certain default value.
Actual musical instrument note synthesis step flow process such as Fig. 1, Fig. 2, Fig. 3 and shown in Figure 4, the step below having comprised.At first, load a music score in one or more synthetic channels (step 100), comprise one or more synthetic channel steps (step 200), input one music score (step 210) are provided, music score has comprised several musical instrument sequence of notes and according to the sequence of notes of music score, each musical instrument note in the music score is corresponded to the time interval parameter w and the command sequence (step 220) of synthetic channel, that is, each synthetic channel comprises one group of musical instrument note command sequence that comprises time interval parameter w.Then, read in the time interval parameter w step (step 110) of first musical instrument note of each channel; Then, set the broadcast musical instrument note (step 120) of each channel, if checking the time interval parameter w of each channel is zero (step 300), then set the composite music waveform (step 310) of each channel, load this musical instrument note order, then set the musical waveform that this channel begins synthetic this musical instrument note if open (Note_On), if pass (Note_Off) is then set the synthetic of this musical instrument note of this channel and entered the disappearance stage, and read in the time interval parameter w (step 320) of the next musical instrument note of this channel.So, can learn when when each musical instrument note begins composite music, enter the disappearance stage.Then, check all channels, all are begun, still unclosed musical instrument note is synthetic, be the musical waveform (step 130) of SPT in regular turn in each channel composition length, because each composition length is the musical waveform of SPT, so must write down length and phase place, amplitude parameter and the synthesis model (synthesizing the decay of starting the music, tenuto or disappearance stage) of each waveform of composite music in synthetic of each channel.Then, be the musical waveform addition output (step 140) of SPT with institute's composition length in each channel, this step is about to the in addition addition of all channels synthesized in the above steps musical waveform.At last, output is through the musical waveform of addition.
So, promptly finish the synthetic of a SPT.And the above-mentioned decay (step 400) of starting the music, tenuto (step 410) and (step 420) the triphasic synthesis mode that disappears are all used in synthesizing each time.Then, the time interval parameter w of the next musical instrument note that each channel read in is subtracted 1 because w represent must process length basic time, above-mentioned flow process is through length basic time of a SPT.Therefore, next SPT is during the time, all time interval parameters that are positioned at the musical instrument note of channel will deduct 1 (step 150), if from beginning to enter the disappearance stage after w chronomere of synthetic process, then the total synthetic music length before entering the disappearance stage is w*SPT sampling spot (samples).Then, whether the broadcast note of checking each channel synthesizes finish (step 160), if not, then get back to the broadcast musical instrument note step (step 120) that this sets each channel, to continue the musical waveform of synthetic next SPT, if, check then whether each channel has arrived last note (step 170), if then finish, if not, then get back to the broadcast musical instrument note step (step 120) that this sets each channel.
Wherein, if the user presses mute key, promptly import a forced termination play instruction, then the music of all channels is synthesized the disappearance stage that jumps directly to.
What must replenish is, non-interruption with TPT was calculated and how long passed through the time interval that the present invention used, but will the sample points that is scaled each bat (SPT).That is: SPT=TPT*SR (Sampling Rate).So, must when the musical waveform of each SPT be synthetic, control its phase place, and reach phase locked effect when the linking of different notes.
So, wait for w basic time length, promptly be representative when every synthetic w*SPT sample point, read the note that next desire is synthetic or stop to synthesize, and begin to synthesize next note (Attack; Press key; Start the music) or stop to synthesize (release; Unclamp key; The disappearance stage) this note.
When synthetic, when whenever synthesizing SPT sample point, make w=w-1, if w=0 then reads the note that next desire is synthetic or stop to synthesize, continue to read next w and note then.
The method that the present invention carried, the synthetic of its music also is applicable to percussion instrument, and the musical waveform of percussion instrument only contains the decling phase of starting the music, and does not comprise tenuto and disappearance stage, as long as when starting the music attenuation data length, amplitude parameter is made as zero gets final product at composition length.The speed of its may command music rhythm, and the audio mixing of various musical instruments output, in addition, if can cooperate the scale production method, only produce other scale with a scale, then can be further with less memory headroom (128 kinds of musical instruments, 61 kinds of percussion instruments, account for 3Mbytes), synthesize various complete symphony melodies, write with the C++ program language at present and finished, and on PC, be proved to be successful.
The above only is the present invention's preferred embodiment wherein, is not to be used for limiting practical range of the present invention; Be every, be all claim of the present invention and contain according to equivalence variation and modification that the present invention did.
Claims (6)
1. a rhythm control and the sound mixing method that music is synthetic is characterized in that, comprises the following steps:
Load a music score at least one synthetic channel;
Read in the time interval parameter w of first musical instrument note in this synthetic channel;
Set this broadcast musical instrument note of this channel;
With this channel composition length musical waveform that is SPT;
The waveform adder output that this is synthetic;
The time interval parameter w of next musical instrument note that this channel read in is subtracted 1;
Check whether synthetic the finishing of broadcast note of this channel; And
Check whether this each channel has arrived last note.
2. rhythm control and sound mixing method that music as claimed in claim 1 is synthetic is characterized in that, load a music score at least one synthetic channel step, also include the following step:
At least one synthetic channel is provided, and this synthetic channel has a time interval parameter w and a command sequence;
Import a music score, this music score has at least one musical instrument sequence of notes; And
Musical instrument sequence of notes in this music score is corresponded to this time interval parameter w and this command sequence in this at least one synthetic channel.
3. rhythm control and sound mixing method that music as claimed in claim 2 is synthetic is characterized in that this command sequence is the state of each musical instrument note in this musical instrument sequence of notes, this state be Push And Release one of them.
4. rhythm control and sound mixing method that music as claimed in claim 1 is synthetic is characterized in that, set in the broadcast musical instrument note step of this channel also to comprise the following steps:
Whether this time interval parameter w that checks this channel is 0;
Set the composite music waveform of this channel; And
Read in this time interval parameter w of next musical instrument note in this channel.
5. rhythm control and sound mixing method that music as claimed in claim 1 is synthetic is characterized in that, in the step with this channel composition length musical waveform that is SPT, also include the following step:
Output one start the music the decling phase waveform and multiply by a fixing amplitude parameter;
Export this recurrence waveform and multiply by the amplitude parameter in a tenuto stage and do the adjustment of amplitude parameter;
Export this recurrence waveform and be multiplied by one disappear the stage amplitude parameter and do the adjustment of amplitude parameter.
6. rhythm control and sound mixing method that music as claimed in claim 1 is synthetic is characterized in that,
When the musical waveform that this channel length is SPT synthesizes, must its phase place of control, so that phase-locking during the linking of different notes.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CNB021274894A CN100342424C (en) | 2002-08-02 | 2002-08-02 | Rhythm control and sound mixing method for musical synthesis |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CNB021274894A CN100342424C (en) | 2002-08-02 | 2002-08-02 | Rhythm control and sound mixing method for musical synthesis |
Publications (2)
Publication Number | Publication Date |
---|---|
CN1472723A CN1472723A (en) | 2004-02-04 |
CN100342424C true CN100342424C (en) | 2007-10-10 |
Family
ID=34143545
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CNB021274894A Expired - Fee Related CN100342424C (en) | 2002-08-02 | 2002-08-02 | Rhythm control and sound mixing method for musical synthesis |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN100342424C (en) |
Families Citing this family (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2014052469A (en) * | 2012-09-06 | 2014-03-20 | Sony Corp | Sound processing device, sound processing method and program |
EP2989136B1 (en) * | 2013-04-24 | 2018-03-07 | Hexion Inc. | Method for preparing a sol-gel resin |
CN104299621B (en) * | 2014-10-08 | 2017-09-22 | 北京音之邦文化科技有限公司 | The timing intensity acquisition methods and device of a kind of audio file |
CN113936628A (en) * | 2021-10-12 | 2022-01-14 | 腾讯音乐娱乐科技(深圳)有限公司 | Audio synthesis method, device, equipment and computer readable storage medium |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH10288984A (en) * | 1997-04-15 | 1998-10-27 | Yamaha Corp | Musical sound synthesizing device |
CN1243303A (en) * | 1998-07-16 | 2000-02-02 | 雅马哈株式会社 | Music composing device, music-composing method and storage medium |
JP2001215973A (en) * | 2000-02-02 | 2001-08-10 | Yamaha Corp | Method and device for creating musical sound control parameter, and recording medium |
-
2002
- 2002-08-02 CN CNB021274894A patent/CN100342424C/en not_active Expired - Fee Related
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH10288984A (en) * | 1997-04-15 | 1998-10-27 | Yamaha Corp | Musical sound synthesizing device |
CN1243303A (en) * | 1998-07-16 | 2000-02-02 | 雅马哈株式会社 | Music composing device, music-composing method and storage medium |
JP2001215973A (en) * | 2000-02-02 | 2001-08-10 | Yamaha Corp | Method and device for creating musical sound control parameter, and recording medium |
Also Published As
Publication number | Publication date |
---|---|
CN1472723A (en) | 2004-02-04 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US7737354B2 (en) | Creating music via concatenative synthesis | |
JP6645956B2 (en) | System and method for portable speech synthesis | |
CN1106001C (en) | Method and appts. for changing the timber and/or pitch of audio signals | |
EP1260964B1 (en) | Music sound synthesis with waveform caching by prediction | |
US20080141850A1 (en) | Recombinant music composition algorithm and method of using the same | |
US5900567A (en) | System and method for enhancing musical performances in computer based musical devices | |
CN1892812A (en) | Tone synthesis apparatus and method | |
CN1717716A (en) | Musical composition data creation device and method | |
CN100342424C (en) | Rhythm control and sound mixing method for musical synthesis | |
CN101093660A (en) | Musical note syncopation method and device based on detection of double peak values | |
CN1674089A (en) | Apparatus and method for processing bell sound | |
CN1763841A (en) | Tone data generation method and tone synthesis method, and apparatus therefor | |
CN1453716A (en) | Portable multimedia music-writing system based on MIDI file | |
CN111816147A (en) | Music rhythm customizing method based on information extraction | |
CN1206603C (en) | Music VF producing method and playback system | |
Fremerey | SyncPlayer–a Framework for Content-Based Music Navigation | |
CN2689391Y (en) | Wave synthesizing system for extending tone | |
CN100349205C (en) | Musical synthesis | |
CN1069985C (en) | Command multi-channel electronic voice recording method | |
CN1924990A (en) | MIDI voice signal playing structure and method and multimedia device for playing same | |
CN1257271A (en) | Continuous sound processor for Chinese phonetic systhesis | |
CN1271592C (en) | Musical scale generating method in music synthesis | |
Li et al. | Research on the Computer Music Production Technology System under the Digital Background | |
CN1661672B (en) | Wavetable music synthesizing system and method based on importance of data to carry out memory management | |
CN1755795B (en) | Method of constructing digital voice database of Chinese characters, Chinese digital series synthesis system and method |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C14 | Grant of patent or utility model | ||
GR01 | Patent grant | ||
CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20071010 Termination date: 20190802 |
|
CF01 | Termination of patent right due to non-payment of annual fee |