BaseEffect Class
Pseudo AudioNode class the encapsulates basic functionality of an Audio Node. To be extended by all other Effects
Constructor
BaseEffect
-
[context]
Parameters:
-
[context]
AudioContext optionalAudioContext in which this Sound is defined.
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