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

MyClasses_Functions/MyFunctions.hpp

Committer:
MikamiUitOpen
Date:
2016-04-08
Revision:
0:6748e3332e85

File content as of revision 0:6748e3332e85:

//--------------------------------------------------------------
//  フィルタ処理付き SD オーディオプレーヤーで使う大域関数(ヘッダ)
//
//  2016/04/07, Copyright (c) 2016 MIKAMI, Naoki
//--------------------------------------------------------------

#ifndef F746_MY_FUNCTIONS_HPP
#define F746_MY_FUNCTIONS_HPP

#include "sai_io_o.hpp"
#include "ButtonGroup.hpp"
#include "FileSelector.hpp"
#include "DesignerDrawer.hpp"
#include "SD_BinaryReader.hpp"

using namespace Mikami;

// 1フレーム分の信号処理 (IIR フィルタ) の実行
void ProcessSignal(SD_BinaryReader &sdReader, SaiIO_O &mySai,
                   int16_t sn[], float g0, Biquad hn[],
                   int order, bool filterOn);

// SD カードのファイルのオープン
int32_t SD_Open(SD_BinaryReader &sdReader,
                string fileName, int32_t frameSize);

// ファイルの選択
void SelectFile(ButtonGroup &menu, FileSelector &selector,
                Label &msg, string &selectedName);

// フィルタの変更
void ModifyFilter(DesignerDrawer &drawerObj,
                  ButtonGroup &lpHp, ButtonGroup &onOff,
                  Biquad hn[], Biquad::Coefs ck[],
                  float &g0, bool &filterOn);

#endif  // F746_MY_FUNCTIONS_HPP