FIR

Nathan Dunn Andy Wehmeyer please forgive me if this question is astray from the original topic or will cause the audience some confusion, but it seems related to me. When would it be appropriate and/or advantageous to use FIR filters over IIR filters if they are available in the DSP? This explanation has me thinking that in addition to correcting the frequency response caused by the “room” using EQ filters, we are also attempting to reverse phase shifts caused by the “room”, and therefore IIR filters may be more appropriate for vehicle applications. What would be the advantage of having FIR filters available in a DSP for cars?

Andy Wehmeyer Nathan Dunn The advantage of FIR filters is that it is possible to filter only the phase in basically any shape you wish and independently of the frequency response. Another benefit is that the delay through the filter is the same at all frequencies. So, for people who believe that IIR is bad because of the cascading group delay which “destroys the harmonic structure of the music”, this is an alternative.

You might find this program interesting.

https://rephase.org/

FIR filtering uses a linear spacing of “bands” called “taps”. The number of taps determines the frequency resolution. So, a 512 tap filter (512 available points for adjustment, basically) gives you about 40Hz resolution (20,000 / 512). That’s one band per octave between 20 and 40 Hz (the lowest octave) and 250 bands per octave from 10k to 20k. That’s not optimum, but it isn’t a big problem.

There are two basic ways to increase the resolution in the low frequencies: 1) increase the number of taps, and 2) split the filters into more than one filter—you could use one 512 tap filter below 1k and another 512 tap filter above 1k. That’s called “fast convolution”. Stitching the response back together after the implementation of the filters is tricky, but can be done. Adding taps to increase the resolution is increasingly computationally intensive and applies ever more bands at high frequencies, too. Another option is to retain the FIR for high frequencies and process low frequencies using IIR and a “makeup delay” on the section processed via IIR to match the delay through the taps of the FIR filter.

The other drawback is that it takes a LONG TIME for the signal to pass through the filter. In order to process all the way down to 20Hz, the time through the filter required is 50mS not counting anything else that might contribute additional latency. This 50mS is enough to put what you see and what you hear at a concert far enough apart that it’s annoying to the attendees and especially annoying to the performers. FIR isn’t often used for prosound for live gigs.

As I understand it, DIRAC Live uses a combination of IIR filters to correct frequency response and then a pair of FIR filters to do whatever they do to the phase. It appears that one of the functions of the FIR filters is to better match the phase between left and right but also to change the impulse tail somehow. I cannot find a suitable explanation of exactly what they do. It’s pretty cool.

50mS of signal delay is more than enough to completely destroy the performance of Bluetooth hands free in a car in an aftermarket product connected to an OE system. I know this to be true because I used to take those calls at a previous job.

If you want to experiment with this, check out MiniDSP. There are several ways to do it—from an 8-12 CDSP to one of the OpenDRC models. I think some of the new Audison processors also have an FIR option, but I don’t know precisely what it does. The pitch seems to be the elimination of the group delay build up for implementing crossovers. Ken can probably fill you in on the rest of that.

Ken Ward Nathan Dunn We use FIR in several of the functions in our bit Virtuoso processor (input EQ), and then a mode with some additional functions are selectable as FIR when you configure the processor. We don’t use FIR below 100 Hz for the reasons Andy explained. We initially introduced FIR, then later we introduced all-pass filters and the FIR-phase-manipulating algorithm in conjunction with our bit Tune measurement system. We use the bit Tune to measure the phase, and then we use a combination of delay and FIR to manipulate the phase automatically, and allpass filters are available to manipulate the phase manually. This hybrid FIR/IIR approach seems to be what Dirac and Audyssey are using.