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]withd = fraction, applied toactive_channels(default all); the rest pass through unchanged.p = max(x, 0)andn = 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 roughly1 + dsamples, the negative one by roughly1 - 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.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_channelsout_channels