ConvolverNode
The ConvolverNode interface represents a linear convolution effect, that can be applied to a signal given an impulse response.
This is the easiest way to achieve echo or reverb effects.
AudioNode properties
| Number of inputs | 1 |
| Number of outputs | 1 |
| Channel count | 2 |
| Channel count mode | clamped-max |
| Channel interpretation | speakers |
Convolver is a node with tail-time, which means, that it continues to output non-silent audio with zero input for the length of the buffer.
Constructor
BaseAudioContext.createConvolver(options: ConvolverNodeOptions)
interface ConvolverNodeOptions {
buffer?: AudioBuffer | null; // impulse response
disableNormalization?: boolean; // if normalization of output should be applied, true by default
}
Properties
It inherits all properties from AudioNode and has no individual ones.
Linear convolution is a heavy computational process, so if your audio has some weird artefacts that should not be there, try to decrease the duration of impulse response buffer.