Output the audio signal with filtering by IIR filter in the *.wav file on the SD card using onboard CODEC. SD カードの *.wav ファイルのオーディオ信号を遮断周波数可変の IIR フィルタを通して,ボードに搭載されているCODEC で出力する.
Dependencies: BSP_DISCO_F746NG F746_GUI LCD_DISCO_F746NG SDFileSystem_Warning_Fixed TS_DISCO_F746NG mbed FrequencyResponseDrawer F746_SAI_IO Array_Matrix
MyFunctions.hpp
00001 //-------------------------------------------------------------- 00002 // フィルタ処理付き SD オーディオプレーヤーで使う大域関数(ヘッダ) 00003 // 00004 // 2016/07/04, Copyright (c) 2016 MIKAMI, Naoki 00005 //-------------------------------------------------------------- 00006 00007 #ifndef F746_MY_FUNCTIONS_HPP 00008 #define F746_MY_FUNCTIONS_HPP 00009 00010 #include "SAI_InOut.hpp" 00011 #include "ButtonGroup.hpp" 00012 #include "FileSelectorWav.hpp" 00013 #include "DesignerDrawer.hpp" 00014 #include "SD_WavReader.hpp" 00015 00016 using namespace Mikami; 00017 00018 // 1フレーム分の信号処理 (IIR フィルタ) の実行 00019 void IIR_Filtering(SD_WavReader &sdReader, SaiIO &mySai, 00020 float g0, Biquad hn[], 00021 int order, bool filterOn); 00022 00023 // SD カードのファイルのオープン 00024 int32_t SD_Open(SD_WavReader &sdReader, 00025 string fileName, int32_t frameSize); 00026 00027 // ファイルの選択 00028 void SelectFile(ButtonGroup &menu, FileSelector &selector, 00029 Label &msg, string &selectedName); 00030 00031 // フィルタの変更 00032 void ModifyFilter(DesignerDrawer &drawerObj, 00033 ButtonGroup &lpHp, ButtonGroup &onOff, 00034 Biquad hn[], Biquad::Coefs ck[], 00035 float &g0, bool &filterOn); 00036 00037 #endif // F746_MY_FUNCTIONS_HPP
Generated on Wed Jul 27 2022 22:49:02 by 1.7.2