Output the audio signal (*.bin) with filtering by IIR filter in the SD card using onboard CODEC. For *.wav file, F746_SD_WavPlayer and F746_SD_GraphicEqualiser are published on mbed. SD カードのオーディオ信号 (*.bin) を遮断周波数可変の IIR フィルタを通して,ボードに搭載されているCODEC で出力する.*.wav 形式のファイル用には,F746_SD_WavPlayer と F746_SD_GraphicEqualiser を mbed で公開している.
Dependencies: BSP_DISCO_F746NG_patch_fixed F746_GUI LCD_DISCO_F746NG SDFileSystem_Warning_Fixed TS_DISCO_F746NG mbed
MyFunctions.hpp
00001 //-------------------------------------------------------------- 00002 // フィルタ処理付き SD オーディオプレーヤーで使う大域関数(ヘッダ) 00003 // 00004 // 2016/04/07, Copyright (c) 2016 MIKAMI, Naoki 00005 //-------------------------------------------------------------- 00006 00007 #ifndef F746_MY_FUNCTIONS_HPP 00008 #define F746_MY_FUNCTIONS_HPP 00009 00010 #include "sai_io_o.hpp" 00011 #include "ButtonGroup.hpp" 00012 #include "FileSelector.hpp" 00013 #include "DesignerDrawer.hpp" 00014 #include "SD_BinaryReader.hpp" 00015 00016 using namespace Mikami; 00017 00018 // 1フレーム分の信号処理 (IIR フィルタ) の実行 00019 void ProcessSignal(SD_BinaryReader &sdReader, SaiIO_O &mySai, 00020 int16_t sn[], float g0, Biquad hn[], 00021 int order, bool filterOn); 00022 00023 // SD カードのファイルのオープン 00024 int32_t SD_Open(SD_BinaryReader &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 13 2022 03:37:09 by 1.7.2