1234567891011121314151617181920212223242526272829303132333435363738 |
- #ifndef _V_IIR_H_
- #define _V_IIR_H_
- typedef struct {
- int stages;
- float *coeff_A;
- float *coeff_B;
- float *z_A;
- float *z_B;
- int ring;
- float gain;
- } IIR_state;
- void IIR_init(IIR_state *s,int stages,float gain, float *A, float *B);
- void IIR_clear(IIR_state *s);
- float IIR_filter(IIR_state *s,float in);
- float IIR_filter_ChebBand(IIR_state *s,float in);
- #endif
|