# State variable filter

A state variable filter is a type of active filter. It consists of one or more integrators, connected in some feedback configuration. The most common implementation sums the input signal with its integral and its double integral.

## Kerwin-Huelsman-Newcomb (KHN) Biquad Filter Example

The example given below can produce simultaneous lowpass, highpass and bandpass outputs from a single input. This is a second-order (biquad) filter. Its derivation comes from rearranging a high-pass filter's transfer function, which is the ratio of two quadratic functions. The rearrangement reveals that one signal is the sum of integrated copies of another. That is, the rearrangement reveals a state variable filter structure. By using different states as outputs, different kinds of filters can be produced. In more general state variable filter examples, additional filter orders are possible with more integrators (i.e., more states).

The signal input is marked Vin; the LP, HP and BP outputs give the lowpass, highpass and bandpass filtered signals respectively.

For simplicity, we set:

$R_{f1}=R_{f2}$ $C_{1}=C_{2}$ $R_{1}=R_{2}$ Then:

$F_{0}={\frac {1}{2\pi R_{f1}C_{1}}}$ $Q=\left(1+{\frac {R_{4}}{R_{q}}}\right)\left({\frac {1}{2+{\frac {R_{1}}{R_{g}}}}}\right)$ The pass-band gain for the LP and HP outputs is given by:

$A_{HP}=A_{LP}={\frac {R_{1}}{R_{G}}}$ It can be seen that the frequency of operation and the Q factor can be varied independently. This and the ability to switch between different filter responses make the state-variable filter widely used in analogue synthesizers.

Values for a resonance frequency of 1 kHz are Rf1 = Rf2 = 10k, C1 = C2 = 15nF and R1 = R2 = 10k

## Applications

State variable filters are frequently used for modifying frequency response in audio signal processing. At low Q settings they are often used in parametric equaliser circuits, and at high or variable Q settings to create resonant filter modules in analog synthesizers. For manual control of frequency, R1 and R2 in the section above may be replaced by a dual potentiometer; and for voltage control, the devices U2 and U3 may be replaced by voltage controlled amplifiers or operational transconductance amplifiers.