CN101582258B - Music synthetic method and device - Google Patents

Music synthetic method and device Download PDF

Info

Publication number
CN101582258B
CN101582258B CN 200910079315 CN200910079315A CN101582258B CN 101582258 B CN101582258 B CN 101582258B CN 200910079315 CN200910079315 CN 200910079315 CN 200910079315 A CN200910079315 A CN 200910079315A CN 101582258 B CN101582258 B CN 101582258B
Authority
CN
China
Prior art keywords
user
note
state
breath signal
value
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
Application number
CN 200910079315
Other languages
Chinese (zh)
Other versions
CN101582258A (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.)
FUZHOU ZHONGXING ELECTRONICS Co Ltd
Original Assignee
Vimicro Corp
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 Vimicro Corp filed Critical Vimicro Corp
Priority to CN 200910079315 priority Critical patent/CN101582258B/en
Publication of CN101582258A publication Critical patent/CN101582258A/en
Application granted granted Critical
Publication of CN101582258B publication Critical patent/CN101582258B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Electrophonic Musical Instruments (AREA)

Abstract

The invention discloses a music synthetic method and a device for realizing music synthesis of play wind instruments via a computer so as to realize playing wind instruments via a computer. The music synthetic method provided by the invention comprises steps as follows: confirming the status of the user breath signal by comparing the energy envelop of the user breath signal with a preset threshold; confirming a musical note corresponding to the value of a note key selected by a user according to the correspondence relation of the value of the note key preset and musical note; synthesizing music by controlling the status of the user breath signal using the musical note corresponding to the value of the note key selected by a user.

Description

A kind of music synthesis method and device
Technical field
The present invention relates to technical field of computer information processing, relate in particular to a kind of music synthesis method and device.
Background technology
At present, electronic musical instrument rises gradually, is mellotron the earliest, has engendered afterwards other more electronic musical instrument.Because electronic musical instrument is than the easier grasp of traditional instrument, and can play out various tone color, therefore be subject to users' favor.
Playing wind instruments kind musical instrument is a kind of of musical instrument, and general blowing instrument is become by the perforated pipe subgroup.Playing wind instruments kind musical instrument generally needs the player to use rhythm and the intensity of Breathing control music on one side, will use certain fingering to control pitch on one side.
Play wind instruments kind musical instrument and generally comprise several musical instruments shown in the lower tabulation one:
Chinese Musical Instruments The west musical instrument
* sheng, a reed pipe wind instrument * reed-pope wind instrument * flute * pipe * clings to black * suona horn * vertical bamboo flute * an ancient egg-shaped, holed wind instrument * side bloom flute * clarinet * oboe * hangs down the small size * circular horn of tuning pipe * saxophone * * melodica
Table 1
Computing machine is used widely at present, and prior art can be implemented in plays mellotron on the computing machine, not only can bring great enjoyment, and can make the user be familiar with tone color and the playing method of this musical instrument.Yet, owing to the performance of playing wind instruments kind musical instrument is relevant with people's breath, the performance that therefore can't realize on computers playing wind instruments at present kind musical instrument.
Summary of the invention
The embodiment of the invention provides a kind of music synthesis method and device, and is synthetic in order to the music of playing wind instruments kind musical instrument by computer realization, thus the performance that can realize playing wind instruments kind musical instrument by computing machine.
A kind of music synthesis method that the embodiment of the invention provides comprises:
Compare by energy envelope and predefined threshold value with user breath signal, determine the state of this user breath signal; And, according to the value of the note button that sets in advance and the corresponding relation of note, determine the corresponding note of value of the note button of user selection;
Utilize the corresponding note of value of the note button of user selection, and control composite music by the state of user breath signal.
A kind of music synthesizer that the embodiment of the invention provides comprises:
The breath status determining unit is used for comparing by energy envelope and predefined threshold value with user breath signal, determines the state of this user breath signal;
The note determining unit is used for determining the corresponding note of value of the note button of user selection according to the value of the note button that sets in advance and the corresponding relation of note;
Synthesis unit is used for utilizing the corresponding note of value of the note button of user selection, and the state control composite music by user breath signal.
The embodiment of the invention compares by energy envelope and predefined threshold value with user breath signal, determines the state of this user breath signal; And, according to the value of the note button that sets in advance and the corresponding relation of note, determine the corresponding note of value of the note button of user selection; Utilize the corresponding note of value of the note button of user selection, and the state that passes through user breath signal is controlled composite music, thereby by computer realization to play wind instruments the music of kind musical instrument synthetic, so that can realize playing wind instruments the performance of kind musical instrument by computing machine, bring more enjoyment to the user, satisfied the more demands of user, made the user be familiar with tone color and the playing method of more musical instruments.
Description of drawings
The structural representation that is used for playing the computer system of playing wind instruments kind musical instrument that Fig. 1 provides for the embodiment of the invention;
The structural representation of a kind of music synthesizer that Fig. 2 provides for the embodiment of the invention;
The energy diagram of the user breath signal that Fig. 3 provides for the embodiment of the invention;
The energy envelope court verdict synoptic diagram that Fig. 4 provides for the embodiment of the invention;
The improvement that Fig. 5 provides for the embodiment of the invention energy envelope court verdict synoptic diagram that keeps of high pitch;
Energy envelope court verdict synoptic diagram after the employing zero-crossing rate that Fig. 6 provides for the embodiment of the invention detects;
The user setup interface synoptic diagram that Fig. 7 provides for the embodiment of the invention;
The schematic flow sheet of a kind of music synthesis method that Fig. 8 provides for the embodiment of the invention.
Embodiment
The embodiment of the invention provides a kind of music synthesis method and device, and is synthetic in order to the music of playing wind instruments kind musical instrument by computer realization, thus the performance that can realize playing wind instruments kind musical instrument by computing machine.
The embodiment of the invention provides be used for to realize playing wind instruments computer system that kind musical instrument plays as shown in Figure 1, with microphone as the breath collecting device, realize the selection of note and sound effect by keyboard, music synthesizer control tone color by computer-internal, and in conjunction with the synthetic electronic music of the information such as tone color, breath, note and sound effect, and play this electronic music by loudspeaker.
Referring to Fig. 2, the music synthesizer that the embodiment of the invention provides comprises:
Breath status determining unit 11 is used for comparing by energy envelope and predefined threshold value with user breath signal, determines the state of this user breath signal.
Note determining unit 12 is used for determining the corresponding note of value of the note button of user selection according to the value of the note button that sets in advance and the corresponding relation of note.
Synthesis unit 13 is used for the corresponding note of value of the note button of state, user selection by user breath signal, and the tone color selected in advance of user, composite music.
Preferably, this device also comprises:
Play pattern determining unit 14, be used for determining the performance pattern of user selection.
Note control module 15 is for the value of the corresponding note operating key of performance pattern of determining user selection.
In the embodiment of the invention, set in advance two kinds of different performance patterns for user selection, be respectively amateurish pattern and professional mode.And set in advance the note operating key, such as " Shift " key on the keyboard etc., different performance pattern correspondences the difference in functionality of this note operating key, when the performance pattern of user selection is amateurish pattern, the note operating key is the octave key, and namely the value of note operating key is the value of ottava alta or low octave for being used for the control note; When the performance pattern of user selection was professional mode, the note operating key was the trill key, and namely the value of note operating key is for being used for the whether value of trill of control note.
For example, can set in advance when the performance pattern is amateurish pattern, when the user did not press the note operating key, the note of selecting by keyboard was the note of low octave, if press the note operating key, the note of then selecting by keyboard is the note of ottava alta.In like manner, can set in advance when the performance pattern is professional mode, when the user did not press the note operating key, the note of selecting by keyboard was normal note, if press the note operating key, trill can occur the note of then selecting by keyboard.
Therefore, preferably, described synthesis unit 13 utilizes the corresponding note of value of the note button of user selection, and by the state of user breath signal and the value of note operating key, controls composite music.
The music synthesizer that provides in the embodiment of the invention can synthesize the music of different tone colors, has namely set in advance multiple tone color for user selection.Therefore, preferably, this device also comprises:
Tone color determining unit 16 is used for the tone color of determining that the user selects in advance.Described synthesis unit 13 utilizes the corresponding note of value of the note button of user selection, and by the state of user breath signal and the value of note operating key, and control is synthetic to have the music of the tone color that the user selects in advance.
The below is elaborated to the principle of work of breath status determining unit 11.
The breath status determining unit 11 of the embodiment of the invention, when the performance pattern was amateurish pattern, the state of determining user breath signal was without the breath state or the breath state is arranged; When the performance pattern was professional mode, the state of determining user breath signal was without breath state, ottava alta state or low octave state.That is to say, when user selection during amateurish pattern, illustrate that this user can't control the switching of high and low octave well by the power of breath, therefore, breath status determining unit 11 only needs to detect having or not of breath and gets final product, and then finishes by the note operating key on the keyboard as for the switching of high and low octave.And for the user of specialty, then can select professional mode, such user can control by the power of breath the switching of high and low octave, therefore, breath status determining unit 11, not only need to detect having or not of breath, also will have in the situation of breath, further judge breath and be in still low octave state of ottava alta state.
User's breath gathers by microphone, for example gathers function by the breath in the api function, just can extract the digital signal of user's breath.Then, the power of user breath signal is analyzed.
At first, user breath signal need to be carried out DC processing through past DC filter (DC Remove), namely eliminates the direct current signal in the user breath signal.Because larger direct current biasing can affect greatly follow-up energy envelope detection and zero-crossing rate detection, therefore needs design go DC filter preferably.The DC filter of going in the embodiment of the invention can adopt 2 rank infinite impulse responses (IIR, InfiniteImpulse Response) Hi-pass filter, and cutoff frequency can be 80Hz.
For example, the waveform of the user breath signal that collects as shown in Figure 3, the first half waveform represents a little less than user's breath, can be judged to be low octave state (can identify with 1), the later half waveform represents that user's breath is stronger, can be judged to be ottava alta state (can identify with 2), middle waveform represents that user breath signal is without breath state (can identify with 0).
Then, user breath signal being carried out respectively energy envelope detects:
Calculate the energy of user breath signal, the formula of employing is as follows:
Eng(i)=sig(i)*sig(i),i=0---L-1
Wherein, Eng represents energy, and sig represents signal, and L represents the length of a frame signal, and i represents sampled point.
Obtain showing the ENERGY E ng (i) of i sampled point user breath signal afterwards, utilized Eng (i) respectively by following formulas Extraction energy envelope:
Tmp=Tmp*α+Eng(i)*(1-α)
Eng_p(i)=Tmp
Wherein, the energy envelope of Eng_p (i) expression i sampled point user breath signal, α represents the energy envelope smoothing factor, 0≤α≤1.
The embodiment of the invention is considered the characteristics of user's breath, extraction to the energy envelope of user breath signal improves, and with decline (weakening) process different energy envelope smoothing factors is set respectively for the rising of user breath signal (enhancing) process in advance.That is:
If Eng (i)>Tmp, then:
Tmp=Tmp*α+Eng(i)*(1-α)
If Eng (i)≤Tmp, then:
Tmp=Tmp*β+Eng(i)*(1-β)
The embodiment of the invention is in order to strengthen the maintenance effect of user's breath, and the principle that can adopt fast liter to fall slowly namely arranges α<β.
At last, the energy envelope of the user breath signal of each sampled point is averaged in each frame that the embodiment of the invention will obtain, as the value Eng_avg of the energy envelope of this framed user's breath signal, that is:
Eng_avg=(Eng_p(0)+...+Eng_p(L-1))/L
Preferably, for each framed user's breath signal, breath status determining unit 11 determines that the operation of its states specifically comprises: the energy envelope of this framed user's breath signal and predefined first threshold and Second Threshold are compared, and wherein first threshold is less than Second Threshold; If the energy envelope of this framed user's breath signal, determines then that the state of this framed user's breath signal is without the breath state less than first threshold; If the energy envelope of this framed user's breath signal, determines then that this framed user's breath signal is in the ottava alta state greater than Second Threshold; If the energy envelope of this framed user's breath signal is more than or equal to first threshold, and be less than or equal to Second Threshold, determine that then this framed user's breath signal is in low octave state.
Particularly, can set first threshold and Second Threshold according to test figure, suppose that first threshold represents with ThresholdL, Second Threshold represents that with ThresholdH Eng_avg represents the energy envelope of the user breath signal that present frame is determined, then:
If Eng_avg<ThresholdL judges that then present frame is in without the breath state, namely the user does not blow to the breath collecting device, can represent with 0.
If Eng_avg>ThresholdH judges that then the user breath signal of present frame is in the ottava alta state, can represent with 2.
If ThresholdL≤Eng_avg≤ThresholdH judges that then the user breath signal of present frame is in low octave state, can represent with 1.
For example, the result who user breath signal shown in Figure 3 is judged by energy envelope as shown in Figure 4, can see from the court verdict of Fig. 4, although can accurately distinguish the low octave state of user's breath and without the breath state, but user's breath that a lot of sampled points are arranged in the ottava alta state is determined for low octave state, cause the reason of this mistake to be: the waveform of user breath signal all be one from low to high, arrive again the process of low gradual change, be equivalent to sinusoidal wave wave form varies trend, therefore for user's breath of ottava alta state, although signal is very strong, but when breath begins and finishes, energy is all lower, therefore is easy to be mistaken for the breath of low octave state.
In order to address this problem, the embodiment of the invention has proposed a kind of algorithm that high pitch keeps that increases, if the i.e. current breath that user's breath is judged to be the ottava alta state, then the energy envelope of follow-up breath then continues this breath is judged to be the breath of ottava alta state as long as can surpass lower first threshold.
Therefore, preferably, if the former frame user breath signal of present frame is in the ottava alta state, and the energy envelope of present frame user breath signal determines then that more than or equal to first threshold the present frame user breath signal is in the ottava alta state.That is to say, if the energy envelope of the user breath signal of present frame is more than or equal to first threshold, and the former frame user breath signal of present frame is in ottava alta breath signal, even then the energy envelope of the user breath signal of present frame is less than or equal to Second Threshold, judge that also the present frame user breath signal is in the ottava alta state.
Adopted high pitch keep behind the algorithm court verdict as shown in Figure 5, can find out by comparison diagram 4 and Fig. 5, adopted high pitch to keep the court verdict behind the algorithm more accurate.Yet, all entirely true at middle part and the afterbody of waveform for the judgement of ottava alta breath as can be seen from Figure 5, but within a period of time of beginning, still the breath misjudgement is low octave breath.Therefore, the embodiment of the invention further adopts another parameter, and namely zero-crossing rate carries out auxiliary judgement.
So-called zero-crossing rate refers to that signal passes through 0 number of times.If breath is faster, then signal is stronger, and namely the energy envelope is larger, and corresponding zero-crossing rate is higher; Otherwise lower.That is to say that the zero-crossing rate of ottava alta breath signal will be higher than the zero-crossing rate of low octave breath signal.
Preferably, adopt zero-crossing rate to the state justify of user breath signal, only be applied in to detect and exist former frames of user's breath to adjudicate, follow-up judgement can be carried out by the decision method of above-mentioned energy envelope.
Therefore, in the embodiment of the invention, for initial front some frames (concrete frame number can arrange according to actual needs) user breath signal, the detected energy envelope is more than or equal to the zero-crossing rate of each framed user's breath signal of first threshold; If the zero-crossing rate of this framed user's breath signal during greater than the zero-crossing rate threshold value that sets in advance, determines that then this framed user's breath signal is in the ottava alta state; Otherwise, determine that this framed user's breath signal is in low octave state.
For example, suppose to make zero-crossing rate to be expressed as ZTR, the value of ZTR can calculate by following formula:
If sig (i) * sig (i+1)<0, then ZTR=ZTR+1.
If namely the user breath signal of continuous two sampled points multiplies each other less than zero, represent that then waveform corresponding to user breath signal passed through zero point one time, therefore need to add 1 to ZTR.
Suppose that the zero-crossing rate threshold value that sets in advance is ThresholdZ, then:
If ZTR>ThresholdZ determines that then the user breath signal of current sampling point is in the ottava alta state;
If ZTR≤ThresholdZ, it is low octave state that the user breath signal of then determining current sampling point is in.
Adopted after zero-crossing rate is adjudicated the state of user breath signal court verdict as shown in Figure 6, as seen from Figure 6, the court verdict of user breath signal state is very accurate.
About fingering input aspect, set in advance the corresponding relation of specific several note keys and note on the keyboard, for example, numerical key 1,2,3,4,5,6,7 respectively corresponding do, re, mi, fa, so, la, si can be set.Further, under amateurish pattern, left and right sides shift key is the octave key, is used for controlling the height octave of each note, i.e. the switching of same note high pitch and bass.When playing, play wind instruments and press the octave key when people presses certain note key, then selected the scale of the ottava alta of the corresponding note of this note key, if do not press the octave key then be the scale of low octave, this design makes them also can adjust freely the height change of tune of note mainly for beginner or the not enough player of more stingy breath of age.Under professional mode, the height octave is controlled by the breath of playing the people, i.e. the playing method of Reality simulation musical instrument, and left and right sides shift key be the trill key at this moment, it can for each note adding tremolo effect, make playing effect truer.Certainly, under amateurish pattern, except the octave key also can arrange the trill operating key.
The described synthesis unit 13 of the embodiment of the invention can be the Midi music synthesizer, according to breath detection and the resulting parameter of keyboard detection, according to specifying tone color to synthesize the Midi music.Wherein, the Timbre Synthesis part is mainly called following windows api function:
At first, open a Midi output device (namely calling the Midi compositor) in music between the synthetic preparatory stage, namely call the midiOutOpen function:
midiOutOpen(
PHMIDIOUT lphMidiOut { is used for the pointer of Returning equipment handle, calls afterwards other again
Function should use this handle }
UINT uDeviceID, { Midi output device sign (ID) }
DWORD dwCallback, { call back function address or window handle }
DWORD dwInstance, { giving the instance data of call back function }
DWORD dwFlags { opens callback option }
);
If the success of midiOutOpen function call, then function returns 0.
In case open a Midi output device and obtained after its equipment handle pointer, just can be to this
The Midi output device sends Midi information, calls the midiOutShortMsg function this moment:
midiOutShortMsg(
HMIDIOUT hmo, { the handle pointer that midiOutOpen obtains }
DWORD dwMsg { Midi format information }
)。
The Midi file is comprised of some Midi information.The kind of Midi information is different, and the byte number that consists of Midi information is also different.But first byte of the Midi information of each kind all is for the byte of this Midi information category of expression, is called state byte.
Wherein, if the size of state byte between 0x80 to 0xEF scope, then the represented information of state byte and music is synthetic the closest, therefore is called music information.Music information is comprised of 8 bits, can be divided into former and later two 4 to it, i.e. a high position and low level, the type of high bit representation Midi information, the sequence number of the passage that low bit representation Midi information is operated, employed music information can comprise following several in the embodiment of the invention:
8 (stop pronunciation), 9 (beginning pronunciation), A (key press setting), B (controller setting),
C (tone color adjusting), D (channel pressure setting), E (Pitchbend Wheel setting).For example: state byte 0x80, decimal number 8 expressions of Gao Siwei stop pronunciation, and low four 0 expressions operate first passage, and therefore whole 0x80 represents to make first passage to stop to sound exactly.
To the music information between the 0x9f scope, the note of appointment is play in expression at 0x90, and this partial information is comprised of three bytes, is respectively applied to represent kind, note number and the sound intensity of music information.
Totally 128 of the note numbers that the Midi compositor can synthesize, numbering from 0 to 127, for example, central C (frequency is 256 hertz pitch, and roll call is " do ") can be No. 60.
In the embodiment of the invention, can give tacit consent to central C and be " do " of low octave, then the corresponding relation of note button and Midi note numbering is shown in following table 2 and table 3:
Button 1 2 3 4 5 6 7
Midi note numbering 60 62 64 65 67 69 71
Table 2: low octave corresponding relation
Button 1 2 3 4 5 6 7
Midi note numbering 72 74 76 77 79 81 83
Table 3: ottava alta corresponding relation
Midi note numbering 60,62,64,65,67,69,71 in the above-mentioned table 2, respectively note do, re, mi, fa, so, la, the si of corresponding low octave.
Midi note numbering 72,74,76,77,79,81,83 in the above-mentioned table 3, respectively note do, re, mi, fa, so, la, the si of corresponding ottava alta.
The loudness scope of sound also is from 0 to 127, and wherein 0 expression does not have sounding, and 127 expression sound are maximum.
To the music information between the 0x8f scope, the note of appointment is closed in expression to size at 0x80, and structure is identical with the Midi information of playing particular note.
Size is at the music information of 0xc0 between the 0xcf scope, the switching of expression tone color, formed by two bytes, first byte represents the kind of music information, the sequence number of the byte representation musical instrument of back, Midi compositor comprise 128 kinds of musical instruments altogether, such as 1 expression piano, 41 expression violins, 75 expression flutes etc.
Size is at the music information of 0xb0 between the 0xbf scope, controller during the expression music is synthetic is selected to arrange, setting such as trill, gradual change of music etc., this information is comprised of three bytes, first byte represents the kind of music information, the title of second byte representation controller, the 3rd byte representation controller parameter.
When finishing Timbre Synthesis, close the Midi output device, i.e. call function: midiOutClose (hMidiOut).
The embodiment of the invention arranges the interface as shown in Figure 7 to what the user provided, when the user plays wind instruments the electron-like musical instrument by the computing machine performance, the user at first will carry out the parameter setting, is followed successively by opening and closing of accompaniment according to interface putting in order from top to bottom, and playing mode is selected and the tone color selection.The embodiment of the invention can also provide the accompaniment effect of similar Karaoke, and namely by having selected the accompaniment option, then the user can play under predefined accompaniment music.For the beginner, can use amateurish pattern, namely use the shift key to carry out the height octave control of note, through adopting professional mode after the suitable exercise, can also use shift key control tremolo effect this moment.In addition, the selection of multiple tone color can also allow the user attempt different music effects.After the parameter setting is finished, just can click start key and play, further, the power that when playing, can also check breath by the volume bar that shows.
Referring to Fig. 8, a kind of music synthesis method that the embodiment of the invention provides comprises step:
S101, compare by energy envelope and predefined threshold value with user breath signal, determine the state of this user breath signal; And, according to the value of the note button that sets in advance and the corresponding relation of note, determine the corresponding note of value of the note button of user selection.
S102, utilize the corresponding note of value of the note button of user selection, and the state control composite music by user breath signal.
Preferably, step S102 comprises:
Determine the tone color that the user selects in advance, and the value of note operating key; Utilize the corresponding note of value of the note button of user selection, and the state by user breath signal and the value of note operating key, control is synthetic to have the music of the tone color that the user selects in advance.
Wherein, the step of determining the value of note operating key comprises:
Determine the performance pattern of user selection, wherein, described performance pattern is amateurish pattern or professional mode;
According to the value corresponding relation of the performance pattern that sets in advance and note operating key, determine the value of the corresponding note operating key of performance pattern of user selection.
The state of user breath signal, the effect of playing under different performance patterns is different.
When described performance pattern was amateurish pattern, the value of note operating key was the value of ottava alta or low octave for being used for the control note; The state of user breath signal is without the breath state or the breath state is arranged, and without the breath state time, does not then read note, does not namely sound, and when the breath state is arranged, then normally reads note.
When described performance pattern was professional mode, the value of note operating key was for being used for the whether value of trill of control note; The state of user breath signal is without breath state, ottava alta state or low octave state, without the breath state time, does not read note, and when the ottava alta state, then reads the note of ottava alta, when low octave state, then reads the note of low octave.
The embodiment of the invention compares by energy envelope and predefined threshold value with user breath signal, determines the state of this user breath signal; And, according to the value of the note button that sets in advance and the corresponding relation of note, determine the corresponding note of value of the note button of user selection; Utilize the corresponding note of value of the note button of user selection, and the state that passes through user breath signal is controlled composite music, thereby by computer realization to play wind instruments the music of kind musical instrument synthetic, so that can realize playing wind instruments the performance of kind musical instrument by computing machine, bring more enjoyment to the user, satisfied the more demands of user, made the user be familiar with tone color and the playing method of more musical instruments.
Obviously, those skilled in the art can carry out various changes and modification to the present invention and not break away from the spirit and scope of the present invention.Like this, if of the present invention these are revised and modification belongs within the scope of claim of the present invention and equivalent technologies thereof, then the present invention also is intended to comprise these changes and modification interior.

Claims (10)

1. music synthesis method is characterized in that the method comprises:
For initial multiframe user breath signal, the detected energy envelope is more than or equal to the zero-crossing rate of each framed user's breath signal of first threshold; If the zero-crossing rate of this framed user's breath signal during greater than the zero-crossing rate threshold value that sets in advance, determines that then this framed user's breath signal is in the ottava alta state; Otherwise, determine that this framed user's breath signal is in low octave state, wherein so-called zero-crossing rate refers to that signal passes through 0 number of times; For follow-up each framed user's breath signal, the energy envelope of this framed user's breath signal and predefined first threshold and Second Threshold are compared, wherein first threshold is less than Second Threshold; If the energy envelope of this framed user's breath signal, determines then that the state of this framed user's breath signal is without the breath state less than first threshold; If the energy envelope of this framed user's breath signal, determines then that this framed user's breath signal is in the ottava alta state greater than Second Threshold; If the energy envelope of this framed user's breath signal is more than or equal to first threshold, and be less than or equal to Second Threshold, determine that then this framed user's breath signal is in low octave state; And, according to the value of the note button that sets in advance and the corresponding relation of note, determine the corresponding note of value of the note button of user selection;
Utilize the corresponding note of value of the note button of user selection, and control composite music by the state of user breath signal.
2. method according to claim 1 is characterized in that, utilizes the corresponding note of value of the note button of user selection, and the step of the control of the state by user breath signal composite music comprises:
Determine the tone color that the user selects in advance, and the value of note operating key;
Utilize the corresponding note of value of the note button of user selection, and the state by user breath signal and the value of note operating key, control is synthetic to have the music of the tone color that the user selects in advance.
3. method according to claim 2 is characterized in that, determines that the step of the value of described note operating key comprises:
Determine the performance pattern of user selection, wherein, described performance pattern is amateurish pattern or professional mode;
According to the value corresponding relation of the performance pattern that sets in advance and note operating key, determine the value of the corresponding note operating key of performance pattern of user selection.
4. method according to claim 3 is characterized in that,
When described performance pattern was amateurish pattern, the value of described note operating key was the value of ottava alta or low octave for being used for the control note;
When described performance pattern was professional mode, the value of described note operating key was for being used for the whether value of trill of control note.
5. according to claim 3 or 4 described methods, it is characterized in that,
When described performance pattern was amateurish pattern, the state of described user breath signal was without the breath state or the breath state is arranged;
When described performance pattern was professional mode, the state of described user breath signal was without breath state, ottava alta state or low octave state.
6. a music synthesizer is characterized in that, described device comprises:
The breath status determining unit is used for for initial multiframe user breath signal, and the detected energy envelope is more than or equal to the zero-crossing rate of each framed user's breath signal of first threshold; If the zero-crossing rate of this framed user's breath signal during greater than the zero-crossing rate threshold value that sets in advance, determines that then this framed user's breath signal is in the ottava alta state; Otherwise, determine that this framed user's breath signal is in low octave state, wherein so-called zero-crossing rate refers to that signal passes through 0 number of times; For follow-up each framed user's breath signal, the energy envelope of this framed user's breath signal and predefined first threshold and Second Threshold are compared, wherein first threshold is less than Second Threshold; If the energy envelope of this framed user's breath signal, determines then that the state of this framed user's breath signal is without the breath state less than first threshold; If the energy envelope of this framed user's breath signal, determines then that this framed user's breath signal is in the ottava alta state greater than Second Threshold; If the energy envelope of this framed user's breath signal is more than or equal to first threshold, and be less than or equal to Second Threshold, determine that then this framed user's breath signal is in low octave state;
The note determining unit is used for determining the corresponding note of value of the note button of user selection according to the value of the note button that sets in advance and the corresponding relation of note;
Synthesis unit is used for utilizing the corresponding note of value of the note button of user selection, and the state control composite music by user breath signal.
7. device according to claim 6 is characterized in that, this device also comprises:
Play pattern determining unit, be used for determining the performance pattern of user selection, wherein, described performance pattern is amateurish pattern or professional mode;
The note control module is for the value of the corresponding note operating key of performance pattern of determining user selection;
Described synthesis unit utilizes the corresponding note of value of the note button of user selection, and by the state of user breath signal and the value of note operating key, controls composite music.
8. device according to claim 7 is characterized in that, this device also comprises:
The tone color determining unit is used for the tone color of determining that the user selects in advance;
Described synthesis unit utilizes the corresponding note of value of the note button of user selection, and by the state of user breath signal and the value of note operating key, and control is synthetic to have the music of the tone color that the user selects in advance.
9. according to claim 7 or 8 described devices, it is characterized in that described note control module when described performance pattern is amateurish pattern, determines that the value of described note operating key is the value of ottava alta or low octave for being used for the control note; When described performance pattern was professional mode, the value of determining described note operating key was for being used for the whether value of trill of control note.
10. according to claim 7 or 8 described devices, it is characterized in that, described breath status determining unit, when described performance pattern was amateurish pattern, the state of determining described user breath signal was for without the breath state or the breath state is arranged; When described performance pattern was professional mode, the state of determining described user breath signal was without breath state, ottava alta state or low octave state.
CN 200910079315 2009-03-05 2009-03-05 Music synthetic method and device Expired - Fee Related CN101582258B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN 200910079315 CN101582258B (en) 2009-03-05 2009-03-05 Music synthetic method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN 200910079315 CN101582258B (en) 2009-03-05 2009-03-05 Music synthetic method and device

Publications (2)

Publication Number Publication Date
CN101582258A CN101582258A (en) 2009-11-18
CN101582258B true CN101582258B (en) 2013-03-27

Family

ID=41364381

Family Applications (1)

Application Number Title Priority Date Filing Date
CN 200910079315 Expired - Fee Related CN101582258B (en) 2009-03-05 2009-03-05 Music synthetic method and device

Country Status (1)

Country Link
CN (1) CN101582258B (en)

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6362411B1 (en) * 1999-01-29 2002-03-26 Yamaha Corporation Apparatus for and method of inputting music-performance control data
JP3702691B2 (en) * 1999-01-29 2005-10-05 ヤマハ株式会社 Automatic performance control data input device

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6362411B1 (en) * 1999-01-29 2002-03-26 Yamaha Corporation Apparatus for and method of inputting music-performance control data
JP3702691B2 (en) * 1999-01-29 2005-10-05 ヤマハ株式会社 Automatic performance control data input device

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
babyfish0226.Ocarina-Iphone上第一款用吹的音乐游戏来咯.《IPHONETW》.www.iphonetw.net/AppStore/Ocarina,2008, *

Also Published As

Publication number Publication date
CN101582258A (en) 2009-11-18

Similar Documents

Publication Publication Date Title
US10354625B2 (en) Digital sight-singing piano with a fixed-solfège keyboard, continuous keys and adjustable tones by kneading piano keys
CN101577113B (en) Music synthesis method and device
US8802956B2 (en) Automatic accompaniment apparatus for electronic keyboard musical instrument and fractional chord determination apparatus used in the same
CN110010106B (en) Automatic music score system of playing music
CN107146597A (en) A kind of self-service tuning system of piano and tuning method
CN106448634A (en) Intelligent voice piano system capable of prompting key position and tuning tone
JPS59197090A (en) Automatic performer
CN205541916U (en) Intelligence piano system with suggestion location of key and recording function of grading
CN101582258B (en) Music synthetic method and device
JPH05173557A (en) Automatic score generation device
CN205541905U (en) Intelligence piano system with suggestion location of key and function of grading
US7534952B2 (en) Performance data processing apparatus and program
AT508837B1 (en) ELECTRONIC SOUND PRODUCTION DEVICE
CN201369158Y (en) High-pitch sub-tube cucurbit flute
CN205541912U (en) Intelligence piano system with suggestion location of key and video function that grades
CN201262822Y (en) High octaves chord hulusi (Chinese musical instrument)
JPS59204095A (en) Musical sound pitch varying apparatus
JP3123521B2 (en) Electronic musical instrument
JP2005234304A (en) Performance sound decision apparatus and performance sound decision program
JP2760301B2 (en) Electronic musical instrument
CN2583765Y (en) Electroacoustic languet dual purpose accordion
CN205541914U (en) Intelligence piano system with suggestion location of key function
JP2023081200A (en) Fingering table display tool and fingering table display method
KR20100095226A (en) An apparatus for inputting playing condition of harmonics and the musical instruments adopting the said apparatus
JP2760346B2 (en) Electronic musical instrument system

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
ASS Succession or assignment of patent right

Owner name: FUZHOU VIMICRO CO., LTD.

Free format text: FORMER OWNER: BEIJING VIMICRO CORPORATION

Effective date: 20140902

C41 Transfer of patent application or patent right or utility model
COR Change of bibliographic data

Free format text: CORRECT: ADDRESS; FROM: 100083 HAIDIAN, BEIJING TO: 350108 FUZHOU, FUJIAN PROVINCE

TR01 Transfer of patent right

Effective date of registration: 20140902

Address after: 350108, Fujian County, Fuzhou City, Minhou Province town of science and technology on the East Road, Haixi hi tech Industrial Park, B building, 3 floor

Patentee after: FUZHOU ZHONGXING ELECTRONICS CO., LTD.

Address before: 100083, Haidian District, Xueyuan Road, Beijing No. 35, Nanjing Ning building, 15 Floor

Patentee before: Beijing Vimicro Corporation

CF01 Termination of patent right due to non-payment of annual fee
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20130327

Termination date: 20170305