2 ms·
Depends on what you mean by “simple”. If you want a circuit you can build with one op-amp and some passives from some coefficients you have memorized, without s
by kragen 7y ago
Depends on what you mean by “simple”. If you want a circuit you can build with one op-amp and some passives from some coefficients you have memorized, without simulating it first, you're probably going to go with a second order Butterworth or something and get that gentle roll-off you're talking about. But if you're using SciPy or Octave, you can synthesize a tenth-order elliptic IIR filter and apply it in three lines of code (to me that's “simple”), and it'll be pretty brickwallish.
It's true that you get more latency as you move to lower-phase-distortion IIR and zero-phase-distortion FIR filters. But that's not a reason to filter in the Fourier domain instead, because in the Fourier domain you get all the latency. If you can pay all the latency that way, you can eliminate the IIR phase distortion with filtfilt.
Similarly, ringing in your IIR filter is not a reason to go to the Fourier domain and start bashing bins to zero, because you get all the ringing that way: the Fourier-domain difference between your original signal and the transformed signal is a Fourier-domain impulse, whose inverse Fourier transform is a sinusoid that fills eternity.
Also, just to be clear, and you probably already know this, but ringing and phase distortion are two totally different phenomena.