Reference createConvolver()

createConvolver()

Create a p5.Convolver. Accepts a path to a soundfile that will be used to generate an impulse response.

Examples

Syntax

createConvolver(path, [callback], [errorCallback])

Parameters

path
String:

path to a sound file

callback
Function:

function to call if loading is successful. The object will be passed in as the argument to the callback function.

errorCallback
Function:

function to call if loading is not successful. A custom error will be passed in as the argument to the callback function.

Returns

p5.Convolver:
Notice any errors or typos? Please let us know. Please feel free to edit lib/addons/p5.sound.js and open a pull request!

Related References