Basic Audio Signal Processing Library
Dependents: unzen_sample_nucleo_f746 skeleton_unzen_nucleo_f746 ifmag_noise_canceller synthesizer_f746
オーディオ信号処理用のライブラリです。
mbed-dspのフィルタ群向けに作ったクラス・ラッパーのほか、以下のクラスを用意しています。
- ヒステリシス
- sin/cosオシレータ
- リミッター
クラスは全て名前空間amakusaに含まれます。
firfilter.h
- Committer:
- shorie
- Date:
- 2017-02-18
- Revision:
- 8:1fa224c83cfa
- Parent:
- 6:ed10856c2305
File content as of revision 8:1fa224c83cfa:
#ifndef _firfilter_h_ #define _firfilter_h_ #include "abstractfilter.h" namespace amakusa { /** * @brief Wrapper class of the arm_fir_f32() and the arm_fir_init_f32(). * @details * To use this class, include amakusa.h */ class FIRFilter : public AbstractFilter { public: /** * @brief Constructor * @param[in] taps Number of the elements in the coeffisients array. Or length of the impuls response. * @param[in] pCoeff Ponter to the coefficients array ( Impuls response ). * @param[in] blockSize Maximum number of the samples to be given to run() method at onece. */ FIRFilter(uint16_t taps, float32_t *pCoeff, uint32_t block_size); /** * Destructor */ virtual ~FIRFilter(); /** * @brief Run the filter. * @param[in] pSrc Pointer to the source buffer to be filtered. * @param[out] pDst Pointer to the destination buffer to store the filtered signal. */ virtual void run( float32_t *pSrc, float32_t *pDst ); private: arm_fir_instance_f32 state; }; } #endif