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: MyClasses_Functions/FFT_Analysis.cpp
- Revision:
- 2:1f092ac020e1
- Parent:
- 0:9470a174c910
--- a/MyClasses_Functions/FFT_Analysis.cpp Sun May 22 06:49:25 2016 +0000 +++ b/MyClasses_Functions/FFT_Analysis.cpp Sat Jul 23 13:34:54 2016 +0000 @@ -1,7 +1,7 @@ //------------------------------------------------------- // Class for spectrum analysis using FFT // -// 2015/12/15, Copyright (c) 2015 MIKAMI, Naoki +// 2016/07/23, Copyright (c) 2015 MIKAMI, Naoki //------------------------------------------------------- #include "FFT_Analysis.hpp" @@ -10,12 +10,7 @@ { FftAnalyzer::FftAnalyzer(int nData, int nFft) : AnalyzerBase(nData, nFft, nFft), - yFft_(new Complex[nFft/2+1]) {} - - FftAnalyzer::~FftAnalyzer() - { - delete[] yFft_; - } + yFft_(nFft/2+1) {} void FftAnalyzer::Analyze(const float xn[], float yn[]) {