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 FrequencyResponseDrawer SD_PlayerSkeleton UIT_FFT_Real
main.cpp
- Committer:
- MikamiUitOpen
- Date:
- 2016-11-02
- Revision:
- 3:93bb23c1df22
- Parent:
- 2:fcba17e3d573
- Child:
- 4:9cd1a76029d1
File content as of revision 3:93bb23c1df22:
//----------------------------------------------------------------
// My リアルタイム サウンド処理マシン
// 1. グラフィックイコライザ付き SD オーディオプレーヤー
// 2. 遮断周波数可変 LPF/HPF
// 3. エコー/周波数変換
// 4. スペクトログラム
//
// ● 音響出力:モノラル(L+R を左右チャンネルに出力)
//
// 2016/11/02, Copyright (c) 2016 MIKAMI, Naoki
//----------------------------------------------------------------
#include "GraphicEqulizerMain.hpp"
#include "VariableIirFilterMain.hpp"
#include "EchoFrShifterMain.hpp"
#include "SpectrogramMain.hpp"
using namespace Mikami;
int main()
{
Label title(240, 16, "My Realtime Sound Processing Machine",
Label::CENTER, Font16);
const string MENU[] = {"Graphic Equalizer",
"Variable LPF/HPF",
"Echo/Voice Changer",
"Spectrogram"};
ButtonGroup menuButtons(
120, 50, 240, 50, 4, MENU, 0, 5, 1, -1, Font16);
int num = 0;
while (!menuButtons.GetTouchedNumber(num)) {}
menuButtons.EraseAll();
title.Draw("");
switch (num)
{
// グラフィックイコライザ
case 0: GraphicEqualizerMain();
break;
// 遮断周波数可変 LPF/HPF
case 1: VariableIirFilterMain();
break;
// エコー/周波数変換
case 2: EchoFrShifter();
break;
// スペクトログラム
case 3: Spectrogram();
break;
}
while (true);
}