Basic Audio Signal Processing Library

Dependents:   unzen_sample_nucleo_f746 skeleton_unzen_nucleo_f746 ifmag_noise_canceller synthesizer_f746

オーディオ信号処理用のライブラリです。

mbed-dspのフィルタ群向けに作ったクラス・ラッパーのほか、以下のクラスを用意しています。

  • ヒステリシス
  • sin/cosオシレータ
  • リミッター

クラスは全て名前空間amakusaに含まれます。

Committer:
shorie
Date:
Sun Dec 11 21:04:06 2016 +0000
Revision:
0:058daa59980d
Child:
1:0a37bce4f985
Publish

Who changed what in which revision?

UserRevisionLine numberNew contents of line
shorie 0:058daa59980d 1 /**
shorie 0:058daa59980d 2 * @file amakusa.h
shorie 0:058daa59980d 3 * @brief Main include file of the audio_signal
shorie 0:058daa59980d 4 */
shorie 0:058daa59980d 5
shorie 0:058daa59980d 6 #ifndef _AMAKUSA_H_
shorie 0:058daa59980d 7 #define _AMAKUSA_H_
shorie 0:058daa59980d 8
shorie 0:058daa59980d 9 #include "oscsincos.h"
shorie 0:058daa59980d 10 #include "limitterlinatan.h"
shorie 0:058daa59980d 11
shorie 0:058daa59980d 12 namespace amakusa
shorie 0:058daa59980d 13 {
shorie 0:058daa59980d 14 /**
shorie 0:058daa59980d 15 * @brief vector copy
shorie 0:058daa59980d 16 * @param src A source vector address
shorie 0:058daa59980d 17 * @param dst A destination vector address
shorie 0:058daa59980d 18 * @param count Number of the element in the vector
shorie 0:058daa59980d 19 */
shorie 0:058daa59980d 20 void copy( float src[], float dst[], unsigned int count );
shorie 0:058daa59980d 21 /**
shorie 0:058daa59980d 22 * @brief Negate the src
shorie 0:058daa59980d 23 * @param src A source vector address
shorie 0:058daa59980d 24 * @param dst A destination vector address
shorie 0:058daa59980d 25 * @param count Number of the element in the vector
shorie 0:058daa59980d 26 */
shorie 0:058daa59980d 27 void neg( float src[], float dst[], unsigned int count );
shorie 0:058daa59980d 28
shorie 0:058daa59980d 29 void add( float srcA[], float srcB[], float dst[], unsigned int count );
shorie 0:058daa59980d 30 void add( float srcA[], float srcB, float dst[], unsigned int count );
shorie 0:058daa59980d 31 void sub( float srcA[], float srcB[], float dst[], unsigned int count );
shorie 0:058daa59980d 32 void sub( float srcA[], float srcB, float dst[], unsigned int count );
shorie 0:058daa59980d 33 void sub( float srcA, float srcB[], float dst[], unsigned int count );
shorie 0:058daa59980d 34
shorie 0:058daa59980d 35 void mul( float srcA[], float srcB[], float dst[], unsigned int count );
shorie 0:058daa59980d 36 void mul( float srcA[], float srcB, float dst[], unsigned int count );
shorie 0:058daa59980d 37
shorie 0:058daa59980d 38 }
shorie 0:058daa59980d 39
shorie 0:058daa59980d 40 #endif