A SoundFilter object represents a filter created with a set of parameters that can be applied to the output of a source.
A SoundFilter object can be constructed with SoundDevice.createFilter.
Summary
The name that identifies the filter object.
Syntax
// Get
var name = filter.name;
// Set
filter.name = "LowPass01";
Summary
The type of the filter, as a string.
Syntax
// Get
var type = filter.type;
Note
Read Only
A LowPass filter is used to remove high frequency content from a signal.
Summary
The gain applied to the LowPass filter.
Syntax
// Get
var gain = filter.gain;
// Set
filter.gain = 0.4;
Range
0.0 to 1.0
Default
1.0
Summary
The gain applied to the LowPass filter acting on high frequencies.
Syntax
// Get
var gainHF = filter.gainHF;
// Set
filter.gain = 0.9;
Range
0.0 to 1.0
Default
1.0