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, uGenerate
addInput, getLastValues, patch, patch, patch, printInputs, removeInput, sampleRate, sampleRateChanged, setAudioChannelCount, setSampleRate, tick, unpatch, unpatch
public 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)
IIRFilter
f
is positive.protected void calcCoeff()
IIRFilter
b[0]
corresponds to the coefficient b1
.