Added on : 31/08/06 by scoofy[ AT ]inf[ DOT ]elte[ DOT ]huComment : Nice. This is very similar to a state variable filter in many ways. Relationship between c and frequency:

c = 2*sin(pi*freq/samplerate)

You can approximate this (tuning error towards nyquist):

c = 2*pi*freq/samplerate

Relationship between r and q factor:

r = 1/q

This filter has stability issues for high r values. State variable filter stability limits seem to work fine here. It can also be oversampled for better stability and wider frequency range (use 0.5*original frequency):

Added on : 18/09/11 by kiranpatel0305[ AT ]gmail[ DOT ]comComment : Can anyone help me with C++ class composition to implement a single pole-filter design program. The program will allow the user to specify resistor and capacitor values and filter type. Once all the user parameters are specified, the program will return the cutoff frequency values for the filter. I need this as soon as possible and I am lost big time :(

Create a Multifile Project for the Composition Lab

1. Add three classes to the project: a Filter class, a Capacitor class, and a Resistor class.
2. The Capacitor class should be modeled after the Resistor class for class members and operation.