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