Integrated program of 4 different kinds of application programs for processing sound signal. 4種類のサウンド信号処理を統合したプログラム.

Dependencies:   F746_GUI F746_SAI_IO FrequencyResponseDrawer SD_PlayerSkeleton UIT_FFT_Real

Revision:
0:224dccbc4edd
Child:
1:2fe6aeccdc9f
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp	Mon Aug 15 07:18:07 2016 +0000
@@ -0,0 +1,54 @@
+//----------------------------------------------------------------
+//  My リアルタイム サウンド処理マシン
+//      1. グラフィックイコライザ付き SD オーディオプレーヤー
+//      2. 遮断周波数可変 LPF/HPF
+//      3. エコー/周波数変換
+//      4. スペクトログラム
+//
+//  ● 音響出力:モノラル(L+R を左右チャンネルに出力)
+//  ● 処理を切り替える場合はボードのリセットボタンを押す
+//
+//  2016/08/15, 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);
+}