Output the audio signal (*.bin) with filtering by IIR filter in the SD card using onboard CODEC. For *.wav file, F746_SD_WavPlayer and F746_SD_GraphicEqualiser are published on mbed. SD カードのオーディオ信号 (*.bin) を遮断周波数可変の IIR フィルタを通して,ボードに搭載されているCODEC で出力する.*.wav 形式のファイル用には,F746_SD_WavPlayer と F746_SD_GraphicEqualiser を mbed で公開している.

Dependencies:   BSP_DISCO_F746NG_patch_fixed F746_GUI LCD_DISCO_F746NG SDFileSystem_Warning_Fixed TS_DISCO_F746NG mbed

Revision:
5:4a99dabc9180
Parent:
4:76aa20fb326a
diff -r 76aa20fb326a -r 4a99dabc9180 MyClasses_Functions/FrquencyResponseDrawer.cpp
--- a/MyClasses_Functions/FrquencyResponseDrawer.cpp	Sat Apr 16 13:53:53 2016 +0000
+++ b/MyClasses_Functions/FrquencyResponseDrawer.cpp	Sun Apr 17 08:44:43 2016 +0000
@@ -1,11 +1,11 @@
 //-----------------------------------------------------------
+//  周波数が対数スケールの周波数特性を描画するクラス
 //  FrqRespDrawer class
 //
-//  2016/04/16, Copyright (c) 2016 MIKAMI, Naoki
+//  2016/04/17, Copyright (c) 2016 MIKAMI, Naoki
 //-----------------------------------------------------------
 
 #include "FrquencyResponseDrawer.hpp"
-#include "NumericLabel.hpp"
 
 namespace Mikami
 {
@@ -48,14 +48,14 @@
         uint16_t x0 = ORG_ + offsetX;
         uint16_t y0 = ORGY_ + offsetY;
         for (int n=0; n<count; n++)
-            new NumericLabel<int>(x0, y0-n*d_dB*DB1_,
+            NumericLabel<int> num(x0, y0-n*d_dB*DB1_,
                                   fmt, (int)(MIN_DB_+d_dB*n));
     }
 
     // 周波数特性のグラフの描画
-    void FrqRespDrawer::DrawGraph(FrequencyResponse &frqResp)
+    void FrqRespDrawer::DrawGraph(FrequencyResponse &frqResp, uint32_t color)
     {
-        lcd_->SetTextColor(LINE_COLOR_);
+        lcd_->SetTextColor(color);
         uint16_t width = X(MAX_) - X(MIN_);   
         uint16_t x1 = 0;
         uint16_t y1 = 0;
@@ -86,3 +86,4 @@
         lcd_->FillRect(ORG_, ORGY_- height, X(MAX_)-X(MIN_)+1, height+1);
     }
 }
+