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)
Notice any errors or typos? Please let us know. Please feel free to edit lib/addons/p5.sound.js and open a pull request!