不韋 呂 / FrequencyResponseDrawer

Dependents:   F746_SD_WavPlayer F746_SD_GraphicEqualizer_ren0620 F746_FrequencyResponseDrawer_Demo F746_SD_VarableFilter ... more

Files at this revision

API Documentation at this revision

Comitter:
MikamiUitOpen
Date:
Mon May 09 05:39:50 2016 +0000
Parent:
0:0bc63b49e2a3
Child:
2:8bccc97de938
Commit message:
2

Changed in this revision

FrequancyResponseBase.hpp Show annotated file Show diff for this revision Revisions of this file
FrquencyResponseDrawer.cpp Show annotated file Show diff for this revision Revisions of this file
FrquencyResponseDrawer.hpp Show annotated file Show diff for this revision Revisions of this file
--- a/FrequancyResponseBase.hpp	Sun May 01 14:00:06 2016 +0000
+++ b/FrequancyResponseBase.hpp	Mon May 09 05:39:50 2016 +0000
@@ -1,11 +1,16 @@
 //-----------------------------------------------------------
+//  周波数応答を定義するクラスの基底クラスとして使う抽象クラス   
+//      周波数特性を描画するために与える周波数応答は,FrqRespDrawer
+//      クラスのメンバ関数 DrawGraph() の第一引数で与える.
+//      その周波数応答は,このクラスを継承する派生クラスで,純粋仮想 
+//      関数 AbsH_z() をオーバーライドする関数として定義すること.
+//
 //  FrequencyResponse class (abstract base class)
-//      Derived class of this class mest be used to give
-//      argument of FrqRespDrawer::DrawGraph()
+//      Derived class of this class must be used to give
+//      the first argument of FrqRespDrawer::DrawGraph().
+//      AbsH_z() must be overrided in the derived class
 //
-//      AbsH_z() must be overrided
-//
-//  2016/05/01, Copyright (c) 2016 MIKAMI, Naoki
+//  2016/05/09, Copyright (c) 2016 MIKAMI, Naoki
 //-----------------------------------------------------------
 
 #ifndef FREQUENCY_RESPONSE_BASE_HPP
--- a/FrquencyResponseDrawer.cpp	Sun May 01 14:00:06 2016 +0000
+++ b/FrquencyResponseDrawer.cpp	Mon May 09 05:39:50 2016 +0000
@@ -2,7 +2,7 @@
 //  ディジタルフィルタの周波数特性を,周波数軸が対数スケールで描画するクラス
 //  FrqRespDrawer class
 //
-//  2016/05/01, Copyright (c) 2016 MIKAMI, Naoki
+//  2016/05/09, Copyright (c) 2016 MIKAMI, Naoki
 //------------------------------------------------------------------------
 
 #include "FrquencyResponseDrawer.hpp"
@@ -64,7 +64,7 @@
         for (int n=0; n<=count; n++)
             NumericLabel<int> num(x0, y0-n*d_dB*DB1_,
                                   fmt, (int)(MIN_DB_+d_dB*n));
-        Label l_dB(x0, y0-count*d_dB*DB1_-12, str);
+        Label l_dB(x0-2, y0-count*d_dB*DB1_-12, str);
     }
 
     // 周波数特性のグラフの描画
@@ -101,4 +101,3 @@
         lcd_->FillRect(ORGX_, ORGY_- height, X(MAX_)-X(MIN_)+1, height+1);
     }
 }
-
--- a/FrquencyResponseDrawer.hpp	Sun May 01 14:00:06 2016 +0000
+++ b/FrquencyResponseDrawer.hpp	Mon May 09 05:39:50 2016 +0000
@@ -2,7 +2,7 @@
 //  ディジタルフィルタの周波数特性を,周波数軸が対数スケールで描画するクラス(ヘッダ)
 //  FrqRespDrawer class (header)
 //
-//  2016/05/01, Copyright (c) 2016 MIKAMI, Naoki
+//  2016/05/09, Copyright (c) 2016 MIKAMI, Naoki
 //------------------------------------------------------------------------
 
 #ifndef F746_FRQ_RESP_DRAWER_HPP