Panner Class
A simple stereo fader which moves the stereophonic image of the source left or right.
Constructor
Panner
()
Item Index
Methods
Methods
connect
-
destination
-
[output]
-
[input]
If the parameter output
is an AudioNode, it connects to the outputNode.
If the output is a BaseEffect, it will connect BaseEffect's outputNode to the output's inputNode.
disconnect
-
[outputIndex]
Disconnects the Sound from the AudioNode Chain.
Parameters:
-
[outputIndex]
Number optionalIndex describing which output of the AudioNode to disconnect.
listParams
-
[paramArray]
List all SPAudioParams this Sound exposes
Parameters:
-
[paramArray]
Array optionalArray of all the SPAudioParams this Sound exposes.
Properties
audioContext
AudioContext
Web Audio API's AudioContext. If the context passed to the constructor is an AudioContext, a new one is created here.
inputNode
AudioNode
final
The output node of this effect. This node will be connected to the next Effect or destination
outputNode
AudioNode
final
The output node of this effect. This node will be connected to the next Effect or destination
pan
SPAudioParam
Pans the audio to left or right stereo audio channels using a value in degrees of the angle of the perceived audio source from the center. Positive value implies perceived source being on the right of center. Negative value implies the perceived sources being on the left of the center.
Default: 0