Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: F746_GUI F746_SAI_IO SD_PlayerSkeleton FrequencyResponseDrawer
main.cpp
- Committer:
- MikamiUitOpen
- Date:
- 2016-07-23
- Revision:
- 13:728576fffe65
- Parent:
- 11:f4929315bc9f
- Child:
- 14:ed252615db80
File content as of revision 13:728576fffe65:
//----------------------------------------------------------------
// グラフィックイコライザ付き SD オーディオプレーヤー
// SD のファイル: *.wav
// PCM,16 ビットステレオ,標本化周波数 44.1 kHz
// 上記以外の形式は扱わない
// 出力:モノラル(L+R,左チャンネルのみ,右チャンネルには出力しない)
//
// 2016/07/23, Copyright (c) 2016 MIKAMI, Naoki
//----------------------------------------------------------------
#include "GraphicEqualizer.hpp"
using namespace Mikami;
int main()
{
const int FS = AUDIO_FREQUENCY_44K; // 標本化周波数
// フィルタの設計と周波数特性描画用
DesignerDrawer drawerObj(
28, // グラフの左端の位置
130, // グラフの下端の位置
9, // バンド数
62.5f, // 最低域バンドの中心周波数
FS, // 標本化周波数
2.5f); // 1 dB 当たりのピクセル数
GraphicEqualizer myPlayer("9-band Graphic Equalizer",
FS, drawerObj);
myPlayer.Execute();
}