CN101635160B - Music frequency spectrum analyzing method, music frequency spectrum display device and music playing device - Google Patents

Music frequency spectrum analyzing method, music frequency spectrum display device and music playing device Download PDF

Info

Publication number
CN101635160B
CN101635160B CN2009103033538A CN200910303353A CN101635160B CN 101635160 B CN101635160 B CN 101635160B CN 2009103033538 A CN2009103033538 A CN 2009103033538A CN 200910303353 A CN200910303353 A CN 200910303353A CN 101635160 B CN101635160 B CN 101635160B
Authority
CN
China
Prior art keywords
module
audio
audio frequency
data
music
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
CN2009103033538A
Other languages
Chinese (zh)
Other versions
CN101635160A (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.)
SHENZHEN MESADA TECHNOLOGY CO., LTD.
Original Assignee
SHENZHEN MESADA TECHNOLOGY Co Ltd
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 SHENZHEN MESADA TECHNOLOGY Co Ltd filed Critical SHENZHEN MESADA TECHNOLOGY Co Ltd
Priority to CN2009103033538A priority Critical patent/CN101635160B/en
Publication of CN101635160A publication Critical patent/CN101635160A/en
Application granted granted Critical
Publication of CN101635160B publication Critical patent/CN101635160B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Electrophonic Musical Instruments (AREA)

Abstract

The invention relates to a music playing device with a music frequency spectrum display device, which comprises an audio frequency data storage module, an audio frequency data reading module, an audio frequency A/D conversion module and an audio frequency playing module, wherein the audio frequency data storage module stores audio frequency data; the audio frequency data reading module accesses the storage module, reads audio frequency data stored in the storage module and transmits the data to an audio frequency decoding module; the audio frequency A/D conversion module is used for obtaining an audio frequency digital signal and converting the audio frequency analog digital signal into an audio frequency analog signal; the audio frequency playing module is used for obtaining the audio frequency analog digital and playing the audio frequency analog digital in an external power amplifier after amplifying and filtering the audio frequency analog signal; and after the audio frequency decoding module decodes part of audio frequency data, data are copied into two duplicates to be simultaneously transmitted to the audio frequency A/D conversion module and a wave form conversion module respectively and respectively converted into a voice signal and a frequency spectrum figure. A frequency spectrum display device is added into the music playing device, thereby enriching music playing dynamic rhythms and providing music dynamic visual experience for a user; and the operation load of a processor is reduced by designing a reasonable frequency spectrum analyzing method.

Description

Music frequency spectrum analytical approach, music frequency spectrum display device and music player
[technical field]
The invention belongs to the voice process technology field, relate to a kind of music frequency spectrum analytical approach and music frequency spectrum display device and music player.
[background technology]
Music player on the previous PC has only music playback function, afterwards in order to enrich user's music experience more, visually for the user the dynamic window that shows frequency spectrum graphics in real time is provided according to the rhythm and the intensity of music.
In the limited embedded device music player of current each item hardware performance; Though the function that also has music frequency spectrum to show; But this music frequency spectrum figure is the dynamic background picture of having made in advance, and when music, its wave pattern shows along with opening of player; Real-time and dynamic shows the frequency jitter curve of music if desired, and then its internal memory that takies and processor ratio are quite big.
[summary of the invention]
The present invention has proposed a kind of new music frequency spectrum analytical approach, music frequency spectrum display device and music player just in order to solve above-mentioned technical matters.
The present invention provides a kind of music frequency spectrum analytical approach, and this method comprises:
Obtain the Wave data of the digital signal that generates behind the audio decoder;
This Wave data is carried out the conversion of time-domain signal to frequency-region signal.
Digital signal behind the described audio decoder comprises left channel signals and right-channel signals, and the Wave data that obtains the digital signal that generates behind the audio decoder comprises, extracts the Wave data of one of them sound channel signal.
Said Wave data is carried out the conversion of time-domain signal to frequency-region signal; Comprise: adopt the fast discrete Fourier mapping algorithm that Wave data is carried out the conversion of time-domain signal to frequency-region signal; When carrying out FFT, the frequency domain sequence of time domain sequences and output is all arranged according to natural order.
Comprise further after the said Wave data step of obtaining the digital signal that generates behind the audio decoder that once sampling digital signal is at set intervals obtained the Wave data of this digital signal.
The described frequency that digital signal is sampled is 2 ~ 4 times of quilt sampling wave frequency, is preferably 3 times.
The present invention also provides a kind of music frequency spectrum display device, and this device adopts arm processor to handle like the arbitrary said music frequency spectrum analysis task of claim 1-5, and this music frequency spectrum display device comprises:
The audio decoder module is used to obtain original audio data, and this voice data decoded generates original audio digital signals;
The waveform transformation module is used for the Wave data of this audio digital signals is carried out the conversion of time-domain signal to frequency-region signal, forms this waveform in each frequency band amplitude size distribution data;
The waveform display module is used for this this waveform is shown through bar chart in each frequency band amplitude size distribution data.
This device also comprises:
The signal sampling module is used for the decoded audio digital signals of audio decoder module is sampled, and once sampling digital signal is at set intervals obtained the Wave data of this digital signal, and this Wave data is sent to the waveform transformation module.
The described frequency that digital signal is sampled is 2 ~ 4 times of quilt sampling wave frequency, is preferably 3 times.
The present invention also provides a kind of music player that comprises above-mentioned music frequency spectrum display device, it is characterized in that, this device also comprises the voice data memory module, is used for stores audio data; The voice data read module is used for the access stored module, and reads the voice data of storing in the memory module, and these data are sent to the audio decoder module; Audio A/D modular converter is used to obtain audio digital signals, and the audio frequency simulation digital signal transition is become audio analog signals; Audio playing module is used to obtain audio analog signals, and with after this audio analog signals amplification filtering; Externally play back in the power amplifier; It is characterized in that behind the described audio decoder module decoded portion voice data, described data are replicated two parts; Send to audio A/D modular converter and waveform transformation module respectively simultaneously, convert voice signal and frequency spectrum graphics respectively to.
Described music player also is provided with control module, is used to control the opening and closing of frequency spectrum display device.
Beneficial technical effects of the present invention is:
The present invention has enriched the dynamic rhythm of music through in music player, adding frequency spectrum display device, gives the user with the dynamic direct feel of music.
Through frequency spectrum analysis method reasonable in design, reduced the computational load of processor.
[description of drawings]
Fig. 1 is the process flow diagram of embodiment 1 frequency spectrum analysis method;
Fig. 2 is the oscillogram of digital signal of the present invention;
Fig. 3 is the process flow diagram of embodiment 2 frequency spectrum analysis methods;
Fig. 4 is the structured flowchart of embodiment 3 frequency spectrum display devices;
Fig. 5 is the structured flowchart of embodiment 4 frequency spectrum display devices;
Fig. 6 is a spectrogram of the present invention;
Fig. 7 is embodiment 5 music player structured flowcharts.
[embodiment]
The music player that the present invention designs a kind of music frequency spectrum analytical approach, utilizes this frequency spectrum analysis method to obtain the frequency spectrum device shown and include this frequency spectrum display device.Below in conjunction with embodiment the present invention is done further elaboration and explanation:
Embodiment 1
Like Fig. 1, a kind of Wave data the music crude sampling converts the waveform method of the intensity of sound size distribution situation of the frequency band that can hear of people's ear at a time into, i.e. music frequency spectrum analytical approach, and this method comprises:
101, obtain the Wave data of the digital signal that generates behind the audio decoder.This step is specially; The audio decoder module generates audio digital signals 1011 after digital audio file is decoded, and has comprised the Wave data of sound crude sampling in this audio digital signals, duplicates this audio digital signals 1012; Described audio digital signals comprises left channel signals and right-channel signals; The Wave data that extracts one of them sound channel signal is as the Wave data 1013 that will change, and said Wave data is as shown in Figure 2.
102, this Wave data is carried out the conversion of time-domain signal to frequency-region signal.Said time-domain signal is that the ripple of a certain frequency is the x axle with the time shaft; With the amplitude is the Wave data of y axle; Said frequency-region signal is the frequency spectrum data in a certain moment of y axle with the amplitude for being the x axle with the frequency, the operand when time-domain signal is transformed into frequency-region signal and need uses Fourier conversion and can reduce data-switching; Because the Wave data of the digital signal behind the process audio decoder is for being discrete data, so can change with the fast discrete Fourier mapping algorithm.
When carrying out FFT; The frequency domain sequence of time domain sequences and output is all arranged according to natural order; Adopting this kind method with dacimation-in-time odd even decomposition method time domain sequences to be decomposed with frequency domain sequence compares; Though the intermediate storage unit that takies in the intermediate operations process is bigger than the intermediate storage unit that takies, its operand is littler than dacimation-in-time odd even decomposition method
Embodiment 2
On the basis of embodiment 1; In order to save the occupancy of intermediate storage unit; And the reduction operand, further comprise 1014 at the Wave data that extracts one of them sound channel signal as after the Wave data step that will change: once sampling digital signal at set intervals; Obtain the Wave data of this digital signal, the described frequency that digital signal is sampled is 3 times by the sampling wave frequency.
Embodiment 3
As shown in Figure 4, the present invention also provides a kind of music frequency spectrum display device 20, and this device adopts arm processor to handle like embodiment 1 described music frequency spectrum analysis task, and this frequency spectrum display device comprises:
Audio decoder module 201 is used to obtain original audio data, and this voice data decoded generates original audio digital signals;
Waveform transformation module 202 is used for the Wave data of this audio digital signals is carried out the conversion of time-domain signal to frequency-region signal, and the ripple that forms this each frequency band is in section amplitude size distribution data sometime;
Waveform display module 203 is used for this this waveform is shown through bar chart in each frequency band amplitude size distribution data.
After decoding, 201 pairs of digital audio files of audio decoder module generate audio digital signals; The Wave data that has comprised the sound crude sampling in this audio digital signals; Said arm processor duplicates this audio digital signals, and described audio digital signals comprises left channel signals and right-channel signals, and said arm processor extracts the Wave data of one of them sound channel signal as the Wave data that will change; Change through 202 pairs of Wave datas of waveform transformation module; Said to waveform convert the conversion of time-domain signal into to frequency-region signal, adopt the fast discrete Fourier mapping algorithm to change during conversion, in arm processor and storage unit, accomplish when handling this algorithm; After from the time-domain signal to the frequency-region signal, changing; The ripple that forms this each frequency band is in section amplitude size distribution data sometime, through waveform display module 203 ripple of each frequency band is shown through bar chart in the amplitude size distribution data of section sometime, the distributed data of each time period all with continuous the showing of bar pattern; Just form a continuous spectrogram, as shown in Figure 6.
Embodiment 4
On the basis of the foregoing description 3, as shown in Figure 5, described music frequency spectrum display device also comprises:
Signal sampling module 204; Said signal sampling module 204 is sampled to the Wave data of one of them sound channel signal; Once sampling digital signal at set intervals; Obtain the Wave data of this digital signal, and this Wave data is sent to the waveform transformation resume module, the described frequency that digital signal is sampled is 3 times by the sampling wave frequency.
Embodiment 5
As shown in Figure 7, the present invention also provides a kind of music player 30, and described music player 30 comprises embodiment 4 described music frequency spectrum display devices 20, and this music player 30 also comprises voice data memory module 301, is used for stores audio data; Voice data read module 302 is used for access stored module 301, and reads the voice data of storage in the memory module 301, and these data are sent to audio decoder module 201; Audio A/D modular converter 303 is used to obtain audio digital signals, and the audio frequency simulation digital signal transition is become audio analog signals; Audio playing module 304; Be used to obtain audio analog signals, and, externally play back in the power amplifier after this audio analog signals amplification filtering; Behind the described audio decoder module 201 decoded portion voice datas; Said data after decoded are copied into two parts by arm processor 1, send to audio A/D modular converter 303 and waveform transformation module 202 respectively simultaneously, convert voice signal and frequency spectrum graphics respectively to.
Described music player also is provided with control module 305, is used to control the opening and closing of frequency spectrum display device 20.
As shown in Figure 8, the principle of work of said music player is following:
Frequency spectrum display device 20 is along with music player 30 together starts; The voice data read module 302 of music player reads audio file from voice data memory module 301, the data of this audio file are sent out to 201 decodings of data decode module, form audio digital signals; It is a that arm processor 1 duplicates this audio digital signals; Send to waveform transformation module 202 and handle, simultaneously, original portion is sent to audio A/D modular converter 303 by arm processor 1; The audio digital signals that is sent out to audio A/D modular converter 303 is converted into audio analog signals; This audio analog signals through after the simulating signal amplification filtering, externally plays back in the power amplifier in audio playing module 304, comprises a L channel and a R channel and be sent out the audio digital signals of handling to waveform transformation module 202; The Wave data that arm processor 1 extracts one of them sound channel carries out spectrum analysis; Signal sampling module 204 is sampled to the Wave data of one of them sound channel signal, and once sampling digital signal is at set intervals obtained the Wave data of this digital signal; And this Wave data sent to the waveform transformation resume module; The described frequency that digital signal is sampled is for by 3 times of sampling wave frequency, and the Wave data after waveform transformation module 202 adopts the fast discrete Fourier mapping algorithms to sampling carries out the conversion of time-domain signal to frequency-region signal, and the ripple that forms this each frequency band is in section amplitude size distribution data sometime; Through waveform display module 203 ripple of each frequency band is shown through bar chart in the amplitude size distribution data of section sometime, the distributed data of each time period all with continuous the showing of bar pattern.
Described music player 30 also is provided with control module 305; Be used to control the opening and closing of frequency spectrum display device 20; When frequency spectrum display device 20 is closed; Frequency spectrum does not show in music player 30 that spectrum analysis is not operation in arm processor 1 also, and the music playback function of music player still can use.
What should explain is; Above embodiment is only unrestricted in order to technical scheme of the present invention to be described; Although with reference to preferred embodiment the present invention is specified, those of ordinary skill in the art should be appreciated that and can make amendment or be equal to replacement technical scheme of the present invention; And not breaking away from the spirit and the scope of technical scheme of the present invention, it all should be encompassed in the middle of the claim scope of the present invention.

Claims (6)

1. music frequency spectrum analytical approach, this method comprises:
Obtain the Wave data of the digital signal that generates behind the audio decoder;
This Wave data is carried out the conversion of time-domain signal to frequency-region signal;
Digital signal behind the said audio decoder comprises left channel signals and right-channel signals; The said step of obtaining the Wave data of the digital signal that generates behind the audio decoder comprises; Extract the Wave data of one of them sound channel signal; Once sampling digital signal is at set intervals obtained the Wave data of this digital signal;
The described frequency that digital signal is sampled is 3 times by the sampling wave frequency;
Said Wave data is carried out the step of time-domain signal to the conversion of frequency-region signal; Comprise: adopt the fast discrete Fourier mapping algorithm that Wave data is carried out the conversion of time-domain signal to frequency-region signal; When carrying out FFT, the frequency domain sequence of time domain sequences and output is all arranged according to natural order.
2. music frequency spectrum display device, this device adopts arm processor to handle like the arbitrary said music frequency spectrum analysis task of claim 1, and this music frequency spectrum display device comprises:
The audio decoder module is used to obtain original audio data, and this voice data decoded generates original audio digital signals;
The waveform transformation module is used for the Wave data of this audio digital signals is carried out the conversion of time-domain signal to frequency-region signal, forms this waveform in each frequency band amplitude size distribution data;
The waveform display module is used for this this waveform is shown through bar chart in each frequency band amplitude size distribution data.
3. music frequency spectrum display device according to claim 2 is characterized in that, this device also comprises:
The signal sampling module is used for the decoded audio digital signals of audio decoder module is sampled, and once sampling digital signal is at set intervals obtained the Wave data of this digital signal, and this Wave data is sent to the waveform transformation module.
4. music frequency spectrum display device according to claim 2 is characterized in that, the described frequency that digital signal is sampled is 3 times by the sampling wave frequency.
5. a music player that comprises the arbitrary said music frequency spectrum display device of claim 2-4 is characterized in that, this device also comprises the voice data memory module, is used for stores audio data; The voice data read module, memory module between being used for visiting, and read the voice data of storing in the memory module, and these data are sent to the audio decoder module; Audio A/D modular converter is used to obtain audio digital signals, and the audio frequency simulation digital signal transition is become audio analog signals; Audio playing module; Be used to obtain audio analog signals, and, externally play back in the power amplifier after this audio analog signals amplification filtering; Behind the described audio decoder module decoded portion voice data; Described data are replicated two parts, send to audio A/D modular converter and waveform transformation module respectively simultaneously, convert voice signal and frequency spectrum graphics respectively to.
6. music player according to claim 5 is characterized in that described music player also is provided with control module, is used to control the opening and closing of frequency spectrum display device.
CN2009103033538A 2009-06-17 2009-06-17 Music frequency spectrum analyzing method, music frequency spectrum display device and music playing device Expired - Fee Related CN101635160B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2009103033538A CN101635160B (en) 2009-06-17 2009-06-17 Music frequency spectrum analyzing method, music frequency spectrum display device and music playing device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2009103033538A CN101635160B (en) 2009-06-17 2009-06-17 Music frequency spectrum analyzing method, music frequency spectrum display device and music playing device

Publications (2)

Publication Number Publication Date
CN101635160A CN101635160A (en) 2010-01-27
CN101635160B true CN101635160B (en) 2012-03-21

Family

ID=41594321

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2009103033538A Expired - Fee Related CN101635160B (en) 2009-06-17 2009-06-17 Music frequency spectrum analyzing method, music frequency spectrum display device and music playing device

Country Status (1)

Country Link
CN (1) CN101635160B (en)

Families Citing this family (18)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103019658A (en) * 2011-09-20 2013-04-03 深圳市比维视创科技有限公司 Dynamic standby interface generation method and device as well as digital terminal
CN102843431A (en) * 2012-08-29 2012-12-26 广东好帮手电子科技股份有限公司 Vehicle-mounted online music system and control method thereof
CN103425433A (en) * 2013-09-04 2013-12-04 广州小瓦智能科技有限公司 Intelligent human-computer interface system and control method thereof
CN105404642B (en) * 2015-10-23 2019-03-15 Oppo广东移动通信有限公司 A kind of audio frequency playing method and user terminal
CN105704864A (en) * 2016-04-13 2016-06-22 杭州聪普智能科技有限公司 Atmosphere illuminating system and method based on music contents
US9852745B1 (en) 2016-06-24 2017-12-26 Microsoft Technology Licensing, Llc Analyzing changes in vocal power within music content using frequency spectrums
CN106128470A (en) * 2016-06-29 2016-11-16 努比亚技术有限公司 The device and method of display audible spectrum
CN112652037A (en) * 2017-03-05 2021-04-13 杭州小影创新科技股份有限公司 Method for drawing real-time music frequency spectrum vector graph
CN107219991B (en) * 2017-05-19 2020-06-05 北京酷我科技有限公司 Audio frequency spectrum animation soft showing method
CN107180636B (en) * 2017-05-19 2020-12-18 深圳市芯中芯科技有限公司 Audio data acquisition method based on Fourier transform of android system
CN107977188B (en) * 2017-12-08 2021-07-30 北京酷我科技有限公司 Method for closing panoramic sound effect
CN110110502B (en) * 2019-04-28 2023-07-14 得一微电子股份有限公司 Anti-copy method and device for audio files and mobile storage device
CN110472094B (en) * 2019-08-06 2023-03-31 沈阳大学 Traditional music recording method
CN110516108A (en) * 2019-09-04 2019-11-29 苏州思必驰信息科技有限公司 The method and system of browser broadcasting audio
CN111554320A (en) * 2020-03-31 2020-08-18 紫光云技术有限公司 Audio stream Fourier analysis method based on Windows platform
CN112037495A (en) * 2020-08-26 2020-12-04 天津七一二通信广播股份有限公司 Locomotive wireless comprehensive communication data monitoring system
CN113707110B (en) * 2021-06-15 2023-12-01 浙江意博高科技术有限公司 Intelligent illumination control method and system
CN117492572B (en) * 2023-12-28 2024-04-05 珠海格力电器股份有限公司 Somatosensory feedback method and device, electronic equipment and readable medium

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1650618A (en) * 2002-03-01 2005-08-03 汤姆森许可公司 Audio frequency scaling during video trick modes utilizing digital signal processing

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1650618A (en) * 2002-03-01 2005-08-03 汤姆森许可公司 Audio frequency scaling during video trick modes utilizing digital signal processing

Also Published As

Publication number Publication date
CN101635160A (en) 2010-01-27

Similar Documents

Publication Publication Date Title
CN101635160B (en) Music frequency spectrum analyzing method, music frequency spectrum display device and music playing device
Truax Acoustic communication
CN105323702B (en) Sound mixing method and system
CN101740034A (en) Method for realizing sound speed-variation without tone variation and system for realizing speed variation and tone variation
TW200746044A (en) Temporal and spatial shaping of multi-channel audio signals
WO2006076690A3 (en) Method and apparatus for ambient sound therapy user interface and control system
CN108874144A (en) Use sound-haptic effect converting system of mapping
ATE336775T1 (en) INTELLIGENT TEXT-LANGUAGE CONVERSION
JPH06102877A (en) Acoustic constituting device
GB2443103A (en) Methods of invoking various functions of a digital media player using a single switch of digital media player
WO2005091709A3 (en) Method, devices, system and software product for compressed-domain video editing
KR20190005103A (en) Electronic device-awakening method and apparatus, device and computer-readable storage medium
CN102064832B (en) Implementation method for changing vibration effect with music
DiGiovanni et al. Mechanisms responsible for differences in perceived duration for rising-intensity and falling-intensity sounds
CN105989824A (en) Karaoke system of mobile device and mobile device
CN101916577B (en) The method and device that a kind of audio and video playing synchronizes
Fröjd et al. Sound texture synthesis using an overlap–add/granular synthesis approach
KR20080073925A (en) Method and apparatus for decoding parametric-encoded audio signal
CN108028055A (en) Information processor, information processing system and program
Otondo et al. Using a sonic time-lapse method as a compositional tool
CN200942153Y (en) Individual tinnitus shielding device
CN205751532U (en) A kind of lossless hi-fi music based on DSP is play and audio process
CN109698976A (en) Fast forwarding and fast rewinding playback method, device and player based on audio feature extraction
CN201684071U (en) Digital procedure type tinnitus comprehensive therapeutic device
Zhao et al. Interactive sonification for health and energy using chuck and unity

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
C56 Change in the name or address of the patentee
CP03 Change of name, title or address

Address after: 518102, Guangdong, Baoan District, Xixiang street, the Peach Garden science and Technology Innovation Park, No. 2 research and development center, 1, 3, 4, Shenzhen

Patentee after: SHENZHEN MESADA TECHNOLOGY CO., LTD.

Address before: 518000, Guangdong, Nanshan District science and Technology Park, Shenzhen District, North Lang Road 11, the same side of the information port, D building, 8 floor

Patentee before: Shenzhen Mesada Technology Co., Ltd.

PP01 Preservation of patent right

Effective date of registration: 20160201

Granted publication date: 20120321

RINS Preservation of patent right or utility model and its discharge
PD01 Discharge of preservation of patent

Date of cancellation: 20160201

Granted publication date: 20120321

RINS Preservation of patent right or utility model and its discharge
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20120321

Termination date: 20160617

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