17.01.2013 Views

musicdsp.org source code archive - WSInf

musicdsp.org source code archive - WSInf

musicdsp.org source code archive - WSInf

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

A2A0 = A2/A0;<br />

A4A3 = A4/A3;<br />

A5A3 = A5/A3;<br />

but I think some compilers do this optimization automatically.)<br />

Then the lowpass process loop becomes<br />

Stage1 = B0*Input + State0;<br />

State0 = B1*Input + A1A0*Stage1 + State1;<br />

State1 = B2*Input + A2A0*Stage1;<br />

Output = B3*Stage1 + State2;<br />

State2 = B4*Stage1 + A4A3*Output + State2;<br />

State3 = B5*Stage1 + A5A3*Output;<br />

Much faster, isn't it?

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!