
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
myFunction.hpp
- Committer:
- MikamiUitOpen
- Date:
- 2018-11-04
- Revision:
- 6:c38ec7939609
- Parent:
- 5:fcc1b0b4737e
File content as of revision 6:c38ec7939609:
//--------------------------------------------------------------------- // データを 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