The ConvolverNode() constructor of the Web Audio API creates a new ConvolverNode object instance.
Syntax
var convolverNode = new ConvolverNode(context, options)
Parameters
Inherits parameters from the AudioNodeOptions dictionary.
- context
- A reference to an
AudioContext. - options Optional
- Options are as follows:
audioBuffer- A mono, stereo, or 4-channel
AudioBuffercontaining the (possibly multichannel) impulse response used by theConvolverNodeto create the reverb effect. disableNormalization: ABooleancontrolling whether the impulse response from the buffer will be scaled by an equal-power normalization, or not. The default is 'false'.
- A mono, stereo, or 4-channel
Return value
A new ConvolverNode object instance.
Exceptions
| Exception | Explanation |
|---|---|
NotSupportedError
|
The referenced AudioBuffer does not have the correct number of channels, or it has a different sample rate to the associated AudioContext.
|
Specifications
| Specification | Status | Comment |
| Web Audio APIThe definition of 'ConvolverNode()' in that specification. | Working Draft | Initial definition. |
Browser Compatibility
The compatibility table on this page is generated from structured data. If you'd like to contribute to the data, please check out https://github.com/mdn/browser-compat-data and send us a pull request.
Update compatibility data on GitHub
| Desktop | Mobile | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
ConvolverNode() constructor
|
Chrome
Full support 55 |
Edge
Full support 79 |
Firefox
Full support 53 |
IE
No support No |
Opera
Full support 42 |
Safari
No support No |
WebView Android
Full support 55 |
Chrome Android
Full support 55 |
Firefox Android
Full support 53 |
Opera Android
Full support 42 |
Safari iOS
No support No |
Samsung Internet Android
Full support 6.0 |
Legend
- Full support
- Full support
- No support
- No support
ConvolverNode() by Mozilla Contributors is licensed under CC-BY-SA 2.5.