Reference setPath()

setPath()

Reset the source for this SoundFile to a new path (URL).

Syntax

setPath(path, callback)

Parameters

path
String:

path to audio file

callback
Function:

Callback

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