buffer
Summary
A mono, stereo, or 4-channel AudioBuffer containing the (possibly multi-channel) impulse response used by the ConvolverNode. At the time when this attribute is set, the buffer and the state of the normalize attribute will be used to configure the ConvolverNode with this impulse response having the given normalization.
Property of apis/webaudio/ConvolverNodeapis/webaudio/ConvolverNode
Syntax
var result = ConvolverNode.buffer;
ConvolverNode.buffer = value;
Examples
var audioCtx = new AudioContext();
var convolver = audioCtx.createConvolver();
convolver.buffer = myAudioBuffer;
Related specifications
- W3C Web Audio API
- W3C Editor’s Draft