public class BandPass extends IIRFilter
Constructor and Description |
---|
BandPass(float freq,
float bandWidth,
float sampleRate)
Constructs a band pass filter with the requested center frequency,
bandwidth and sample rate.
|
Modifier and Type | Method and Description |
---|---|
float |
getBandWidth()
Returns the band width of this filter.
|
void |
setBandWidth(float bandWidth)
Sets the band width of the filter.
|
process, processingFinished, setFrequency
public BandPass(float freq, float bandWidth, float sampleRate)
freq
- the center frequency of the band to pass (in Hz)bandWidth
- the width of the band to pass (in Hz)sampleRate
- the sample rate of audio that will be filtered by this filterpublic void setBandWidth(float bandWidth)
bandWidth
- the band width (in Hz)public float getBandWidth()