Load and assign a new Impulse Response to the p5.Convolver. The impulse is added to the .impulses array. Previous impulses can be accessed with the .toggleImpulse(id) method.
Syntax
addImpulse(path, callback, errorCallback)
Parameters
path
String:
path to a sound file
callback
Function:
function (optional)
errorCallback
Function:
function (optional)
This page is generated from the comments in lib/addons/p5.sound.js . Please feel free to edit it and submit a pull request!