Reference setBuffer()

setBuffer()

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.

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