Basic Audio Signal Processing Library
Dependents: unzen_sample_nucleo_f746 skeleton_unzen_nucleo_f746 ifmag_noise_canceller synthesizer_f746
オーディオ信号処理用のライブラリです。
mbed-dspのフィルタ群向けに作ったクラス・ラッパーのほか、以下のクラスを用意しています。
- ヒステリシス
- sin/cosオシレータ
- リミッター
クラスは全て名前空間amakusaに含まれます。
biquadcascadedf2t.cpp@8:1fa224c83cfa, 2017-02-18 (annotated)
- Committer:
- shorie
- Date:
- Sat Feb 18 01:05:19 2017 +0000
- Revision:
- 8:1fa224c83cfa
- Parent:
- 5:3d6cf4dbf458
Fixed mistake of visibility in the limitterlinatan.h
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
shorie | 1:0a37bce4f985 | 1 | #include "amakusa.h" |
shorie | 1:0a37bce4f985 | 2 | |
shorie | 5:3d6cf4dbf458 | 3 | amakusa::BiQuadCascadeDF2T::BiQuadCascadeDF2T(uint16_t stages, float32_t *pCoeff, uint32_t block_size) |
shorie | 5:3d6cf4dbf458 | 4 | : AbstractFilter( block_size ) |
shorie | 1:0a37bce4f985 | 5 | { |
shorie | 1:0a37bce4f985 | 6 | arm_biquad_cascade_df2T_init_f32( |
shorie | 1:0a37bce4f985 | 7 | &(this->state), |
shorie | 1:0a37bce4f985 | 8 | stages, |
shorie | 1:0a37bce4f985 | 9 | pCoeff, |
shorie | 1:0a37bce4f985 | 10 | new float32_t[stages*2] |
shorie | 1:0a37bce4f985 | 11 | ); |
shorie | 1:0a37bce4f985 | 12 | } |
shorie | 1:0a37bce4f985 | 13 | |
shorie | 1:0a37bce4f985 | 14 | amakusa::BiQuadCascadeDF2T::~BiQuadCascadeDF2T() |
shorie | 1:0a37bce4f985 | 15 | { |
shorie | 1:0a37bce4f985 | 16 | delete [] this->state.pState; |
shorie | 1:0a37bce4f985 | 17 | } |
shorie | 5:3d6cf4dbf458 | 18 | void amakusa::BiQuadCascadeDF2T::run( float32_t *pSrc, float32_t *pDst) |
shorie | 1:0a37bce4f985 | 19 | { |
shorie | 1:0a37bce4f985 | 20 | arm_biquad_cascade_df2T_f32( |
shorie | 1:0a37bce4f985 | 21 | & this->state, |
shorie | 1:0a37bce4f985 | 22 | pSrc, |
shorie | 1:0a37bce4f985 | 23 | pDst, |
shorie | 5:3d6cf4dbf458 | 24 | this->block_size |
shorie | 1:0a37bce4f985 | 25 | ); |
shorie | 1:0a37bce4f985 | 26 | } |