Reference pan()

pan()

Set the stereo panning of a p5.sound object to a floating point number between -1.0 (left) and 1.0 (right). Default is 0.0 (center).

Examples

Syntax

pan([panValue], [timeFromNow])

Parameters

panValue
Number:

Set the stereo panner

timeFromNow
Number:

schedule this event to happen seconds from now

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