Basic Audio Signal Processing Library
Dependents: unzen_sample_nucleo_f746 skeleton_unzen_nucleo_f746 ifmag_noise_canceller synthesizer_f746
オーディオ信号処理用のライブラリです。
mbed-dspのフィルタ群向けに作ったクラス・ラッパーのほか、以下のクラスを用意しています。
- ヒステリシス
- sin/cosオシレータ
- リミッター
クラスは全て名前空間amakusaに含まれます。
firinterpolator.cpp
- Committer:
- shorie
- Date:
- 2017-01-02
- Revision:
- 1:0a37bce4f985
- Child:
- 5:3d6cf4dbf458
File content as of revision 1:0a37bce4f985:
#include "amakusa.h" amakusa::FIRInterpolator::FIRInterpolator(uint16_t taps, float32_t *pCoeff, uint32_t blockSize, uint8_t L ) : AbstractFilter( blockSize ) { arm_fir_interpolate_init_f32( &(this->state), L, taps, pCoeff, new float32_t[taps/L+blockSize-1], blockSize); } amakusa::FIRInterpolator::~FIRInterpolator() { delete [] this->state.pState; } void amakusa::FIRInterpolator::run( float32_t *pSrc, float32_t *pDst, uint32_t blockSize ) { arm_fir_interpolate_f32( & this->state, pSrc, pDst, blockSize ? blockSize : this->blockSize ); }