Skip to content
Tone.js

ListenerInstance

interface Core ↳ extends ToneAudioNode<ListenerOptions>

Tone.Listener is a thin wrapper around the AudioListener. Listener combined with Panner3D makes up the Web Audio API’s 3D panning system. Panner3D allows you to place sounds in 3D and Listener allows you to navigate the 3D sound environment from a first-person perspective. There is only one listener per audio context.

read-only

forwardX: Param

read-only

forwardY: Param

read-only

forwardZ: Param
input: undefined

The input node or nodes. If the object is a source, it does not have any input and this.input is undefined.

read-only

name: string

The name of the class

Default: "Listener"

output: undefined

The listener has no inputs or outputs.

read-only

positionX: Param

read-only

positionY: Param

read-only

positionZ: Param

read-only

upX: Param

read-only

upY: Param

read-only

upZ: Param
dispose(): this

Dispose and disconnect

Returns this