Oh yes, you are correct. I had in mind the FIR tap weights, not the IIR coefficients. You could transfer F, Gain and Q from LINFIR to your processor, but you are likely aware that different DSP designers may use slightly different definitions of Q and gain, but I thought to mention it in case you are not.As for the processing blocks in SS - can you share exactly which blocks need special attention? In my simple chematic I have just crossover and FR linearization. And by the way, there is no direct export of the "correct" biquads from LinFIR into sigmastudio, "a1" and "a2" coefficients need to be inverted as far as I get.
Hi @UnDrew, and sorry for the delay.Dear Arnwald,
First of all thank you for the very useful tool you created and presented for all of us, DIYers in the first place
I am in the process of understanding the proper way of taking measurements and creating crossovers/filters through LinFIR and here are the questions I have at the moment:
1) Is there any difference in the final result between the measurements made in REW or in LinFIR?
2) Are there any kind of rules to take proper on-axis measurements, except for the standard tips like using cable loopback option, keep the acoustic cabinets that is being measured at least 1 m away from walls and obstacles and have at least 30 db headroom above noise floor?
3) Since using Fir is pointless with taps below 2000 and under 100 hz, do I get it correctly that the proper option for setting a 3-way active crossover system is to use Fir for Tw and Mid and IIR for Bass? Thus there will be Fir+IIR as a default option.
4) Also as you indicated in the description part if I take measurement in my living room I should not try to correct phase unless I use windowing. Does it mean that the basic understanding if I get usable measurement is that I have readable phase without unwrapping it? Or there are any other constraints in the regard?
5) Eager to see the video of the real workflow for 3 or 4 way loudspeaker from the start to the end(I saw 5 minute video on YouTube but I guess it was like a preview to the big one).
6) What is the best option - the same taps amount for all drivers or different per driver? I think it will be enough to have 512 taps for the TW and 1500 taps for the Mid for 96K project, but I am not sure if it will be ok to make it this way.
Best regards,
Andrew.
I will be a little bit biased here, but I find easier to keep a common time reference between all measurements when performing them in LinFIR. But that's because you have to define the t=0 in REW otherwise you will end up exporting the whole deconvolved signal, containing the harmonic distortion impulse responses before the main pulse. You must separate the linear part from the non-linear part before importing it in LinFIR.REW is not strictly needed because LinFIR can handle the entire measurement process itself. Or if you like use both together I guess?
LinFIR only does the filter creation, not the real-time convolution.
Don't limit yourself with low powered DSP engine. A mch interface enables use of a low cost quiet PC, even an RPi5 should be enough.
IMHO, any corrections welcome
Arnwald, thank you for the feedback!Hi @UnDrew, and sorry for the delay.
Thank you for your kind words, and for the detailed questions.
1 ) Yes and no. With equivalent windowing and smoothing, the results are very similar, but not strictly identical, because of different processing choices. The smoothing kernel can differ, for instance, but that’s an arbitrary choice and really a matter of detail. The shape of the sweep can also change things slightly: the protective fade-in in LinFIR was designed to create less pre-ringing, so the rising edge of the sweep is gentler.
2) The answer is mostly in your question. I would only add that the microphone position should stay the same for all the drivers of a speaker, so the relative times of flight between them are preserved, which is what LinFIR needs to design the crossover. Raising the speaker well above the floor also helps, since the first reflection sets the length of the window you can use, and therefore the lowest frequency you can trust in a gated measurement. Below that, the near-field / far-field splicing wizard in LinFIR lets you merge a near-field measurement of the woofer (and port or passive radiator if any) with the far-field one, to get a full-range quasi-anechoic response even in a normal room.
3) Not necessarily. I do a FIR crossover at 80 Hz with the 1500 taps of a Hypex DSP without any problem. The high-pass of the woofer is not extremely steep, somewhere between an LR2 and an LR4, but it is enough. The subwoofer low-pass, on the other hand, is steeper, which lets me stay away from its very low port resonance (a 1 m long port...). So FIR on all drivers is perfectly possible, and IIR for the bass remains a valid choice too. I wrote a blog post on brickwall FIR filters that you may find useful: https://demaudio.com/blog/brickwall-fir-vs-lr24/
4) Not quite. Reflections show up as peaks and dips in the frequency response, with clearly visible phase jumps associated with them. They are easier to see when you unwrap the phase and remove the linear time-of-flight component (both in the Phase options dropdown). And indeed, you should not try to correct a phase with jumps caused by reflections: absorbing those rotations requires very long filters, and the result would only be valid at one very precise listening point. For phase correction, I recommend working on the speaker alone with a quasi-anechoic measurement: either on the midrange and tweeter after windowing, or also on the bass after splicing with a near-field measurement.
5) I would really like to make a full video tutorial, but I’m terribly short on time with my two jobs. I’m working on a tutorial as a blog article, and we’ll see what comes next.
6) It depends. For crossovers it’s easier with the same number of taps for all drivers, since it lets you build perfectly complementary filters. That’s how I do it myself.
Arnaud
It means that the FIR correction is computed using the response after applying (or not) the IIR filter bank defined in LinFIR.Arnwald, thank you for the feedback!
May I ask one more question - re: pre-IIR: Correction computed from raw IR before IIR filters // post-IIR: Correction computed after IIR filter application.
In particular "before/after IIR filter application" means the IIR filters were made in LinFIR or some IIR filters already were present in sound path BEFORE measurement?
So getting back to the "default" workflow:It means that the FIR correction is computed using the response after applying (or not) the IIR filter bank defined in LinFIR.
FIR or IIR filters are LTIs (linear, time invariant systems) and it doesn’t matter wether one or the other is applied first in a DSP (numerical precision aside), so this is a pure generation option. The correction algorithms will not see the same response with or without the IIR filters.
The idea behind this option is that, if you want to flatten the low end using IIR, you can then compute the FIR correction with the corrected low end by using “post-IIR”. And if you want to keep IIR filters for voicing, you chose “pre-IIR”, so that the FIR filter do not fight what you did with the IIR filter bank.
just a suggestion, as there are many ways to do this, my suggestion is to start with tweeter using FIR - its just a high pass with XOver frequency+slope, then do mid frequency -its a bandpass. Pick the slopes for the tweeter and woofer (complementary slopes) get mid and tweeter aligned for competitive flat gain and phase response, then switch on the woofer and try to get target shape with IIR first, then add FIR to tune the gain and phase. It depends how many taps you have, I am limited to 512, but it's actually enough. Look at impulse response and change delays on each driver until the peak impulses all occur at the same time. Make a note of the inter-driver delays for your DSP - the delay's.So getting back to the "default" workflow:
1) obvious that the Bass should be corrected with IIR.
2) Having a 3-way system first I correct the Bass witih IIR, then set IIR crossover for Bass say LR24 and the same complimentary Mid IIR crossover.
3) Set Mid-Tw complimentary FIR crossover and adjust the FR with post-IIR option.
Is it correct?
I reverted to measuring the gain and phase of certain filter responses of my DSP and comparing the measurements against theory (plotting both) to see exactly what the DSP designer implemented. Can you send us a link to the Audio EQ Cookbook that LINFIR uses please? I'd like to see the differences between that and the filters than Marani has implemented in his processors.Hello,
LinFIR 1.5.4 and 1.5.5 are out.
The main new thing is an AI assistant. You can now connect LinFIR to Claude Desktop, Claude Code or any assistant compatible with MCP, and ask things in your own words, like “check my project”, “why is there a dip at 2.5 kHz?” or “align the drivers”. It reads the project opened in LinFIR and has the documentation, so it can look at any curve, missing measurements, crossovers too low for the FIR length, dips at the crossovers... and explain what to do. With a license, it can also do the changes for you if you agree, run Auto-align, Auto-level, Auto EQ, measure, make a scan with the turntable, export. Everything it changes is visible directly in LinFIR and can be undone, and nothing that makes sound or writes to a device happens without your Allow. To set it up, it’s in Settings > AI Assistant, a couple of clicks.
Room Calibration changed too. Before, the measurement positions were aligned in time and averaged with their phase. With a sub placed away from the speakers, it was creating dips around the crossover that you don’t have at any position, and then the correction was trying to fill them... Not good. Now the positions are averaged in power by default, and there is an experimental “Shared phase” option that put back the phase common to all positions, usually in the bass. The aligned average is still available if your positions are close to each other. Be careful, old projects open with the new average, so check your room correction if you use it.
For Hypex users, there was a real problem with the HFD export. Hypex Filter Design doesn’t define the Q of a PEQ like the Audio EQ Cookbook that LinFIR uses (1.41 times wider at ±6 dB), so the module played wider bands than the simulation. I had a tweeter measured 2 dB brighter at 10 kHz than what LinFIR predicted, that’s how I found it. The export now writes the Q as HFD reads it, so if you sent Auto EQ filters to a Hypex module, please export again. More generally you can now tell LinFIR in which DSP you type your PEQs (DCX2496, CamillaDSP, rePhase, REW, SigmaStudio...) and the IIR windows show the Q like this DSP reads it. The Hypex DSP Manager also got the password management, the device cloning and the rest of the device settings, with the same names as in Hypex Filter Design.
Other things: the rotation center correction now rebuilds the bass from the point where the cabinet really radiates, a bit in front of the baffle (I checked it with a BEM simulation). And on Windows, the measurement mic is now opened in exclusive mode during the sweep, because the noise suppression of Windows was cutting parts of the sweep with USB mics like the UMIK-1. Yes, really.
Full changelog: https://demaudio.com/doc/linfir/release-notes.html
Arnaud
You have an explanation here:I reverted to measuring the gain and phase of certain filter responses of my DSP and comparing the measurements against theory (plotting both) to see exactly what the DSP designer implemented. Can you send us a link to the Audio EQ Cookbook that LINFIR uses please? I'd like to see the differences between that and the filters than Marani has implemented in his processors.
Thank youYou have an explanation here:
![]()
Export & Project Management - LinFIR Documentation
Export FIR filter coefficients and impulse responses from LinFIR for DSPs, amplifiers and convolution software, and manage projects.demaudio.com
And the Cookbook: