pyFDN.td.SignalDependentFractionalDelay#

class pyFDN.td.SignalDependentFractionalDelay(channels, *, fraction, active_channels=None)[source]#

Stateful, controllable signal-dependent fractional delay (SDFD), y[n, c] = (1 - d) n[n-1, c] + d n[n, c] + d p[n-2, c] + (1 - d) p[n-1, c] with d = fraction, applied to active_channels (default all); the rest pass through unchanged.

p = max(x, 0) and n = min(x, 0) are the positive and negative half-wave rectified branches of the input, each delayed by a different, d-dependent amount: the positive branch by roughly 1 + d samples, the negative one by roughly 1 - d. Recombining the two smears the signal’s zero crossings without reshaping the rest of the waveform, which reads as a soft, amplitude-dependent distortion rather than a hard clip.

__init__(channels, *, fraction, active_channels=None)[source]#

Methods

__init__(channels, *, fraction[, ...])

impulse_response(ir_len)

Impulse response from zero state, one Dirac per input channel.

process_block(block)

Process one block and advance internal state.

process_signal(signal, *[, squeeze])

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

reset()

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

Attributes

in_channels

out_channels

process_block(block)[source]#

Process one block and advance internal state.

Return type:

ndarray

reset()[source]#

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

Return type:

None