# FIR crossovers

A linear-phase crossover and EQ with REW, rePhase and CamillaDSP

A step-by-step method for a linear-phase FIR crossover and EQ, as used on Kantarellen: measure each driver in REW, shape its response and phase in rePhase, and run the filters in CamillaDSP.

The method is written for multiple-entry horns. The way the drivers are measured, and the assumptions about how they line up acoustically, are specific to that kind of speaker; other designs may need a different approach.

You need REW, rePhase and a measurement microphone. The microphone and sound card should be calibrated, with the calibration files applied in REW. For more on taking the measurements, see the [quasi-anechoic measurement tutorial on ASR ↗](https://www.audiosciencereview.com/forum/index.php?threads/how-to-make-quasi-anechoic-speaker-measurements-spinoramas-with-rew-and-vituixcad.21860/).

## 1. Measure each driver

No anechoic chamber is needed. Measure the horn drivers around the horn mouth, and the subwoofer as close to the cone as possible. Keep the speaker as far from walls, floor and ceiling as you can, so the measurements have as few room reflections as possible.

A timing reference is not needed yet: this first part works on each driver on its own, so the timing between drivers does not matter. Measure the full range, 0 to 22.05 kHz at 44.1 kHz. Psychoacoustic smoothing makes the graph easier to read, but it is optional.

## 2. EQ the response in REW

Start with the treble driver. Open the EQ window above the response graph, choose rePhase as the equaliser in the top right menu, and set the target level just below the driver's response in its own band. With a crossover at 1 kHz, only the response above 1 kHz needs EQ.

Under Filter Tasks, press Match response to target. REW places peaking filters that flatten the response. Then press Save filter settings to file.

## 3. Set the time reference

Close the EQ window and go back to the treble measurement. Right-click the graph and choose Set t=0 at IR peak, then use Offset t=0 to move the reference until the phase in the driver's band sits as close to 0° as possible. If it settles around 180° instead, the driver is inverted: invert its polarity.

Both commands only change how the phase is displayed, not the phase itself. A downward slope means those frequencies arrive after the reference time, an upward slope that they arrive before it, and a flat phase that they arrive on time. Getting close here simply means less work with the phase sliders in rePhase. The phase does not have to be flat yet.

Then export the response with File → Export → Export measurement as text.

## 4. Import into rePhase

In rePhase, import the exported file under the Measurement tab. If the curve falls outside the window, change the window under Ranges or add a gain offset; -105 dB worked here.

Next, bring in the EQ from REW: under Paragraphic Gain EQ, choose Tools → Import REW Filter Settings. The EQ can be minimum-phase, where it also changes the phase, or linear-phase, where it does not. Pick whichever looks best for now: the phase is dealt with in the next step.

Set the export settings. The rate must match the DSP's sample rate, or the filters will not work correctly. The filters used here have 16,384 taps, Moderate optimisation, Hann windowing and 64-bit IEEE mono (.wav) as the format. Fewer taps give less latency, and other windows can work better when there are only a few taps.

## 5. Flatten the phase

Under Paragraphic Phase EQ, adjust the phase until it lines up at 0°. The Range can go beyond 90° if needed. A preset such as Flat ⅓ Oct High Freq sets the sliders in the treble range and gives a good starting point.

## 6. Generate the crossover

Set the crossover under Linear-Phase Filters and press Generate. The window below shows the latency the filter adds, 42.667 ms here. To lower it, use fewer taps, at the cost of a harder match at low frequencies. In the graph, red is the generated response and blue the target.

## 7. Load the filters and set the delays

Load the filter into the DSP. On Kantarellen that is CamillaDSP on a Raspberry Pi: the file becomes a Conv filter on the right channel of the pipeline. Repeat steps 2 to 6 for every driver and load each filter the same way.

Then find the delay between the drivers. Changing the phase also changes the effective delay, so measure again with the FIR filters running. The spectrogram in REW gives a rough estimate. Invert one driver, fine-tune the delay for the deepest possible notch, then invert it back: the drivers now sum cleanly. At low frequencies, where reflections fill the spectrogram and the response with notches, a timing reference in REW is more reliable.

With linear-phase FIR filters, the impulse peak of the subwoofer has to line up with the impulse peak of the midranges to keep the phase linear through the crossover.

## 8. The room and the bass

The measurements were taken at the horn mouth, so the bass will be different in the room. Below the range where the horn controls it, the sound spreads in every direction, and the room and the speaker placement shape it. For the subwoofer, the near-field measurement is used only for its phase; the EQ comes from measurements in the room. To make the bass the same at every seat before any EQ, see .

For room EQ, take several measurements around the listening position, average them and EQ towards a target curve; rePhase has a [tutorial for this ↗](https://rephase.org/tutorials/REW%20average%20measurements%20and%20impulse%20correction%20rePhase.pdf). A separate convolution file for the room correction adds even more latency. Instead, import the room EQ into a new bank in each of the original rePhase files (treble, midrange and subwoofer), so every driver gets the same correction. This part is still being refined: so far, the EQ from averaged room measurements has often lost out to the original curve.

Loudness filters in CamillaDSP keep the tonal balance right when the volume changes: without them, an EQ that sounds right at one level sounds dull when quieter and harsh when louder.

## FIR or IIR

Kantarellen has been compared with two crossovers using the same EQ: IIR filters as a zeroth-order crossover, and linear-phase FIR with flat phase down to the lowest frequencies and 96 dB per octave between the drivers. Both sound smooth and natural, and pre-ringing was not audible. The other approach has its own guide: . The FIR version gives the clearer soundstage, like putting on glasses and seeing everything in focus again. Even so, VIST horns now mostly use the zeroth-order crossover.

The method was first posted in the [Kantarellen build thread on diyAudio ↗](https://www.diyaudio.com/community/threads/2-way-meh-build.421176/post-8198764), where the discussion continues. For more about the speakers it was made for, see , and .

Source: https://vist.audio/fir-crossover/
