Author Topic: State variable filter, the digital implementation  (Read 1243 times)

0 Members and 1 Guest are viewing this topic.

Offline YansiTopic starter

  • Super Contributor
  • ***
  • Posts: 3913
  • Country: 00
  • STM32, STM8, AVR, 8051
State variable filter, the digital implementation
« on: May 04, 2019, 04:12:34 pm »
Hello,
supposed I have to implement this, the State Variable Filter:



What I do not understand clearly, is whether I have to implement this exactly to get the desired behavior, or whether I can toy a bit with the integrators to make implementation somewhat more efficient.

What I mean is this: There are two forms of the digital integrator.  The implementation of SVF above uses both types. The Question is, whether I could for example replace the second integrator with the other form. Will it still work as intended?



The same I could ask with regards to the bandpass output: Could I obtain the output just after the z-1 delay block? (The signal will be obviously the same, but 1 sample time delayed).

That would for example make for a nice optimization using a MAC instruction on a real microprocessor, as I could implement this whole block as a single MAC this way:



Code: [Select]
y[n] = y[n-1] + Fc*x[n]
And same for the other integrator, the Lowpass output respectively.


« Last Edit: May 04, 2019, 04:16:30 pm by Yansi »
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf