Reference p5.Panner3D

p5.Panner3D

Panner3D is based on the Web Audio Spatial Panner Node. This panner is a spatial processing node that allows audio to be positioned and oriented in 3D space.

The position is relative to an Audio Context Listener, which can be accessed by p5.soundOut.audiocontext.listener

Fields

panner

Web Audio Spatial Panner Node

Properties include
Panning Model : "equal power" or "HRTF"
DistanceModel : "linear", "inverse", or "exponential"

Methods

process

Connect an audio sorce

set

Set the X,Y,Z position of the Panner

positionX

Getter and setter methods for position coordinates

positionY

Getter and setter methods for position coordinates

positionZ

Getter and setter methods for position coordinates

orient

Set the X,Y,Z position of the Panner

orientX

Getter and setter methods for orient coordinates

orientY

Getter and setter methods for orient coordinates

orientZ

Getter and setter methods for orient coordinates

setFalloff

Set the rolloff factor and max distance

maxDist

Maxium distance between the source and the listener

rollof

How quickly the volume is reduced as the source moves away from the listener

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