public class BandPass extends IIRFilter
UGen.InputType, UGen.UGenInput| 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 |
|---|---|
protected void |
calcCoeff()
Calculates the coefficients of the filter using the current cutoff
frequency.
|
float |
getBandWidth()
Returns the band width of this filter.
|
void |
setBandWidth(float bandWidth)
Sets the band width of the filter.
|
frequency, printCoeff, process, process, setFreq, uGenerate, validFreqaddInput, getLastValues, patch, patch, patch, printInputs, removeInput, sampleRate, sampleRateChanged, setAudioChannelCount, setSampleRate, tick, unpatch, unpatchpublic 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()
protected void calcCoeff()
IIRFilterb[0] corresponds to the coefficient b1.