![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
Chapter006_Zara_F746NG
Dependencies: F746_GUI SRF08 Array_Matrix TS_DISCO_F746NG mbed LCD_DISCO_F746NG BSP_DISCO_F746NG SDFileSystem_Warning_Fixed FrequencyResponseDrawer F746_SAI_IO
MyClasses_Functions/MyFunctions.hpp@11:769d986c10fa, 2016-07-04 (annotated)
- Committer:
- MikamiUitOpen
- Date:
- Mon Jul 04 05:59:44 2016 +0000
- Revision:
- 11:769d986c10fa
- Parent:
- 9:fe097e4c9024
12
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
MikamiUitOpen | 0:04b43b777fae | 1 | //-------------------------------------------------------------- |
MikamiUitOpen | 0:04b43b777fae | 2 | // フィルタ処理付き SD オーディオプレーヤーで使う大域関数(ヘッダ) |
MikamiUitOpen | 0:04b43b777fae | 3 | // |
MikamiUitOpen | 11:769d986c10fa | 4 | // 2016/07/04, Copyright (c) 2016 MIKAMI, Naoki |
MikamiUitOpen | 0:04b43b777fae | 5 | //-------------------------------------------------------------- |
MikamiUitOpen | 0:04b43b777fae | 6 | |
MikamiUitOpen | 0:04b43b777fae | 7 | #ifndef F746_MY_FUNCTIONS_HPP |
MikamiUitOpen | 0:04b43b777fae | 8 | #define F746_MY_FUNCTIONS_HPP |
MikamiUitOpen | 0:04b43b777fae | 9 | |
MikamiUitOpen | 7:2964179ff931 | 10 | #include "SAI_InOut.hpp" |
MikamiUitOpen | 0:04b43b777fae | 11 | #include "ButtonGroup.hpp" |
MikamiUitOpen | 0:04b43b777fae | 12 | #include "FileSelectorWav.hpp" |
MikamiUitOpen | 0:04b43b777fae | 13 | #include "DesignerDrawer.hpp" |
MikamiUitOpen | 0:04b43b777fae | 14 | #include "SD_WavReader.hpp" |
MikamiUitOpen | 0:04b43b777fae | 15 | |
MikamiUitOpen | 0:04b43b777fae | 16 | using namespace Mikami; |
MikamiUitOpen | 0:04b43b777fae | 17 | |
MikamiUitOpen | 0:04b43b777fae | 18 | // 1フレーム分の信号処理 (IIR フィルタ) の実行 |
MikamiUitOpen | 9:fe097e4c9024 | 19 | void IIR_Filtering(SD_WavReader &sdReader, SaiIO &mySai, |
MikamiUitOpen | 11:769d986c10fa | 20 | float g0, Biquad hn[], |
MikamiUitOpen | 0:04b43b777fae | 21 | int order, bool filterOn); |
MikamiUitOpen | 0:04b43b777fae | 22 | |
MikamiUitOpen | 0:04b43b777fae | 23 | // SD カードのファイルのオープン |
MikamiUitOpen | 0:04b43b777fae | 24 | int32_t SD_Open(SD_WavReader &sdReader, |
MikamiUitOpen | 0:04b43b777fae | 25 | string fileName, int32_t frameSize); |
MikamiUitOpen | 0:04b43b777fae | 26 | |
MikamiUitOpen | 0:04b43b777fae | 27 | // ファイルの選択 |
MikamiUitOpen | 0:04b43b777fae | 28 | void SelectFile(ButtonGroup &menu, FileSelector &selector, |
MikamiUitOpen | 0:04b43b777fae | 29 | Label &msg, string &selectedName); |
MikamiUitOpen | 0:04b43b777fae | 30 | |
MikamiUitOpen | 0:04b43b777fae | 31 | // フィルタの変更 |
MikamiUitOpen | 0:04b43b777fae | 32 | void ModifyFilter(DesignerDrawer &drawerObj, |
MikamiUitOpen | 0:04b43b777fae | 33 | ButtonGroup &lpHp, ButtonGroup &onOff, |
MikamiUitOpen | 0:04b43b777fae | 34 | Biquad hn[], Biquad::Coefs ck[], |
MikamiUitOpen | 0:04b43b777fae | 35 | float &g0, bool &filterOn); |
MikamiUitOpen | 0:04b43b777fae | 36 | |
MikamiUitOpen | 0:04b43b777fae | 37 | #endif // F746_MY_FUNCTIONS_HPP |