CN1549243A - Music file wave form regulating system - Google Patents
Music file wave form regulating system Download PDFInfo
- Publication number
- CN1549243A CN1549243A CNA031362567A CN03136256A CN1549243A CN 1549243 A CN1549243 A CN 1549243A CN A031362567 A CNA031362567 A CN A031362567A CN 03136256 A CN03136256 A CN 03136256A CN 1549243 A CN1549243 A CN 1549243A
- Authority
- CN
- China
- Prior art keywords
- waveform
- amplitude
- adjustment
- music file
- adjustment factor
- 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
Links
Images
Landscapes
- Electrophonic Musical Instruments (AREA)
Abstract
The waveform regulating system is used in regulating the amplitude of complete waveform of a music file. The music file is one combination of several musical notes and may replayed in a hand held device, and each musical note has one corresponding waveform. The waveform regulating system includes amplitude extracting module for extracting the amplitude and amplitude regulating module, which has one preset value stored for comparison with the extracted amplitude to obtain corresponding regulating coefficient and regulates the amplitude of the complete waveform based on the regulating coefficient and corresponding regulating program. The present invention regulates amplitude of music file through amplification or attenuation to the range for the subsequent circuit to accept, and this can obtain basically identical volume during replaying different music files.
Description
Technical field
The present invention refers in particular to a kind of waveform adjustment system that can regulate the amplitude of music file (musicfile) complete waveform about a kind of waveform adjustment system.
Background technology
On handheld apparatus (as mobile phone, personal digital assistant, digital camera), because the consideration of cost of hardware design is very limited usually for the volume range of music and sound effect output.See also Fig. 1, Fig. 1 is the synoptic diagram of the music synthesizer of known application in handheld apparatus.Known music synthesizer 10 can be an integrated circuit (Integrated Circuit, IC) or by the module that several integrated circuit are formed, comprise a music file database 11, a music file demoder 12, a note generator 14, a digital analog converter 16 and an amplifier 18 in it.Being known in the music file processing method in the handheld apparatus, is to analyze a music file 13 by music file demoder 12 earlier, and the result after will analyzing afterwards is sent to note generator 14.Result after 14 in note generator is analyzed according to this music file is converted to pulse-code modulation data 15 with music file 13.16 of digital analog converters are converted to a simulating signal 17 with pulse-code modulation data 15, amplify the back via an amplifier 18 again and promote a loudspeaker 19 to sound.The volume control that music file is play, the amplifier 18 decision enlargement ratios in late-class circuit, in the music file (as the file of midi format) in amplitude of each note (note) and the whole first melody maximum overlapping number of notes (be called polyphony, polyphony), also determined the volume that whole song file finally plays out.In other words, if the enlargement ratio of the amplifier 18 in the late-class circuit immobilizes, then the amplitude size of the complete waveform exported of note generator 14 (waveform of all notes after synthetic in this music file 22 just) also can influence the size of final volume.Late-class circuit herein is meant the circuit after the digital analog converter 16, is example with Fig. 1, and late-class circuit comprises amplifier 18 and loudspeaker 19.
See also Fig. 2, Fig. 2 is the oscillogram of known music file.General way, when playing music (for example as mobile phone ring), it is little that the music file 22 that polyphony is fewer or amplitude is less, the complete waveform amplitude that note generator 14 is exported relatively can complete waveform amplitudes more more than polyphony or the music file 24 that amplitude is bigger.Because volume is less, therefore may relatively be not suitable as the usefulness of caution the tinkle of bells, also underuse the dynamic range of digital analog converter 16.The music file 24 that yet polyphony is more or amplitude is bigger, the amplitude output of the complete waveform that note generator 14 is exported may become excessive, surpass the conversion range of digital analog converter 16, thereby produces the phenomenon of distortion.
Summary of the invention
A purpose of the present invention is to provide a kind of waveform adjustment system, amplitude in order to the complete waveform of regulating music file (musicfile), in the permissible range of late-class circuit, suitably regulate the amplitude output of music file complete waveform, the volume of different music files when playing all can be controlled near the preset value, and not have too big individual difference.
Waveform adjustment of the present invention system comprises an amplitude extraction module, in order to extract the maximum amplitude in this music file complete waveform; An and adjustment module, a preset value prestores, in order to this preset value and this maximum amplitude are imported an adjustment factor computing formula, obtaining the corresponding adjustment factor of this complete waveform, and, regulate the amplitude of this complete waveform according to this adjustment factor and a corresponding adjusting program.The amplitude of this complete waveform just can be exported to digital analog converter with optimal complete waveform amplitude after convergent-divergent is regulated, make the volume of different music when group putting all can reach the purpose of big or small rough unanimity.
The present invention is at different music files, before broadcast, analyze, assessment is also found out the synthetic maximum afterwards amplitude of whole first melody, and calculate the adjustment factor that amplitude is scalable or reduce according to this value, the amplitude of integral body output is amplified or is reduced to reasonable range, no matter reach any type of music file, the volume of its output is the purpose of rough unanimity all.
Can be further understood by following embodiment and accompanying drawing about the advantages and spirit of the present invention.
Description of drawings
Fig. 1 is the synoptic diagram of the music synthesizer of known application in handheld apparatus.
Fig. 2 is the oscillogram of known music file.
Fig. 3 is the synoptic diagram of waveform adjustment of the present invention system 30.
Fig. 4 is the synoptic diagram of note waveform.
Fig. 5 is a note waveform accumulation method synoptic diagram.
Fig. 6 is the waveform adjustment synoptic diagram.
Fig. 7 is the process flow diagram of waveform adjustment method of the present invention.
The drawing reference numeral explanation
30: waveform adjustment system 32: the amplitude extraction module
34: adjustment module
Attack, Delay, Sustain, Release: envelope parameters
A: the maximum amplitude that music file is estimated
B: the maximum amplitude that note generator 12 can be exported
C: the input range of digital analog converter 16
Embodiment
The present invention is a kind of waveform adjustment system in the music synthesizer (Audio Synthesizer), in order to the amplitude of the complete waveform of regulating music file (music file), the volume in the time of different music files can being play when playing in handheld apparatus all is controlled near the preset value.Thus, just can fully regulate the size of final volume by late-class circuit, and the too small or phenomenon of distortion of unlikely generation volume.
See also Fig. 3, Fig. 3 is the synoptic diagram of waveform adjustment of the present invention system 30.Waveform adjustment of the present invention system 30 can be arranged in the music file demoder 12 of Fig. 1, and it comprises an amplitude extraction module 32 and an adjustment module 34.
See also Fig. 3, amplitude extraction module 32 is in order to the maximum amplitude in the complete waveform of extracting each music file.Each music file is to have comprised a plurality of notes, and each note all has the attribute of a musical instrument, and each musical instrument all has a corresponding note waveform.Therefore after music file was sent to music file demoder 12, amplitude extraction module 32 of the present invention can obtain zero-time, length, amplitude, and the attribute such as tone color of each note in decode procedure.See also Fig. 4, Fig. 4 is the synoptic diagram of note waveform.Custom according to general people in the industry, each note waveform can be divided into four envelopes (envelop) parameter, be referred to as ADSR, just Attack as shown in Figure 4 (enhancing), Delay (decay), Sustain (keeping), Release four parameters such as (releasings).Amplitude extraction module 32 after obtaining the ADSR parameter of each note, again through estimating or tabling look-up, can obtain the amplitude of this music file at certain time point at the decoding music file.
See also Fig. 5, Fig. 5 is a note waveform accumulation method synoptic diagram.The complete waveform of music file is to be repeated to add up and produced by a plurality of note waveforms, explains for convenience, next adds up with two note waveforms 42,44 and is explained.In the example of Fig. 5, transverse axis is a time shaft, and the longitudinal axis is then represented amplitude.For convenience of description, the longitudinal axis among Fig. 5 is the absolute value for envelope range value, so the manifestation mode of the waveforms amplitude of note is slightly different with Fig. 2, Fig. 4.Wherein, note waveform 42 is a certain particular note with piano performance; 44 of note waveforms are a certain particular note of playing with guitar.By among Fig. 5 as can be seen, when two note waveforms 42,44 were overlapping, maximum amplitude can be estimated to occur about the end in the Attack stage of second note 44 waveform.Therefore, can derive, when a plurality of note waveforms are overlapping, need only the amplitude of calculating this note at the time point of the Attack of each note waveform end by Fig. 5, and the amplitude of accumulation calculating other overlapping notes this moment, the sizes values of overlapping amplitude 46 at this moment can be obtained.
Therefore, amplitude extraction module 32 of the present invention be all note waveforms add up finish after, obtain a maximum amplitude after analyzing the complete waveform of whole music file.In another preferred embodiment, the present invention also can utilize a waveform table, and it is in order to store the corresponding waveform of described each note.Amplitude extraction module 32 of the present invention can check in the amplitude that each time point adds up with lookup table mode according to this waveform table, and after the more whole complete waveform and must this maximum amplitude.
As shown in Figure 3, amplitude extraction module 32 behind the maximum amplitude of the complete waveform that obtains music file, adjustment module 34 can begin with Fig. 1 in 14 collaborative works of note generator, carry out an adjusting program to regulate the amplitude size of whole complete waveform.Adjustment module 34 is the preset values that prestore, and this preset value can and get by digital analog converter 16 acceptable maximum amplitudes reckonings, and this preset value is to be not more than this digital analog converter 16 acceptable maximum amplitudes basically.Adjustment module 34 with the maximum amplitude of this preset value and this complete waveform import an adjustment factor computing formula, to obtain the corresponding adjustment factor of this complete waveform, and with these note generator 14 collaborative works, with according to this adjustment factor and a corresponding adjusting program, regulate the amplitude size of this complete waveform.The collaborative work of indication herein is meant by adjustment module adjustment factor is imported note generator 14, is regulated the amplitude of this complete waveform according to an adjusting program by note generator 14 in addition.In the present embodiment, adjustment module 34 is arranged in the music file demoder 12, yet in category of the present invention, this adjustment module 34 also can be integrated in this note generator 14.
See also Fig. 6, Fig. 6 is the waveform adjustment synoptic diagram, and wherein A is the maximum amplitude that music file is estimated; C is the normal input range of digital analog converter 16 among Fig. 1, for example :-32767 to+32767; B is a preset value, is the absolute values that are digital analog converter 16 normal input maximum amplitude scopes in the present embodiment, just 32767.In the present invention's one preferred embodiment, the computing formula of adjustment factor is:
Adjustment factor=B/A,
Learn thus, adjustment module 34 is sent in the decoded data of note generator 14, the amplitude of all note waveforms all is multiplied by after this adjustment factor, and just the maximum amplitude that can make note generator 14 output to digital analog converter 16 reaches the preset value that this adjustment module prestores.Adjustment module 34 is multiplied by the purpose that the adjustment factor of being tried to achieve can reach every first melody volume unanimity at the amplitude that each is sent to the note waveform of note generator 14.Because in the same music file, the ratio that all notes amplified or dwindled is all the same, so can not destroy the former sound of whole first melody, also can keep the relative volume between each note.
In another preferred embodiment of the present invention, the computing formula of adjustment factor is:
Adjustment factor=B-A
Learn thus, adjustment module 34 is sent in the decoded data of note generator 14, the amplitude of all note waveforms adds all after this adjustment factor that the maximum amplitude translation that just can make note generator 14 output to digital analog converter 16 reaches the preset value that this adjustment module prestores.Adjustment module 34 can reach the purpose of the rough unanimity of every first melody volume at each as above each music file adjustment factor of distinctly trying to achieve of amplitude that is sent to the note waveform of note generator 14.
See also Fig. 7, Fig. 7 is the process flow diagram of waveform adjustment method of the present invention.Comprehensive the above, waveform adjustment method of the present invention comprises the following step:
Step 60: receive a music file.
Step 62: estimate that each note waveform is to obtain a complete waveform in this music file.
Step 64: extract the maximum amplitude in this complete waveform.
Step 66: with a preset value and this maximum amplitude import an adjustment factor computing formula, to obtain the corresponding adjustment factor of this complete waveform.
Step 68:, regulate this complete waveform according to this adjustment factor and a corresponding adjusting program.
Learn thus, the present invention is at different music files, before broadcast, analyze earlier, assessment is also found out the synthetic maximum afterwards amplitude of whole first melody, and calculate the adjustment factor that volume is scalable or reduce according to this value, amplify or be reduced to reasonable range with the amplitude after melody is synthetic, reach no matter any music file, the volume of its output is the purpose of rough unanimity all, can avoid in the known technology, export too small, the excessive again problem that causes distorsion of volume when exporting some music file of some music file volume.
By the above detailed description of preferred embodiments, be to wish to know more to describe feature of the present invention and spirit, and be not to come category of the present invention is limited with above-mentioned disclosed preferred embodiment.On the contrary, its objective is hope can contain various changes in the present invention and have the equivalence configuration.
Claims (16)
1. waveform adjustment system is in order to regulate the waveforms amplitude of a music file.This music file is to be combined by a plurality of notes, and each note also has a corresponding waveform, and this waveform adjustment system comprises:
One amplitude extraction module is in order to extract the maximum amplitude in this waveform; And
One adjustment module, the preset value that prestores is in order to import an adjustment factor computing formula to obtain the corresponding adjustment factor of this waveform with this preset value and this maximum amplitude; And
According to this adjustment factor and a corresponding adjusting program, regulate this complete waveform amplitude.
2. waveform adjustment as claimed in claim 1 system, wherein this adjustment factor computing formula is used to calculate a ratio of this preset value and this maximum amplitude, and with this ratio as this adjustment factor.
3. waveform adjustment as claimed in claim 2 system should the adjusting program be that all amplitudes in this complete waveform be multiply by this adjustment factor wherein.
4. waveform adjustment as claimed in claim 1 system, wherein this adjustment factor computing formula is used to calculate a difference of this preset value and this maximum amplitude, and with this difference as this adjustment factor.
5. waveform adjustment as claimed in claim 4 system should the adjusting program be with the whole translation of this complete waveform according to this adjustment factor wherein.
6. waveform adjustment as claimed in claim 1 system further comprises a waveform table, in order to store the corresponding waveform of described each note.
7. waveform adjustment as claimed in claim 6 system, wherein this amplitude extraction module checks in an amplitude of each time point according to this waveform table with lookup table mode, and is compared and must this maximum amplitude.
8. waveform adjustment as claimed in claim 1 system, wherein this amplitude extraction module is to add up described each waveform obtaining an amplitude of each time point, and is compared and must this maximum amplitude.
9. waveform adjustment method, in order to regulate the waveforms amplitude of a music file, this music file is to be combined by a plurality of notes, and each note also has a corresponding waveform, and this waveform adjustment method comprises the following step:
Extract the maximum amplitude in this complete waveform; And
One preset value and this maximum amplitude are imported an adjustment factor computing formula to obtain the corresponding adjustment factor of this waveform; And
According to this adjustment factor and a corresponding adjusting program, regulate this waveforms amplitude.
10. waveform adjustment method as claimed in claim 9, wherein this adjustment factor computing formula is used to calculate a ratio of this preset value and this maximum amplitude, and with this ratio as this adjustment factor.
11. waveform adjustment method as claimed in claim 9 should the adjusting program be that all amplitudes in this waveform be multiply by this adjustment factor wherein.
12. waveform adjustment method as claimed in claim 9, wherein this adjustment factor computing formula is used to calculate a difference of this preset value and this maximum amplitude, and with this difference as this adjustment factor.
13. waveform adjustment method as claimed in claim 12 should the adjusting program be with the whole translation of this waveform according to this adjustment factor wherein.
14. waveform adjustment method as claimed in claim 9 further comprises a waveform table, in order to store the corresponding waveform of described each note.
15. waveform adjustment method as claimed in claim 14, wherein this amplitude extraction step is to check in an amplitude of each time point according to this waveform table with lookup table mode, and is compared and must this maximum amplitude.
16. waveform adjustment method as claimed in claim 9, wherein this amplitude extraction step is to add up described each waveform obtaining an amplitude of each time point, and is compared and must this maximum amplitude.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CNB031362567A CN100386798C (en) | 2003-05-20 | 2003-05-20 | Music file wave form regulating system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CNB031362567A CN100386798C (en) | 2003-05-20 | 2003-05-20 | Music file wave form regulating system |
Publications (2)
Publication Number | Publication Date |
---|---|
CN1549243A true CN1549243A (en) | 2004-11-24 |
CN100386798C CN100386798C (en) | 2008-05-07 |
Family
ID=34323275
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CNB031362567A Expired - Fee Related CN100386798C (en) | 2003-05-20 | 2003-05-20 | Music file wave form regulating system |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN100386798C (en) |
Cited By (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1953047B (en) * | 2005-10-21 | 2010-06-23 | 英华达(南京)科技有限公司 | Control system of volume range and method thereof |
CN101923860B (en) * | 2009-06-11 | 2012-07-04 | 英华达(南京)科技有限公司 | Audio softening system, device and method |
CN107506170A (en) * | 2017-08-18 | 2017-12-22 | 广东欧珀移动通信有限公司 | volume adjusting method, device, terminal device and storage medium |
CN109859729A (en) * | 2019-01-21 | 2019-06-07 | 北京小唱科技有限公司 | Wave-shape amplitude control method and device are carried out to audio |
CN110491366A (en) * | 2019-07-02 | 2019-11-22 | 招联消费金融有限公司 | Audio smoothing processing method, device, computer equipment and storage medium |
CN113192529A (en) * | 2021-04-28 | 2021-07-30 | 广州繁星互娱信息科技有限公司 | Sound source data repairing method, device, terminal and storage medium |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2011014906A1 (en) * | 2009-08-02 | 2011-02-10 | Peter Blamey | Fitting of sound processors using improved sounds |
Family Cites Families (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US4214503A (en) * | 1979-03-09 | 1980-07-29 | Kawai Musical Instrument Mfg. Co., Ltd. | Electronic musical instrument with automatic loudness compensation |
JP3625880B2 (en) * | 1994-12-02 | 2005-03-02 | 株式会社ソニー・コンピュータエンタテインメント | Sound generator |
US5768628A (en) * | 1995-04-14 | 1998-06-16 | Nvidia Corporation | Method for providing high quality audio by storing wave tables in system memory and having a DMA controller on the sound card for transferring the wave tables |
KR0179815B1 (en) * | 1995-12-31 | 1999-04-01 | 문정환 | Voice generating circuit and its voice generating method for digital |
FR2805072B1 (en) * | 2000-02-16 | 2002-04-05 | Touchtunes Music Corp | METHOD FOR ADJUSTING THE SOUND VOLUME OF A DIGITAL SOUND RECORDING |
JP2002109824A (en) * | 2000-09-29 | 2002-04-12 | Matsushita Electric Ind Co Ltd | Method for recording digital audio signal and its device |
JP2002140072A (en) * | 2000-10-31 | 2002-05-17 | Kawai Musical Instr Mfg Co Ltd | Electronic musical instrument and sound volume control method |
JP2002358083A (en) * | 2001-05-31 | 2002-12-13 | Kenwood Corp | Audio device and method and device for sound volume adjustment |
JP2003007038A (en) * | 2001-06-19 | 2003-01-10 | Sony Corp | Music file processor, music file processing method and program for the method |
-
2003
- 2003-05-20 CN CNB031362567A patent/CN100386798C/en not_active Expired - Fee Related
Cited By (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1953047B (en) * | 2005-10-21 | 2010-06-23 | 英华达(南京)科技有限公司 | Control system of volume range and method thereof |
CN101923860B (en) * | 2009-06-11 | 2012-07-04 | 英华达(南京)科技有限公司 | Audio softening system, device and method |
CN107506170A (en) * | 2017-08-18 | 2017-12-22 | 广东欧珀移动通信有限公司 | volume adjusting method, device, terminal device and storage medium |
CN109859729A (en) * | 2019-01-21 | 2019-06-07 | 北京小唱科技有限公司 | Wave-shape amplitude control method and device are carried out to audio |
CN110491366A (en) * | 2019-07-02 | 2019-11-22 | 招联消费金融有限公司 | Audio smoothing processing method, device, computer equipment and storage medium |
CN110491366B (en) * | 2019-07-02 | 2021-11-09 | 招联消费金融有限公司 | Audio smoothing method and device, computer equipment and storage medium |
CN113192529A (en) * | 2021-04-28 | 2021-07-30 | 广州繁星互娱信息科技有限公司 | Sound source data repairing method, device, terminal and storage medium |
CN113192529B (en) * | 2021-04-28 | 2024-05-10 | 广州繁星互娱信息科技有限公司 | Sound source data restoration method, device, terminal and storage medium |
Also Published As
Publication number | Publication date |
---|---|
CN100386798C (en) | 2008-05-07 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US6191349B1 (en) | Musical instrument digital interface with speech capability | |
US7613612B2 (en) | Voice synthesizer of multi sounds | |
CN1992513A (en) | Effect adding method and effect adding apparatus | |
CN1790478A (en) | Voice effect document playing method and its device | |
CN1549243A (en) | Music file wave form regulating system | |
EP1885156B1 (en) | Hearing-aid with audio signal generator | |
JPS616689A (en) | Electronic musical instrument | |
CN100336413C (en) | Music and speech synthetic device and method for mobile communication terminal | |
JP4132362B2 (en) | Acoustic signal encoding method and program recording medium | |
US20060086239A1 (en) | Apparatus and method for reproducing MIDI file | |
CN1205829C (en) | Music format conversion method for wireless hand-held device | |
KR101005672B1 (en) | Optimisation of midi file reproduction | |
CN110534081B (en) | Real-time playing method and system for converting guitar sound into other musical instrument sound | |
US7151215B2 (en) | Waveform adjusting system for music file | |
JP5569307B2 (en) | Program and editing device | |
JP2001005450A (en) | Method of encoding acoustic signal | |
AU2020104383A4 (en) | Projection filter based universal framework to match the musical notes of synthesizer and indian classical instruments | |
JP4156252B2 (en) | Method for encoding an acoustic signal | |
JPH1173199A (en) | Acoustic signal encoding method and record medium readable by computer | |
JP2008275836A (en) | Document processing method and device for reading aloud | |
JP3935745B2 (en) | Method for encoding acoustic signal | |
CN1178964A (en) | Sound signal processor | |
KR100689495B1 (en) | MIDI playback equipment and method | |
EP1017039B1 (en) | Musical instrument digital interface with speech capability | |
KR20210050647A (en) | Instrument digital interface playback device 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 | ||
CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20080507 Termination date: 20190520 |