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: main.cpp
- Revision:
- 1:f570067f3841
- Parent:
- 0:9470a174c910
- Child:
- 2:1f092ac020e1
diff -r 9470a174c910 -r f570067f3841 main.cpp --- a/main.cpp Sun May 22 06:28:40 2016 +0000 +++ b/main.cpp Sun May 22 06:49:25 2016 +0000 @@ -16,7 +16,6 @@ int main() { - printf("\r\n15:19\r\n"); const int FS = I2S_AUDIOFREQ_16K; // 標本化周波数: 16 kHz const int N_FFT = 512; // FFT の点数 const float FRAME = (N_FFT/(float)FS)*1000.0f; // 1 フレームに対応する時間(単位:ms) @@ -35,11 +34,11 @@ SaiIO mySai(SaiIO::INPUT, N_FFT+1, FS, INPUT_DEVICE_DIGITAL_MICROPHONE_2); -//// INPUT_DEVICE_INPUT_LINE_1); +// INPUT_DEVICE_INPUT_LINE_1); LCD_DISCO_F746NG *lcd = GuiBase::GetLcdPtr(); // LCD 表示器のオブジェクト lcd->Clear(GuiBase::ENUM_BACK); - Label myLabel1(240, 2, "Real-time spectrogram", Label::CENTER, Font16); + Label myLabel1(240, 2, "Real-time spectrogram 15:47", Label::CENTER, Font16); // ButtonGroup の設定 const uint16_t B_W = 50;