Replace the current Audio Buffer with a new Buffer.
Syntax
setBuffer(buf)
Parameters
buf
Array:
Array of Float32 Array(s). 2 Float32 Arrays will create a stereo source. 1 will create a mono source.
This page is generated from the comments in lib/addons/p5.sound.js . Please feel free to edit it and submit a pull request!