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:
This page is generated from the comments in lib/addons/p5.sound.js . Please feel free to edit it and submit a pull request!

Related References