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
Diff: myFunction.hpp
- Revision:
- 7:5ba884060d3b
- Parent:
- 6:c38ec7939609
--- a/myFunction.hpp Sun Nov 04 10:41:02 2018 +0000 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,31 +0,0 @@ -//--------------------------------------------------------------------- -// データを PC へ転送 -// -// 2018/10/07, Copyright (c) 2018 MIKAMI, Naoki -//--------------------------------------------------------------------- - -#include <string> -#include "Array.hpp" -#include "SerialRxTxIntr.hpp" -using namespace Mikami; - -#ifndef MY_FUNCTION_XFER_HPP -#define MY_FUNCTION_XFER_HPP - -extern SerialRxTxIntr rxTx_; - -// データを PC へ転送(0 ~ 10,000 の範囲の値を 2 文字で表すコード化を利用) -void Xfer(Array<uint16_t> &xn) -{ - string str = ""; - for (int n=0; n<xn.Length(); n++) - { - div_t a = div(xn[n], 100); - str += a.quot + 0x10; - str += a.rem + 0x10; - } - rxTx_.Tx(str+"\n"); - rxTx_.Tx("EOT\n"); -} - -#endif // MY_FUNCTION_XFER_HPP