|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object ddf.minim.ugens.UGen ddf.minim.effects.IIRFilter ddf.minim.effects.LowPassFS
public class LowPassFS
LowPassFS is a four stage low pass filter. It becomes unstable if the cutoff frequency is set below 60 Hz, so it will report and error and set the cutoff to 60 Hz if you try to set it lower.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class ddf.minim.ugens.UGen |
---|
UGen.InputType, UGen.UGenInput |
Field Summary |
---|
Fields inherited from class ddf.minim.effects.IIRFilter |
---|
a, audio, b, cutoff |
Constructor Summary | |
---|---|
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 . |
Method Summary | |
---|---|
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. |
Methods inherited from class ddf.minim.effects.IIRFilter |
---|
frequency, initArrays, printCoeff, process, process, setFreq, uGenerate |
Methods inherited from class ddf.minim.ugens.UGen |
---|
addInput, getLastValues, patch, patch, patch, printInputs, removeInput, sampleRate, sampleRateChanged, setSampleRate, tick, unpatch, unpatch |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
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 filteredMethod Detail |
---|
public boolean validFreq(float f)
IIRFilter
f
is positive.
validFreq
in class IIRFilter
f
- the frequency (in Hz) to validate
f
is a valid frequency for this filterprotected void calcCoeff()
IIRFilter
b[0]
corresponds to the coefficient b1
.
calcCoeff
in class IIRFilter
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |