public class HighPassSP extends IIRFilter
UGen.InputType, UGen.UGenInput
Constructor and Description |
---|
HighPassSP(float freq,
float sampleRate)
Constructs a high 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.
|
frequency, printCoeff, process, process, setFreq, uGenerate, validFreq
addInput, getLastValues, patch, patch, patch, printInputs, removeInput, sampleRate, sampleRateChanged, setAudioChannelCount, setSampleRate, tick, unpatch, unpatch
public HighPassSP(float freq, float sampleRate)
freq
that will be
used to filter audio recorded at sampleRate
.freq
- the cutoff frequencysampleRate
- the sample rate of audio that will be filteredprotected void calcCoeff()
IIRFilter
b[0]
corresponds to the coefficient b1
.