Class ARBQ1BiquadBPFO2
java.lang.Object
com.io7m.aradine.filter.biquad1.ARBQ1BiquadBPFO2
- All Implemented Interfaces:
ARBQ1BiquadType, ARBQ1BiquadWithQType
A simple biquad band-pass filter of order 2 (Two zeroes, two poles).
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondoubleprocessOneFrame(double input) Process a single input frame.voidsetCutoff(double newCutoff) Specify a new frequency cutoff value.voidsetQ(double newQ) Set the Q value for the filter.Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface ARBQ1BiquadType
processOneFrameBuffers
-
Constructor Details
-
ARBQ1BiquadBPFO2
public ARBQ1BiquadBPFO2()Create a new filter.
-
-
Method Details
-
setCutoff
public void setCutoff(double newCutoff) Description copied from interface:ARBQ1BiquadTypeSpecify a new frequency cutoff value.
- Specified by:
setCutoffin interfaceARBQ1BiquadType- Parameters:
newCutoff- The cutoff
-
setQ
public void setQ(double newQ) Description copied from interface:ARBQ1BiquadWithQTypeSet the Q value for the filter.
This is typically a non-zero value, where large values tend to cause the filter to begin self-oscillating.
- Specified by:
setQin interfaceARBQ1BiquadWithQType- Parameters:
newQ- The new Q value
-
processOneFrame
public double processOneFrame(double input) Description copied from interface:ARBQ1BiquadTypeProcess a single input frame.- Specified by:
processOneFramein interfaceARBQ1BiquadType- Parameters:
input- The input frame- Returns:
- The output frame
-