Output the audio signal with filtering by graphic equalizer in the *.wav file on the SD card using onboard CODEC. SD カードの *.wav ファイルのオーディオ信号をグラフィック・イコライザを通して,ボードに搭載されているCODEC で出力する.
Dependencies: F746_GUI F746_SAI_IO SD_PlayerSkeleton FrequencyResponseDrawer
main.cpp
- Committer:
- MikamiUitOpen
- Date:
- 2016-11-08
- Revision:
- 18:58d3ebcd20ff
- Parent:
- 17:0818e14257b8
- Child:
- 20:5c69e664e17c
File content as of revision 18:58d3ebcd20ff:
//---------------------------------------------------------------- // グラフィックイコライザ付き SD オーディオプレーヤー // SD のファイル: *.wav // PCM,16 ビットステレオ,標本化周波数 44.1 kHz // 上記以外の形式は扱わない // 出力:モノラル(L+R,左右チャンネルに出力) // // 2016/11/08, Copyright (c) 2016 MIKAMI, Naoki //---------------------------------------------------------------- #include "GraphicEqualizer.hpp" using namespace Mikami; int main() { const int FS = AUDIO_FREQUENCY_44K; // 標本化周波数 // フィルタの設計と周波数特性描画用 GrEqDesignerDrawer drawerObj( 50, // グラフの左端の位置 130, // グラフの下端の位置 9, // バンド数 62.5f, // 最低域バンドの中心周波数 FS, // 標本化周波数 2.5f); // 1 dB 当たりのピクセル数 GraphicEqualizer myPlayer("9-band Graphic Equalizer", FS, drawerObj); myPlayer.Execute(); }