Redo-crossover project (FIR filter based)

boxerfan88

Well-known member
Didn't tweak the system sound for quite some time.

Have come across intermittent articles about crossover to the lowest big driver, which ranges from 80Hz (HT) to 250Hz in those big speakers with 12" drivers. Since I'm not really into stereo bass, and I have already shifted my subwoofer to the middle between L & R speakers, I was mulling what would happen if I crossed higher?

Backside itchy ... so had to scratch it ... now starting a new project in April to tweak the crossover point to the subs.
 
Last edited:

boxerfan88

Well-known member
Started by creating the crossover FIR filter without room correction.

For example, 100Hz crossover.

2025-04-03_0812 Audacity 2025-04-02_XO_100Hz_LR4_4ktap_float-88k.png
 

boxerfan88

Well-known member
Now redo the room correction for 100Hz crossover.
  • set target level
  • added room curve of +1.5dB/oct from 200Hz to 50Hz
  • allowed low shelf from -2dB to 0dB

2025-04-03_0815 roomeqwizard EQ_for_measurement_7_RMS_Avg_100Hz_LR_ECM52.png
 

boxerfan88

Well-known member
And now on to listening for a few days to see if I like the tweaks or not...

Initial impression ... the bass sounds a little bit fuller/punchier ...
 
Last edited:

boxerfan88

Well-known member
Managed to get some time after work to sweep the new ECM53. Enjoy the charts ...

More low end (<100Hz), less messy 100-300Hz area.
ECM53 SPL LR.png

System wide distortion is really low (<1%) throughout most of the audio band (40Hz-10kHz).
Starts to climb above 1% starting 40Hz ... and only reaches 5% at 20Hz.

ECM53 Distortion LR.png

In-room sound decay is nicely <300ms throughout the audio band, except for the room mode peaks at the low end.
Relatively quick decay reduces room reverb overhang, helps clarity, reduces muddiness.

ECM53 Spectro LR.png


.
 
Last edited:

boxerfan88

Well-known member
For the curious ... sample recording with mic at MLP (mono, in-room) ...

I listen back to the recording on headphones, and found two things different from what I hear with my own ears inside the room:
  • the bass in the recording seems to be more boomy vs. inside the room
  • the slight "cave like" reverb in the recording, i don't hear in the room.
Tells me that microphone <> ear+brain :)
The microphone captures everything as it is.
Brain is clever enough to "tune out" the room reverb to some extent.

.
 

boxerfan88

Well-known member
Learning from DeepSeek::

### **Merging vs. Separate Convolution of PEQ + Crossover Impulses**

When combining **room correction PEQs (PEQ1-PEQ5)** with a **crossover (HPF1/LPF1)**, you have two options:

1. **Merge into a single impulse file** (PEQ+HPF in one IR, PEQ+LPF in another).
2. **Keep them separate** (convolve PEQ first, then apply crossover IRs in series).

Here’s a breakdown of the **pros & cons** of each approach:

---

## **Option 1: Merged Impulse Files**
*(Single IR for PEQ+HPF and PEQ+LPF)*

### **✅ Pros**
- **Lower CPU load** (one convolution instead of two).
- **No phase misalignment** (PEQ and crossover are pre-aligned in the IR).
- **Simpler implementation** (fewer processing blocks).

### **❌ Cons**
- **Less flexibility** (can’t adjust PEQ or crossover independently).
- **Harder to tweak** (must regenerate IRs for any changes).
- **Potential time-smearing** (longer IR if PEQ corrections are complex).

### **Best For:**
- Fixed systems (e.g., home theater calibration where settings won’t change).
- DSP-limited environments (embedded systems, low-power devices).

---

## **Option 2: Separate Convolution in Series**
*(PEQ IR → HPF/LPF IR, processed sequentially)*

### **✅ Pros**
- **More flexible** (can adjust PEQ or crossover separately).
- **Easier debugging** (isolate issues to either PEQ or crossover).
- **Shorter IRs possible** (PEQ IR can be optimized independently).

### **❌ Cons**
- **Higher CPU load** (two convolutions instead of one).
- **Phase alignment risks** (if not carefully designed, could introduce phase errors).
- **More complex routing** (requires proper signal chain management).

### **Best For:**
- Systems needing real-time adjustments (studio mixing, live sound).
- Advanced tuning (e.g., tweaking PEQ without recalculating crossover).

---

## **Key Considerations**
1. **Phase Coherence**
- Merged IRs guarantee phase alignment between PEQ and crossover.
- Separate IRs require careful design (e.g., linear-phase crossovers) to avoid phase issues.

2. **CPU vs. Flexibility Tradeoff**
- Merged = efficient but rigid.
- Separate = flexible but more processing-heavy.

3. **IR Length & Latency**
- Merged IRs may be longer (PEQ + crossover combined).
- Separate IRs can be optimized for minimal latency (e.g., short FIR for PEQ, IIR for crossover).

---

## **Recommended Approach**
- **If your system is fixed** (e.g., home theater calibration), **merge into one IR** for efficiency.
- **If you need flexibility** (e.g., studio mastering), **keep them separate** and ensure proper phase alignment.
- **Hybrid Option:** Use **merged IRs for PEQ+HPF/LPF** but keep a **global PEQ IR** for broad corrections.

---

### **Example Workflow**
#### **Merged IR Approach**
1. Generate **PEQ1-PEQ5 + HPF1** as one IR.
2. Generate **PEQ1-PEQ5 + LPF1** as another IR.
3. Route signals to respective IRs (HPF for mains, LPF for sub).

#### **Separate IR Approach**
1. Apply **PEQ1-PEQ5 IR** to full-range signal.
2. Split into **HPF1** and **LPF1** (either FIR or IIR).

Would you like help generating merged IRs or optimizing phase alignment?
 

boxerfan88

Well-known member
ERB

The Equivalent Rectangular Bandwidth (ERB) is a measure used in psychoacoustics to approximate the bandwidths of the overlapping bandpass filters in the human ear. These "auditory filters" are created by the cochlea and determine the ear's ability to distinguish between different frequencies.

The ear as a bank of filters
  • The cochlea's role: The cochlea in the inner ear analyzes sounds by frequency, similar to a bank of filters. The basilar membrane inside the cochlea has a tonotopic organization, meaning different points along its length vibrate maximally at different frequencies.
  • Critical bands: The bandwidth of each auditory filter is known as a critical band. The ERB is a way to model the critical band by defining a simplified rectangular filter that has the same peak output and passes the same total energy as the complex, asymmetrical auditory filter.
  • How masking works: The auditory filters explain the phenomenon of auditory masking. When two sounds occur within the same critical band, the louder sound can mask the softer one, making it difficult or impossible to perceive. The ERB helps quantify this effect; only the noise that passes through the auditory filter centered on a signal's frequency will mask that signal.
Characteristics of ERB
  • Frequency-dependent width: ERBs are not uniform across the audible spectrum. They are wider at higher frequencies and narrower at lower frequencies.
  • Formula approximation: For normal hearing, the ERB bandwidth in Hertz can be approximated by a linear equation related to the center frequency (
    ff
    ) in Hertz. A widely used formula is:
    ERB(f)=24.7+0.108⋅fcap E cap R cap B open paren f close paren equals 24.7 plus 0.108 center dot f
  • ERB-rate scale: By integrating the inverse of the ERB function, a perceptual frequency scale called the ERB-rate scale can be created. This scale more accurately reflects how humans perceive frequency differences, assigning equal perceptual weight to equal steps on the scale.
Applications and implications
  • Loudness calculation: The ERB scale is used to accurately calculate the perceived loudness of a sound. The total loudness is the sum of the loudness in each ERB.
  • Audio processing: The understanding of ERB is applied in the design of audio equipment, such as hearing aids, and in algorithms for audio compression, where imperceptible sounds within a critical band can be eliminated.
 

boxerfan88

Well-known member
Useful information:

Moving to a higher sample rate of 88,200 Hz changes the math significantly. Because the resolution is a ratio of sample rate to tap count, doubling the sample rate halves your resolution for any given tap count.

To maintain the same precision you had at 48kHz, you now need twice as many taps.

1. Analysis for 43Hz (Q=10) at 88.2kHz​

Your bandwidth is still 4.3Hz, but the filter's ability to "see" that bandwidth is now stretched:

Tap CountResolution (Δf)Bins inside the 4.3Hz PeakVerdict
8k (8,192)10.8 Hz~0.4 binsFail. The resolution is wider than the peak. It won't be able to center on 43Hz accurately.
16k (16,384)5.4 Hz~0.8 binsPoor. Even with 16k taps, the filter is wider than the room mode. It will result in "bloated" correction.
32k (32,768)2.7 Hz~1.6 binsMarginal/Fair. This is the bare minimum for high-res audio. You'll catch the peak, but accuracy is still limited.
64k (65,536)1.35 Hz~3.2 binsExcellent. This provides the surgical control needed for a high-Q low-frequency mode at this sample rate.

2. The "Penalty" of High Sample Rates​

When working with high-res files (88.2k or 96k), you are essentially forcing your DSP to work twice as hard to achieve the same bass accuracy.

  • A 32k tap filter at 48kHz is quite surgical (1.4 Hz resolution).
  • A 32k tap filter at 88.2kHz is relatively blunt (2.7 Hz resolution).

3. Practical Implications​

  • Computational Cost: Running a 64k tap filter is very demanding. Many hardware DSPs (like the miniDSP 2x4 HD or older SHARC processors) cannot handle 64k taps per channel at 88.2kHz.
  • Latency: Even if you use a minimum phase filter to avoid the large latency of linear phase, the sheer size of the 64k convolution buffer may introduce minor processing overhead, depending on the implementation (FFT vs. Time Domain convolution).
  • The IIR Alternative: If your hardware is limited to 16k or 32k taps, you will get better results using a standard IIR (Parametric EQ) filter for the 43Hz mode and using the FIR taps for the higher frequencies (where fewer taps are needed for high resolution).

Final Recommendation for 88.2kHz:​

  • Target 64,536 taps if your hardware allows it. This is the only way to get true "surgical" control over a Q=10 mode at 43Hz.
  • Avoid 16k taps and below. At 88.2kHz, 16k taps are essentially useless for fixing a narrow 43Hz problem; the filter resolution is simply too coarse.
 

boxerfan88

Well-known member
Clearing leave ... so decided to do some tweaking just for fun.

Tweaked room correction:

2025-12-23_1410 roomeqwizard EQ_filters.png

The changes were really really tiny. I don't expect the changes to be that audible as it's mostly in the bass.

I just wanna attack the room mode ringing at higher volumes.
 
Last edited:

boxerfan88

Well-known member
Today I learnt something very interesting. Very steep Q (e.g. Q=20) filter, will ring for a very long time.

Refer to the chart below. Below correction filter is 32k taps in length...
The upper impulse WAV, one of the PEQ has Q=10.
The lower impulse WAV, the filter PEQ Q was changed to 20.
See how much longer the lower correction filter rings.


2025-12-23_2007 Audacity test_Q=10-88k - Copy.png

With this learning, I will now try to avoid using EQ with Q-factor > 10 unless absolutely necessary.
And if I need to use EQ with Q-factor > 10, I should consider extending the filter size to 64k taps ... which is computationally more heavy.
 
Last edited:

boxerfan88

Well-known member
Changed subwoofer damping from Medium to High, LF extension remains at 28Hz (this allows for max subwoofer SPL).
Minor change to DSP to handle Atmos-to-Stereo downmixing, and minor tweaks to mdaDither.
Re-measured at much higher volume level of -9dBFS (84 dBC SPL).

At higher sound volume, the measured system distortion is even lower (below 0.5% from 200Hz-10kHz)

Vol-9dB ECM65D Distortion.png

Maintained reasonably fast decay times across most of the frequency bands.

Vol-9dB ECM65D Spectro-LR.png
 
Last edited:

boxerfan88

Well-known member
HoLeeCow ... setting the subwoofer damping setting to high makes the bass really tighter.

"The Fate of Ophelia" the bass "toink toink" start-stop seems more clearly outlined.

"JISOO - earthquake" - super shiok!!

/
 
Top