pyFDN.plot_db_per_sample#

pyFDN.plot_db_per_sample(sos, delays, *, fs=None, nfft=512, title=None)[source]#

Plot SOS magnitude responses normalized by delay length (dB per sample).

Each curve is the magnitude response of one delay line’s filter cascade divided by its delay length, \(20 \log_{10}|H_i| / m_i\). Filters designed for a homogeneous decay (a common T60 target) collapse onto the same gain-per-sample curve. Curve colors encode the delay length (Viridis, short = dark, long = bright).

Parameters:
  • sos (array-like) – Per-delay-line SOS bank, same layout as pyFDN.dsp.SOSFilterBank: (n_sections, 6, N).

  • delays (array-like) – Delay lengths in samples, shape (N,).

  • fs (float, optional) – Sample rate in Hz. If given, the responses are plotted over a logarithmic frequency axis in Hz; otherwise over rad/sample.

  • nfft (int, optional) – Number of frequency points. Default 512.

  • title (str, optional) – Figure title.

Returns:

Call .show() to display.

Return type:

go.Figure