pyFDN.td.MatrixConvolver#

class pyFDN.td.MatrixConvolver(coeffs)[source]#

Stateful matrix of FIR filters via streaming overlap-save FFT convolution. The FFT counterpart of MatrixFIR: same (n_out, n_in, n_taps) coefficient layout, but built for long impulse responses (e.g. room RIRs) where time-domain lfilter would be prohibitively slow. State persists across filter() calls, so it works both whole-signal and block-by-block – including as the feedback path of a Recursion (the loudspeaker -> microphone room coupling of a reverberation enhancement system). Output equals the linear convolution to numerical precision.

__init__(coeffs)[source]#

Methods

__init__(coeffs)

filter(block)

Filter one block and advance internal state.

process(signal, *[, squeeze])

Filter a whole signal in one call, from the current state.

reset()

Clear internal state (no-op for stateless operators).

Attributes

in_channels

out_channels

filter(block)[source]#

Filter one block and advance internal state.

Return type:

ndarray

reset()[source]#

Clear internal state (no-op for stateless operators).

Return type:

None