Filter Class
A simple stereo fader which moves the stereophonic image of the source left or right.
Constructor
Filter
()
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.
frequency
SPAudioParam
The frequency at which the BiquadFilterNode will operate, in Hz. Its nominal range is from 10Hz to half the Nyquist frequency.
Default: 350
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
Q
SPAudioParam
The Q factor has a default value of 1, with a nominal range of 0.0001 to 1000.
Default: 1
type
SPAudioParam
The type of this BiquadFilterNode, lowpass, highpass, etc. The exact meaning of the other parameters depend on the value of the type attribute. Possible values for this type are : "lowpass" "highpass" "bandpass" "lowshelf" "highshelf" "peaking" "notch" "allpass"
Default: "lowpass"