Basic Audio Signal Processing Library

Dependents:   unzen_sample_nucleo_f746 skeleton_unzen_nucleo_f746 ifmag_noise_canceller synthesizer_f746

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

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

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

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

Revision:
5:3d6cf4dbf458
Parent:
1:0a37bce4f985
--- a/firinterpolator.cpp	Thu Jan 26 03:42:05 2017 +0000
+++ b/firinterpolator.cpp	Fri Feb 10 13:24:30 2017 +0000
@@ -1,27 +1,27 @@
 #include "amakusa.h"
 
-amakusa::FIRInterpolator::FIRInterpolator(uint16_t taps, float32_t *pCoeff, uint32_t blockSize, uint8_t L )
-     : AbstractFilter( blockSize )
+amakusa::FIRInterpolator::FIRInterpolator(uint16_t taps, float32_t *pCoeff, uint32_t block_size, uint8_t L )
+     : AbstractFilter( block_size )
 {
     arm_fir_interpolate_init_f32( 
         &(this->state),
         L,
         taps, 
         pCoeff,
-        new float32_t[taps/L+blockSize-1],
-        blockSize);
+        new float32_t[taps/L+block_size-1],
+        block_size);
 }
 
 amakusa::FIRInterpolator::~FIRInterpolator()
 {
     delete [] this->state.pState;
 }
-void amakusa::FIRInterpolator::run( float32_t *pSrc, float32_t *pDst, uint32_t blockSize )
+void amakusa::FIRInterpolator::run( float32_t *pSrc, float32_t *pDst )
 {
     arm_fir_interpolate_f32( 
         & this->state, 
         pSrc, 
         pDst, 
-        blockSize ? blockSize : this->blockSize
+        this->block_size
         );
 }
\ No newline at end of file