⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 filter.h

📁 dsp AD公司ADSP21的代码,里面有FFT FIR IIR EQULIZER G722_21F 等可以在项目中直接应用的代码.此代码的来源是ADI公司自己出版的书籍,此书在美国购得
💻 H
字号:

/* FILTER COEFFECIENTS FOR FILTER ROUTINES */

/* FILTERS: 2 FIR AND 2 IIR */

/* 35 point lowpass FIR filter cutoff at 0.19
 designed using the Parks-McClellan program */

  float  fir_lpf35[35] = {
  -6.3600959e-03,  -7.6626200e-05,   7.6912856e-03,   5.0564148e-03,  -8.3598122e-03,
  -1.0400905e-02,   8.6960020e-03,   2.0170502e-02,  -2.7560785e-03,  -3.0034777e-02,
  -8.9075034e-03,   4.1715767e-02,   3.4108155e-02,  -5.0732918e-02,  -8.6097546e-02,
   5.7914939e-02,   3.1170085e-01,   4.4029310e-01,   3.1170085e-01,   5.7914939e-02,
  -8.6097546e-02,  -5.0732918e-02,   3.4108155e-02,   4.1715767e-02,  -8.9075034e-03,
  -3.0034777e-02,  -2.7560785e-03,   2.0170502e-02,   8.6960020e-03,  -1.0400905e-02,
  -8.3598122e-03,   5.0564148e-03,   7.6912856e-03,  -7.6626200e-05,  -6.3600959e-03
                          };

/* 37 point lowpass FIR filter cutoff at 0.19
 designed using the KSRFIR.C program */

  float  fir_lpf37[37] = {
  -6.51000e-04,  -3.69500e-03,  -6.28000e-04,   6.25500e-03,   4.06300e-03,
  -8.18900e-03,  -1.01860e-02,   7.84700e-03,   1.89680e-02,  -3.05100e-03,
  -2.96620e-02,  -9.06500e-03,   4.08590e-02,   3.34840e-02,  -5.07550e-02,
  -8.61070e-02,   5.75690e-02,   3.11305e-01,   4.40000e-01,   3.11305e-01,
   5.75690e-02,  -8.61070e-02,  -5.07550e-02,   3.34840e-02,   4.08590e-02,
  -9.06500e-03,  -2.96620e-02,  -3.05100e-03,   1.89680e-02,   7.84700e-03,
  -1.01860e-02,  -8.18900e-03,   4.06300e-03,   6.25500e-03,  -6.28000e-04,
  -3.69500e-03,  -6.51000e-04
                          };

/* IIR lowpass 3 section (5th order) elliptic filter
with 0.28 dB passband ripple and 40 dB stopband attenuation.
The cutoff frequency is 0.25*fs. */

    float iir_lpf5[13] = {
          0.0552961603,
         -0.4363630712,  0.0000000000,  1.0000000000,  0.0000000000,
         -0.5233039260,  0.8604439497,  0.7039934993,  1.0000000000,
         -0.6965782046,  0.4860509932, -0.0103216320,  1.0000000000
        };

/* IIR highpass 3 section (6th order) chebyshev filter
with 1 dB passband ripple and cutoff frequency of 0.3*fs. */

    float iir_hpf6[13] = {
        0.0025892381,
        0.5913599133, 0.8879900575,-2.0000000000, 1.0000000000,
        0.9156184793, 0.6796731949,-2.0000000000, 1.0000000000,
        1.3316441774, 0.5193183422,-2.0000000000, 1.0000000000
        };

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -