CN100386798C - Music file wave form regulating system - Google Patents
Music file wave form regulating system Download PDFInfo
- Publication number
- CN100386798C CN100386798C CNB031362567A CN03136256A CN100386798C CN 100386798 C CN100386798 C CN 100386798C CN B031362567 A CNB031362567 A CN B031362567A CN 03136256 A CN03136256 A CN 03136256A CN 100386798 C CN100386798 C CN 100386798C
- Authority
- CN
- China
- Prior art keywords
- waveform
- adjustment
- amplitude
- 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.)
- Expired - Fee Related
Links
Images
Abstract
The present invention relates to a waveform regulating system which is used for regulating the amplitude value of a complete waveform of a music file. The music file is composed of a plurality of notes and can be played in a handheld apparatus; each note has a corresponding waveform. The waveform regulating system comprises an amplitude value extraction module and a regulating module, wherein the amplitude value extraction module is used for extracting the maximum amplitude value of the complete waveform; a preset value is prestored in the regulating module so that the preset value and the maximum amplitude value are input into a regulating coefficient computation formula so as to obtain a regulating coefficient corresponding to the complete waveform; the amplitude value of the complete waveform is regulated according to the regulating coefficient and a corresponding regulating program. The present invention is used for amplifying or decreasing the output amplitude value of the music file to a maximum range that a post-level circuit can accept so that sound volume output by the waveform regulating system can be appropriately consistent when different music files are played.
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 estimating in this music file each note waveform obtaining a complete waveform, and extracts the maximum amplitude in this 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 all adds after this adjustment factor, just can make the maximum amplitude translation of note generator 14 output column of figure analog converters 16 reach 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 in order to estimating in this music file each note waveform obtaining a complete waveform, and extracts the maximum amplitude in this complete 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 complete 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:
Estimate in this music file each note waveform obtaining a complete waveform, and 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 complete 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 complete 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 complete 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 CN1549243A (en) | 2004-11-24 |
CN100386798C true 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 (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20120224733A1 (en) * | 2009-08-02 | 2012-09-06 | Peter John Blamey | Fitting of sound processors using improved sounds |
Families Citing this family (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 |
CN109859729B (en) * | 2019-01-21 | 2021-03-05 | 北京小唱科技有限公司 | Method and device for controlling waveform amplitude of audio |
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 |
Citations (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 |
CN1151062A (en) * | 1994-12-02 | 1997-06-04 | 索尼公司 | Electronic sound source having reduced spurious sounding |
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 |
US5880387A (en) * | 1995-12-31 | 1999-03-09 | Lg Semicon Co., Ltd. | Digital sound processor having a slot assigner |
JP2001324997A (en) * | 2000-02-16 | 2001-11-22 | Touchtunes Music Corp | Method to adjust digital sound recording volume |
JP2002109824A (en) * | 2000-09-29 | 2002-04-12 | Matsushita Electric Ind Co Ltd | Method for recording digital audio signal and its device |
JP2002358083A (en) * | 2001-05-31 | 2002-12-13 | Kenwood Corp | Audio device and method and device for sound volume adjustment |
CN1392556A (en) * | 2001-06-19 | 2003-01-22 | 索尼公司 | Music file processor, music file processing method and its program |
US6548749B2 (en) * | 2000-10-31 | 2003-04-15 | Kabushiki Kaisha Kawai Gakki Seisakusho | Electronic musical instrument and tone volume control method |
-
2003
- 2003-05-20 CN CNB031362567A patent/CN100386798C/en not_active Expired - Fee Related
Patent Citations (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 |
CN1151062A (en) * | 1994-12-02 | 1997-06-04 | 索尼公司 | Electronic sound source having reduced spurious sounding |
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 |
US5880387A (en) * | 1995-12-31 | 1999-03-09 | Lg Semicon Co., Ltd. | Digital sound processor having a slot assigner |
JP2001324997A (en) * | 2000-02-16 | 2001-11-22 | Touchtunes Music Corp | Method to adjust digital sound recording volume |
JP2002109824A (en) * | 2000-09-29 | 2002-04-12 | Matsushita Electric Ind Co Ltd | Method for recording digital audio signal and its device |
US6548749B2 (en) * | 2000-10-31 | 2003-04-15 | Kabushiki Kaisha Kawai Gakki Seisakusho | Electronic musical instrument and tone volume control method |
JP2002358083A (en) * | 2001-05-31 | 2002-12-13 | Kenwood Corp | Audio device and method and device for sound volume adjustment |
CN1392556A (en) * | 2001-06-19 | 2003-01-22 | 索尼公司 | Music file processor, music file processing method and its program |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20120224733A1 (en) * | 2009-08-02 | 2012-09-06 | Peter John Blamey | Fitting of sound processors using improved sounds |
Also Published As
Publication number | Publication date |
---|---|
CN1549243A (en) | 2004-11-24 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US6191349B1 (en) | Musical instrument digital interface with speech capability | |
JP4701684B2 (en) | Voice processing apparatus and program | |
US5446238A (en) | Voice processor | |
US7945446B2 (en) | Sound processing apparatus and method, and program therefor | |
CN100386798C (en) | Music file wave form regulating system | |
JP2879948B2 (en) | Audio processing device | |
JP2002215195A (en) | Music signal processor | |
EP1885156B1 (en) | Hearing-aid with audio signal generator | |
KR980011002A (en) | Voice signal processing device | |
KR100636906B1 (en) | MIDI playback equipment and method thereof | |
US7151215B2 (en) | Waveform adjusting system for music file | |
JP2001117578A (en) | Device and method for adding harmony sound | |
JP5569307B2 (en) | Program and editing device | |
JP2008275836A (en) | Document processing method and device for reading aloud | |
JPS58123591A (en) | Electronic musical instrument | |
JP3262981B2 (en) | Audio processing device | |
JP3977654B2 (en) | Waveform generator | |
JPH1031496A (en) | Musical sound generating device | |
JP3778361B2 (en) | Sound source device and electronic device equipped with sound source device | |
Tignor | Hacking Pärt: A Robust, Compositionally-Based System for Generating Live Harmonies Christopher Tignor | |
KR100689495B1 (en) | MIDI playback equipment and method | |
JP3935745B2 (en) | Method for encoding acoustic signal | |
EP1017039B1 (en) | Musical instrument digital interface with speech capability | |
JPS6159397A (en) | Voice input reproducer | |
Williams | Distorting Jazz Guitar: Distortion as Effect, Creative Tool andExtension of the Instrument |
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 |