pyFDN.gain_to_two_stage#
- pyFDN.gain_to_two_stage(gain_db, fs, *, crossover=None, design_matrix=None)[source]#
Design a two-stage EQ from ten amplitudes in dB.
The first stage is a first-order shelf through the lowest and highest band targets, which fixes the gain towards DC and Nyquist. The second stage is a graphic EQ fitted to what the shelf leaves over in each band.
crossoveris the shelf crossover in Hz;Noneuses 1 kHz.gain_dbhas shape(10,)or(10, n_channels)and is ordered onCOMMAND_FREQUENCIES(31.25 Hz through 16 kHz). The result stacks the shelf section before thegain_to_graphic_eq()sections.Reference: V. Välimäki, K. Prawda, and S. J. Schlecht, “Two-Stage Attenuation Filter for Artificial Reverberation,” IEEE Signal Process. Lett., vol. 31, pp. 391-395, 2024, doi:10.1109/LSP.2024.3352510.
- Return type: