Quantcast
Channel: EngineerZone: Message List
Viewing all articles
Browse latest Browse all 28044

How to use biquad function correctly?

$
0
0

I've use matlab get the EQ coeffis a,b , and its work correctly, but when I fill in DSP biquad function, the state value always were -1.#INF.

I was using vector biquad.  please help me!   The dsp chip is sharc dsp 21488.

 

dsp code:

 

static float pm coeffs[MAX_BAND_NUM*5];

float dm state[31*2+1];

...

coeffs[0] =  0.7673;//a2;
coeffs[1] =  -1.7522;//a1;
coeffs[2] =  0.2295;//b2;
coeffs[3] =  -1.7522;//b1;
coeffs[4] =  1.5379;//b0;

....

biquad(pData_in,pData_out,&coeffs[5*i],state,256,1);

 

 

 

matlab figure:

QQ图片20141024101740.jpg

QQ图片20141024101821.jpg


Viewing all articles
Browse latest Browse all 28044

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>