ListenerClass
internal class ↳ 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.
Properties
Section titled “Properties”input: undefinedThe input node or nodes. If the object is a source, it does not have any input and this.input is undefined.
Methods
Section titled “Methods”getDefaults()
Section titled “getDefaults()”static
getDefaults(): ListenerOptionsReturns all of the default options belonging to the class.
Returns ListenerOptions
Inherited members
Section titled “Inherited members”- From
ToneWithContext: constructor, context, blockTime, sampleTime, get(), immediate(), now(), set(), toFrequency(), toSeconds(), toTicks() - From
Tone: debug, version, disposed, toString() - From
ToneAudioNode: channelCount, channelCountMode, channelInterpretation, numberOfInputs, numberOfOutputs, chain(), connect(), disconnect(), fan(), toDestination(), toMaster()