pyFDN.graphic_eq#

pyFDN.graphic_eq(center_omega, shelving_omega, R, gain_db)[source]#

Build a graphic EQ as a bank of independent biquad sections.

Band layout (total len(center_omega) + len(shelving_omega) + 1 sections):

  • Band 0: flat gain section.

  • Band 1: low shelving filter.

  • Bands 2 … N-2: peaking bandpass filters.

  • Band N-1: high shelving filter.

Parameters:
  • center_omega (ndarray) – Center frequencies of bandpass bands in radians, shape (num_center,).

  • shelving_omega (ndarray) – Cut-off frequencies of shelving bands in radians, shape (2,)[low_crossover, high_crossover].

  • R (float) – Bandwidth parameter; quality factor is sqrt(R) / (R - 1).

  • gain_db (ndarray) – Command gains in dB for each section, shape (num_center + 3,) (flat + low shelf + bandpass + high shelf).

Return type:

ndarray

Returns:

SOS matrix of shape (num_bands, 6) with columns [b0, b1, b2, a0, a1, a2].