Realtime spectrogram for DISCO-F746NG. On-board MEMS microphone is used for input sound signal. リアルタイムスペクトログラム.入力:MEMSマイク
Dependencies: F746_GUI F746_SAI_IO UIT_FFT_Real
Diff: MySpectrogram/FFT_Analysis.hpp
- Revision:
- 3:6a2c8ff46f73
- Parent:
- 2:1f092ac020e1
- Child:
- 6:b3885567877c
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/MySpectrogram/FFT_Analysis.hpp Mon Aug 15 06:51:01 2016 +0000 @@ -0,0 +1,31 @@ +//------------------------------------------------------- +// Class for spectrum analysis using FFT (Header) +// +// 2016/07/23, Copyright (c) 2016 MIKAMI, Naoki +//------------------------------------------------------- + +#ifndef FFT_ANALYZER_HPP +#define FFT_ANALYZER_HPP + +#include "AnalysisBase.hpp" + +namespace Mikami +{ + class FftAnalyzer : public AnalyzerBase + { + public: + FftAnalyzer(int nData, int nFft); + virtual ~FftAnalyzer() {} + + private: + Array<Complex> yFft_; // output of FFT + + virtual void Analyze(const float xn[], float yn[]); + + // disallow copy constructor and assignment operator + FftAnalyzer(const FftAnalyzer& ); + FftAnalyzer& operator=(const FftAnalyzer& ); + }; +} + +#endif // FFT_ANALYZER_HPP