Compressor Class
An effect changes the amplitude or volume of the audio that this effect is connected to.
Constructor
Compressor
-
[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
knee
SPAudioParam
A decibel value representing the range above the threshold where the curve * smoothly transitions to the "ratio" portion.
Default: 30
outputNode
AudioNode
final
The output node of this effect. This node will be connected to the next Effect or destination
threshold
SPAudioParam
The decibel value above which the compression will start taking effect.
Default: -24