Version using MEMS microphone and CODEC for the program "F746_RealtimeSpectrumAnalyzer". "F746_RealtimeSpectrumAnalyzer" の入力を MEMS のマイクと CODEC に変更.このプログラムは Tomona Nanase さんが作成し DISCO-F746NG_Oscilloscope の名前で登録しているプログラムで, CODEC を使って入力する部分を参考にして作成.このプログラムの説明は,CQ出版社のインターフェース誌,2016年4月号に掲載.
Dependencies: BSP_DISCO_F746NG BUTTON_GROUP LCD_DISCO_F746NG TS_DISCO_F746NG UIT_FFT_Real mbed
MyClasses_Functions/CepstrumAnalysis.hpp
- Committer:
- MikamiUitOpen
- Date:
- 2016-04-19
- Revision:
- 8:e7dc8658c5cd
- Parent:
- 0:0e5131366580
File content as of revision 8:e7dc8658c5cd:
//------------------------------------------------------- // Class for spectrum analysis using cepstrum (Header) // // 2015/12/15, Copyright (c) 2015 MIKAMI, Naoki //------------------------------------------------------- #ifndef CEPSTRUM_ANALYZER_HPP #define CEPSTRUM_ANALYZER_HPP #include "AnalysisBase.hpp" namespace Mikami { class CepstrumAnalyzer : public AnalyzerBase { public: CepstrumAnalyzer(int nData, int nFft, int nLifter); virtual ~CepstrumAnalyzer(); private: const int N_LIFTER_; Complex* yFft_; // output of FFT float* lifter_; // lifter Complex* db_; // real part: log spectrun float* cep_; // cepstrum float* cepLft_; // liftered cepstrum Complex* cepFt_; // smoothed spectrum virtual void Analyze(const float xn[], float yn[]); // disallow copy constructor and assignment operator CepstrumAnalyzer(const CepstrumAnalyzer& ); CepstrumAnalyzer& operator=(const CepstrumAnalyzer& ); }; } #endif // CEPSTRUM_ANALYZER_HPP