public class LowPassFS extends IIRFilter
UGen.InputType, UGen.UGenInput| Constructor and Description |
|---|
LowPassFS(float freq,
float sampleRate)
Constructs a low pass filter with a cutoff frequency of
freq
that will be used to filter audio recorded at sampleRate. |
| Modifier and Type | Method and Description |
|---|---|
protected void |
calcCoeff()
Calculates the coefficients of the filter using the current cutoff
frequency.
|
boolean |
validFreq(float f)
Returns true if the frequency is valid for this filter.
|
frequency, printCoeff, process, process, setFreq, uGenerateaddInput, getLastValues, patch, patch, patch, printInputs, removeInput, sampleRate, sampleRateChanged, setAudioChannelCount, setSampleRate, tick, unpatch, unpatchpublic LowPassFS(float freq,
float sampleRate)
freq
that will be used to filter audio recorded at sampleRate.freq - the cutoff frequencysampleRate - the sample rate of the audio that will be filteredpublic boolean validFreq(float f)
IIRFilterf is positive.protected void calcCoeff()
IIRFilterb[0] corresponds to the coefficient b1.