Realtime sound spectrogram using FFT or linear prediction. Spectrogram is displayed on the display of PC. リアルタイム・スペクトログラム.解析の手法:FFT,線形予測法.スペクトログラムは PC のディスプレー装置に表示される.PC 側のプログラム:F446_Spectrogram.

Dependencies:   Array_Matrix mbed SerialTxRxIntr F446_AD_DA UIT_FFT_Real

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers FFT_Analyzer.hpp Source File

FFT_Analyzer.hpp

00001 //-------------------------------------------------------
00002 //  Class for spectrum analysis using FFT (Header)
00003 //
00004 //  2018/11/04, Copyright (c) 2018 MIKAMI, Naoki
00005 //-------------------------------------------------------
00006 
00007 #ifndef FFT_ANALYZER_HPP
00008 #define FFT_ANALYZER_HPP
00009 
00010 #include "AnalyzerBase.hpp"
00011 
00012 namespace Mikami
00013 {
00014     class FftAnalyzer : public AnalyzerBase
00015     {
00016     public:
00017         FftAnalyzer(int nData, int nFft);
00018         virtual ~FftAnalyzer() {}
00019 
00020     private:
00021         Array<Complex> yFft_;   // output of FFT
00022 
00023         virtual void Analyze(const float xn[], float yn[]);
00024 
00025         // disallow copy constructor and assignment operator
00026         FftAnalyzer(const FftAnalyzer& );
00027         FftAnalyzer& operator=(const FftAnalyzer& );
00028     };
00029 }
00030 
00031 #endif  // FFT_ANALYZER_HPP