Distorter Class
An effect changes the amplitude or volume of the audio that this effect is connected to.
Constructor
Distorter
-
[context]
Parameters:
-
[context]
AudioContext optionalAudioContext to be used.
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
volume
SPAudioParam
Fades or reduces the volume of the audio based on the value in percentage. 100% implies no change in volume. 0% implies completely muted audio.
Default: 100