Realtime sound spectrogram using FFT or linear prediction. Spectrogram is displayed on the display of PC. リアルタイム・スペクトログラム.解析の手法:FFT,線形予測法.スペクトログラムは PC のディスプレー装置に表示される.PC 側のプログラム:F446_Spectrogram.

Dependencies:   Array_Matrix mbed SerialTxRxIntr F446_AD_DA UIT_FFT_Real

Files at this revision

API Documentation at this revision

Comitter:
MikamiUitOpen
Date:
Sun Oct 07 05:15:04 2018 +0000
Parent:
4:fe1885675421
Child:
6:c38ec7939609
Commit message:
6

Changed in this revision

SerialTxRxIntr.lib Show annotated file Show diff for this revision Revisions of this file
main.cpp Show annotated file Show diff for this revision Revisions of this file
myFunction.hpp Show annotated file Show diff for this revision Revisions of this file
--- a/SerialTxRxIntr.lib	Mon Jul 23 05:53:29 2018 +0000
+++ b/SerialTxRxIntr.lib	Sun Oct 07 05:15:04 2018 +0000
@@ -1,1 +1,1 @@
-http://os.mbed.com/users/MikamiUitOpen/code/SerialTxRxIntr/#f6e15c19dd75
+http://os.mbed.com/users/MikamiUitOpen/code/SerialTxRxIntr/#190d94fba10d
--- a/main.cpp	Mon Jul 23 05:53:29 2018 +0000
+++ b/main.cpp	Sun Oct 07 05:15:04 2018 +0000
@@ -14,7 +14,7 @@
 //      ● 出力  A2: 左チャンネル,D13 右チャンネル
 //             入力をそのまま出力する
 //
-//  2018/07/23, Copyright (c) 2018 MIKAMI, Naoki
+//  2018/10/07, Copyright (c) 2018 MIKAMI, Naoki
 //---------------------------------------------------------------------
 
 #include "mbed.h"
@@ -112,8 +112,8 @@
         if (rxTx_.IsEol())      // 受信バッファのデータが有効になった場合の処理
         {
             string str = rxTx_.GetBuffer();
-            if (str.substr(0, 3) == "ENQ")
-                rxTx_.Tx("ACK");
+            if (str == "Spectrogram")
+                rxTx_.Tx("ACK\n");  // PC からの "Spectrogram" に対して "ACK" を送信する
             else if (str.substr(0, 2) == "GO")
             {
                 // str の内容
@@ -179,4 +179,3 @@
         }
     }
 }
-
--- a/myFunction.hpp	Mon Jul 23 05:53:29 2018 +0000
+++ b/myFunction.hpp	Sun Oct 07 05:15:04 2018 +0000
@@ -1,7 +1,7 @@
 //---------------------------------------------------------------------
 //  データを PC へ転送
 //
-//  2018/07/23, Copyright (c) 2018 MIKAMI, Naoki
+//  2018/10/07, Copyright (c) 2018 MIKAMI, Naoki
 //---------------------------------------------------------------------
 
 #include <string>
@@ -24,8 +24,8 @@
         str += a.quot + 0x10;
         str += a.rem + 0x10;
     }
-    rxTx_.Tx(str);
-    rxTx_.Tx("EOT");
+    rxTx_.Tx(str+"\n");
+    rxTx_.Tx("EOT\n");
 }
 
 #endif  // MY_FUNCTION_XFER_HPP