audiblelight.synthesize.time_invariant_convolution#
- audiblelight.synthesize.time_invariant_convolution(audio, ir)#
Convolve a static, time-invariant impulse response with an audio input.
- Parameters:
audio (np.ndarray) – Input audio waveform with shape (n_samples,)
ir (np.ndarray) – Input impulse response waveform with shape (n_samples, n_ir_channels)
- Returns:
The convolved audio signal with shape (n_samples, n_ir_channels)
- Return type:
np.ndarray
- Raises:
ValueError – When input arrays do not match expected shapes