Hide navigation sidebar
Hide table of contents sidebar
Skip to content
Back to top
Toggle table of contents sidebar

# FIR Stages

Finite impulse response (FIR) filter Stages allow the use of arbitrary filters with a finite number of taps.

## FirDirect

class audio_dsp.stages.FirDirect(coeffs_path, **kwargs)

  A FIR filter implemented in the time domain. The input signal is convolved with the filter coefficients. The filter coefficients can only be set at compile time.

  Parameters:
    coeffs_path Path

      Path to a file containing the coefficients, in a format supported by np.loadtxt.

  Attributes:
    dsp_block `audio_dsp.dsp.fir.fir_direct`

      The DSP block class; see FIR Direct for implementation details.

  make_fir_direct(coeffs_path, Q_sig=27)

    Update FIR configuration based on new parameters.

    Parameters:
      coeffs_path Path

        Path to a file containing the coefficients, in a format supported by np.loadtxt.

### FirDirect Control

The FirDirect Stage has no runtime controllable parameters.