FrqRespDrawer class to draw frequency response for digital filter. ディジタルフィルタの周波数特性を,周波数軸をログスケールで描画するための FrqRespDrawer クラス. このライブラリを登録した際のプログラム:「F746_FrequencyResponseDrawer_Demo」
Dependents: F746_SD_WavPlayer F746_SD_GraphicEqualizer_ren0620 F746_FrequencyResponseDrawer_Demo F746_SD_VarableFilter ... more
Diff: FrquencyResponseDrawer.cpp
- Revision:
- 1:19a32f6279e6
- Parent:
- 0:0bc63b49e2a3
- Child:
- 2:8bccc97de938
--- 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); } } -