pyFDN.td.RingModulator#
- class pyFDN.td.RingModulator(channels, fs, *, rate, depth, active_channels=None)[source]#
Stateful, controllable ring modulator,
y[n, c] = depth * x[n, c] * sin(2 * pi * rate * n / fs), applied toactive_channels(default all); the rest pass through unchanged.Multiplying by a sine shifts the spectrum of the active channels by
+-raterather than adding harmonics on top of it, so the effect reads as tremolo at a lowrateand as an inharmonic, bell-like retuning oncerateenters the audible range. A unit-amplitude sine carries only half the power of the signal it multiplies, sodepth = sqrt(2)keeps the operator energy-preserving.rateanddepthare named as inTimeVaryingMatrix. The modulation phase runs continuously acrossprocess_block()calls, tracked bysample_index.Methods
__init__(channels, fs, *, rate, depth[, ...])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