CN107750035A - A kind of algorithm of audio playing animation effect - Google Patents
A kind of algorithm of audio playing animation effect Download PDFInfo
- Publication number
- CN107750035A CN107750035A CN201711043518.3A CN201711043518A CN107750035A CN 107750035 A CN107750035 A CN 107750035A CN 201711043518 A CN201711043518 A CN 201711043518A CN 107750035 A CN107750035 A CN 107750035A
- Authority
- CN
- China
- Prior art keywords
- angle
- animation effect
- radian
- radius
- algorithm
- 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.)
- Pending
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04R—LOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
- H04R3/00—Circuits for transducers, loudspeakers or microphones
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04R—LOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
- H04R2430/00—Signal processing covered by H04R, not provided for in its groups
Abstract
The present invention relates to a kind of algorithm of audio playing animation effect, in the origin of coordinate system, determine a fixed high pixel, calculate the coordinate of each loudspeaker center picture point, then the coordinate difference of each loudspeaker center picture point and control central point is calculated, generate the radius of circumcircle, the radian of angle of departure 1 is calculated by just profound theorem again, pass through angle 1 and circumscribed radius of circle, calculate x1 length, generate inscribe diameter of a circle, the radius of inscribed circle is designated as r1, pass through the difference of y1 more than x1 and r1, calculate the radian of angle of departure 3, the radius of circle where calculating each ripple, calculate the radian of angle of departure 4, drawn on the painting canvas of control, by this continuous drafting successively, until drawing ripple needed for whole.The present invention, for the loudspeaker around audio, using Unified Algorithm, corresponding audio playing animation effect is efficiently produced, algorithm is succinct, and animation effect accuracy in computation is high, and system resource overhead is small, beneficial to the details optimization and the prompting of effect of audio playing function.
Description
Technical field
The present invention relates to voice data processing technology field, specifically a kind of algorithm of audio playing animation effect.
Background technology
In computer or mobile device(Mobile phone, tablet personal computer, Baffle Box of Bluetooth etc.)When listening to music or appreciating film, in order to obtain
Obtaining more preferably use feeling and experience, most of users can adjust, set the audio for meeting oneself needs.
Audio just refers to, as the effect manufactured by sound, to refer to promote the sense of reality, atmosphere or the drama message of a scene,
And it is added on the noise on vocal cords or sound.So-called sound then includes musical sound and effect sound.Including digital audio, ambient sound
Effect, MP3 audios(Common audio, professional audio).
Audio or sound effect(Sound effects or Audio effects)It is the artificial sound for manufacturing or strengthening, for increasing
By force to the art of film, electronic game, music or other media or the acoustic processing of other guide.
Common audio is mostly self-defined audio, namely virtual audio, is needed mostly by balanced device(EQUALIZER,
Referred to as EQ)Acquisition is adjusted, regulation EQ values will change audio.
Imitated according to the tuning of EQ features, we will first grasp two concepts:Frequency range(Unit Hz), represent power amplifier
Lowest operating frequency to the scope between maximum operating frequency.Frequency response(Unit decibel dB), the output of power amplifier
Gain is with the phenomenon for changing with frequency input signal and changing.Self-defined audio is exactly by adjusting EQ balanced devices, changing frequency
Rate scope and frequency response, so as to obtain different audios.
Balanced device setting is different, and some are three sections of equilibriums, and some are six sections of equilibriums.Frequency range is more, can adjust audio
Degree is finer and smoother, for example, everybody in PC commonly use《1000 hark》Software just has as many as ten sections of equilibriums.
Very low frequency enhancing bass shock sense(16Hz~60Hz), people, than quick-eared, can give sound to the sensation of the frequency range
Pleasure is with strong sensation.But the frequency range is excessively emphasized, music muddiness can be made.
Low frequency strengthens keynote rhythm(60Hz~250Hz), the frequency range includes the root of rhythm part.Change the frequency range
The balance of music can be changed.Nearby frequency can give people strong sound field stimulation in high loudness to 80Hz, and will not make one not relax
Clothes.Stimulation of 80Hz~125Hz frequency ranges to people is stronger, and can cause sense of discomfort, so loudness is unsuitable excessive.100Hz~250Hz
Frequency range can influence the richness of sound, make sound mellow and full sweet, but can excessively cause music muddy, increase sense of fatigue.
Intermediate frequency changes voice and musical instrument sound(250Hz~2000Hz), the frequency range includes the low-order harmonic of most of musical instruments, carries
Rise and occur too much as phone sample tone color.300Hz~below 500Hz, hence it is evident that decay can make sound lack dynamics sense, feel single
It is thin;This octave of 500Hz~1000Hz is lifted, musical instrument sound can be made to be changed into, like loudspeaker sample sound, noisy sense having been made one when excessive;
This frequency range of 1000Hz~2000Hz is lifted, metallic sound can be sent, changes female voice and high music device.
High intermediate frequency causes auditory fatigue(2kHz~4kHz), the frequency range, which is lifted, can shelter the important identification sound of speech, cause
Sound is spoken with a lisp, and lightness of the frequency range on voice influences maximum, typically should not excessively decay, in order to avoid lightness is reduced, but
Lifting is excessive, human auditory system sensitive volume near particularly 3kHz, easily causes auditory fatigue.
High frequency effect sound field indicators sound lightness(4kHz~16kHz), the frequency range is telepresenc section, can influence voice
With the definition of musical instrument sound.Suitably lifting the frequency range can make sound is bright to protrude, and be advantageous to improve the definition of sound and enrich
Level.5kHz~6kHz can make the low and deep achromatization of sound if any obvious decay.The frequency range loudness is crossed conference generation and made one unbearably
Ear-piercing sense.If 12kHz annexes are excessively lifted, easily causing apparatus overload makes sound scared.
Panorama audio, also referred to as panorama, by haunting surrounding and fluid sound extremely true to nature effect simulation, deduce around audio
The circular sound field of multichannel, sound picture more true to nature can be made at the scene.
Audio is mostly to be set as the location of appreciator around audio, middle position, general next seat(Sofa)Deng,
Some loudspeaker are set in surrounding, in order to simulate the effect of loudspeaker opening and closing, in opening, corresponding loudspeaker needs are in
Existing audio playing animation effect, intuitively to know the working condition of loudspeaker, sound effect algorithms processing can be also called to broadcast accordingly
Voice data in putting.
Because the position of each loudspeaker, angle are different, then corresponding audio playing animation effect is also had any different, and this is to algorithm
Design bring difficulty, if how many loudspeaker, just provide it is how many corresponding to algorithms, be unfavorable for program exploitation and after
The maintenance of phase, also it is unfavorable for saving system resource, improves the fluency of algorithm, is unfavorable for improving the usage experience of user.
The content of the invention
For defect present in prior art, it is an object of the invention to provide a kind of calculation of audio playing animation effect
Method, for the loudspeaker around audio, using Unified Algorithm, corresponding audio playing animation effect is efficiently produced, algorithm is succinct, moves
It is high to draw effect accuracy in computation, system resource overhead is small, beneficial to the details optimization and the prompting of effect of audio playing function.
To achieve the above objectives, the present invention adopts the technical scheme that:
A kind of algorithm of audio playing animation effect, it is characterised in that comprise the following steps:
Step 1, generate transverse and longitudinal axle and form coordinate system,
Step 2, in the origin of coordinate system, i.e., the point that transverse and longitudinal axle intersects, a fixed high pixel is determined,
Step 3, the coordinate of each loudspeaker, and the size of loudspeaker picture are obtained, calculates the coordinate of each loudspeaker center picture point,
Step 4, the coordinate of audio playing animation effect control central point is obtained, then calculates each loudspeaker center picture point and sound
The coordinate difference of frequency playing animation effect control central point, the radius of circumcircle is generated,
Step 5, the data obtained according to abovementioned steps, the radian of angle of departure 1 is calculated by just profound theorem,
By angle 1 and circumscribed radius of circle, x1 length is calculated,
Step 6, the size of sofa picture is obtained, takes value maximum in its width and height as inscribe diameter of a circle,
The radius of inscribed circle is designated as r1,
Step 7, by the difference of y1 more than x1 and r1, the radian of angle of departure 3 is calculated,
Step 8, according to the angle theorem of parallel lines, angle 1 and angle 2 are equal, then:A triangle is constructed to angle 2 and angle 3 and angle 4,
According to required ripple number, the circular radius in each ripple place is calculated,
According to circumscribed radius of circle and just profound theorem, the radian of angle of departure 4 is calculated,
Step 9, angle 1 is added with angle 4, is exactly the radian of this ripple skew, according to the radian of skew, is painted on the painting canvas of control
System,
By this continuous drafting successively, until drawing ripple needed for whole.
On the basis of above-mentioned technical proposal, the fixed high pixel, refer to that height is fixed as the pixel of a preset value, it is high
Degree is designated as y1.
On the basis of above-mentioned technical proposal, the preset value of the height is empirical value, is defaulted as 30 pixels.
The algorithm of audio playing animation effect of the present invention is high using Unified Algorithm for the loudspeaker around audio
Audio playing animation effect corresponding to effect generation, algorithm is succinct, and animation effect accuracy in computation is high, and system resource overhead is small, profit
In the details optimization and the prompting of effect of audio playing function.
Brief description of the drawings
The present invention has drawings described below:
The flow chart of Fig. 1 present invention.
Fig. 2 plays the animation effect principle schematic of music.
Embodiment
The present invention is described in further detail below in conjunction with accompanying drawing.
As shown in Figure 1, 2, the algorithm of audio playing animation effect of the present invention, comprises the following steps:
Step 1, generate transverse and longitudinal axle and form coordinate system,
Step 2, in the origin of coordinate system, i.e., the point that transverse and longitudinal axle intersects, a fixed high pixel is determined,
Step 3, the coordinate of each loudspeaker, and the size of loudspeaker picture are obtained, calculates the coordinate of each loudspeaker center picture point,
Step 4, the coordinate of audio playing animation effect control central point is obtained, then calculates each loudspeaker center picture point and sound
The coordinate difference of frequency playing animation effect control central point, the radius of circumcircle is generated,
Step 5, the data obtained according to abovementioned steps, the radian of angle of departure 1 is calculated by just profound theorem,
By angle 1 and circumscribed radius of circle, x1 length is calculated,
Step 6, the size of sofa picture is obtained, takes value maximum in its width and height as inscribe diameter of a circle,
The radius of inscribed circle is designated as r1,
Step 7, by the difference of y1 more than x1 and r1, the radian of angle of departure 3 is calculated,
Step 8, according to the angle theorem of parallel lines, angle 1 and angle 2 are equal, then:A triangle is constructed to angle 2 and angle 3 and angle 4,
According to required ripple number, the circular radius in each ripple place is calculated,
According to circumscribed radius of circle and just profound theorem, the radian of angle of departure 4 is calculated,
Step 9, angle 1 is added with angle 4, is exactly the radian of this ripple skew, according to the radian of skew, is painted on the painting canvas of control
System,
By this continuous drafting successively, until drawing ripple needed for whole.
On the basis of above-mentioned technical proposal, the fixed high pixel, refer to that height is fixed as the pixel of a preset value, it is high
Degree is designated as y1.
On the basis of above-mentioned technical proposal, the preset value of the height is empirical value, is defaulted as 30 pixels.I.e.:y1=
30 pixels.The empirical value refers to, different according to the difference of the animation effect of presentation, this value.
The content not being described in detail in this specification belongs to prior art known to professional and technical personnel in the field.
Claims (3)
1. a kind of algorithm of audio playing animation effect, it is characterised in that comprise the following steps:
Step 1, generate transverse and longitudinal axle and form coordinate system,
Step 2, in the origin of coordinate system, i.e., the point that transverse and longitudinal axle intersects, a fixed high pixel is determined,
Step 3, the coordinate of each loudspeaker, and the size of loudspeaker picture are obtained, calculates the coordinate of each loudspeaker center picture point,
Step 4, the coordinate of audio playing animation effect control central point is obtained, then calculates each loudspeaker center picture point and sound
The coordinate difference of frequency playing animation effect control central point, the radius of circumcircle is generated,
Step 5, the data obtained according to abovementioned steps, the radian of angle of departure 1 is calculated by just profound theorem,
By angle 1 and circumscribed radius of circle, x1 length is calculated,
Step 6, the size of sofa picture is obtained, takes value maximum in its width and height as inscribe diameter of a circle,
The radius of inscribed circle is designated as r1,
Step 7, by the difference of y1 more than x1 and r1, the radian of angle of departure 3 is calculated,
Step 8, according to the angle theorem of parallel lines, angle 1 and angle 2 are equal, then:A triangle is constructed to angle 2 and angle 3 and angle 4,
According to required ripple number, the circular radius in each ripple place is calculated,
According to circumscribed radius of circle and just profound theorem, the radian of angle of departure 4 is calculated,
Step 9, angle 1 is added with angle 4, is exactly the radian of this ripple skew, according to the radian of skew, is painted on the painting canvas of control
System,
By this continuous drafting successively, until drawing ripple needed for whole.
2. the algorithm of audio playing animation effect as claimed in claim 1, it is characterised in that:The fixed high pixel, refers to
The pixel of a preset value is highly fixed as, is highly designated as y1.
3. the algorithm of audio playing animation effect as claimed in claim 1, it is characterised in that:The preset value of the height is warp
Value is tested, is defaulted as 30 pixels.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201711043518.3A CN107750035A (en) | 2017-10-31 | 2017-10-31 | A kind of algorithm of audio playing animation effect |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201711043518.3A CN107750035A (en) | 2017-10-31 | 2017-10-31 | A kind of algorithm of audio playing animation effect |
Publications (1)
Publication Number | Publication Date |
---|---|
CN107750035A true CN107750035A (en) | 2018-03-02 |
Family
ID=61252797
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201711043518.3A Pending CN107750035A (en) | 2017-10-31 | 2017-10-31 | A kind of algorithm of audio playing animation effect |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN107750035A (en) |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105163241A (en) * | 2015-09-14 | 2015-12-16 | 小米科技有限责任公司 | Audio playing method and device as well as electronic device |
CN105210387A (en) * | 2012-12-20 | 2015-12-30 | 施特鲁布韦克斯有限责任公司 | Systems and methods for providing three dimensional enhanced audio |
CN106547571A (en) * | 2016-11-30 | 2017-03-29 | 北京酷我科技有限公司 | A kind of cardon display packing that can customize |
CN107221021A (en) * | 2017-05-19 | 2017-09-29 | 北京酷我科技有限公司 | A kind of rendering algorithm of audible spectrum animation |
CN107220047A (en) * | 2017-05-19 | 2017-09-29 | 北京酷我科技有限公司 | A kind of cardon of audible spectrum shows progress bar control implementation method |
CN107291335A (en) * | 2017-06-30 | 2017-10-24 | 北京酷我科技有限公司 | A kind of content rolls the method presented |
-
2017
- 2017-10-31 CN CN201711043518.3A patent/CN107750035A/en active Pending
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105210387A (en) * | 2012-12-20 | 2015-12-30 | 施特鲁布韦克斯有限责任公司 | Systems and methods for providing three dimensional enhanced audio |
CN105163241A (en) * | 2015-09-14 | 2015-12-16 | 小米科技有限责任公司 | Audio playing method and device as well as electronic device |
CN106547571A (en) * | 2016-11-30 | 2017-03-29 | 北京酷我科技有限公司 | A kind of cardon display packing that can customize |
CN107221021A (en) * | 2017-05-19 | 2017-09-29 | 北京酷我科技有限公司 | A kind of rendering algorithm of audible spectrum animation |
CN107220047A (en) * | 2017-05-19 | 2017-09-29 | 北京酷我科技有限公司 | A kind of cardon of audible spectrum shows progress bar control implementation method |
CN107291335A (en) * | 2017-06-30 | 2017-10-24 | 北京酷我科技有限公司 | A kind of content rolls the method presented |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JP4262597B2 (en) | Sound system | |
CN105405448B (en) | A kind of sound effect treatment method and device | |
CN107615651A (en) | System and method for improved audio perception | |
US10649729B2 (en) | Audio device with auditory system display and methods for use therewith | |
US6988068B2 (en) | Compensating for ambient noise levels in text-to-speech applications | |
CN106782504A (en) | Audio recognition method and device | |
CN107124149A (en) | A kind of method for regulation of sound volume, device and equipment | |
CN103700386B (en) | A kind of information processing method and electronic equipment | |
JP2012235310A (en) | Signal processing apparatus and method, program, and data recording medium | |
CN108573709A (en) | A kind of auto gain control method and device | |
CN108322868A (en) | Improve the method that loud speaker plays piano voice sound quality | |
US20140272883A1 (en) | Systems, methods, and apparatus for equalization preference learning | |
TWI749663B (en) | Method for monitoring phonation and system thereof | |
CN110191392A (en) | A kind of virtual reality public address implementation method | |
CN109599094A (en) | The method of sound beauty and emotion modification | |
CN106572818B (en) | Auditory system with user specific programming | |
US20190377540A1 (en) | Calibrating audio output device with playback of adjusted audio | |
JP2012063614A (en) | Masking sound generation device | |
JP3143324U (en) | Surround headphones | |
CN107750035A (en) | A kind of algorithm of audio playing animation effect | |
JP6314879B2 (en) | Reading aloud evaluation device, reading aloud evaluation method, and program | |
CN102802111B (en) | A kind of method and system for exporting surround sound | |
CN107750036A (en) | A kind of method for the simulation panorama audio that can customize | |
CN107820162A (en) | A kind of method for simulating panorama audio | |
CN115604630A (en) | Sound field expansion method, audio apparatus, and computer-readable storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20180302 |