Class ARSV1Filter4x
java.lang.Object
com.io7m.aradine.filter.statevar1.ARSV1Filter4x
- All Implemented Interfaces:
ARSV1FilterType
A variable state filter providing simultaneous low/high/bandreject/bandpass outputs.
This uses 4x oversampling to improve stability.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondoubledoubledoublecutoff()doubledoublevoidprocessOneFrame(double input) Process a single frame of input.doubleq()voidreset()Reset all internal state variables, leavingcutoffandquntouched.voidsetCutoff(double newCutoff) Specify a new frequency cutoff value.voidsetQ(double newQ) Specify a new Q value.
-
Constructor Details
-
ARSV1Filter4x
public ARSV1Filter4x()Construct a new filter.
-
-
Method Details
-
setCutoff
public void setCutoff(double newCutoff) Description copied from interface:ARSV1FilterTypeSpecify a new frequency cutoff value.
- Specified by:
setCutoffin interfaceARSV1FilterType- Parameters:
newCutoff- The cutoff
-
setQ
public void setQ(double newQ) Description copied from interface:ARSV1FilterTypeSpecify a new Q value.
- Specified by:
setQin interfaceARSV1FilterType- Parameters:
newQ- The Q
-
cutoff
public double cutoff()- Specified by:
cutoffin interfaceARSV1FilterType- Returns:
- The current cutoff value
-
q
public double q()- Specified by:
qin interfaceARSV1FilterType- Returns:
- The current Q value
-
reset
public void reset()Description copied from interface:ARSV1FilterTypeReset all internal state variables, leavingcutoffandquntouched.- Specified by:
resetin interfaceARSV1FilterType
-
lowPassOutput
public double lowPassOutput()- Specified by:
lowPassOutputin interfaceARSV1FilterType- Returns:
- The low pass output of the most recent filter evaluation
-
highPassOutput
public double highPassOutput()- Specified by:
highPassOutputin interfaceARSV1FilterType- Returns:
- The high pass output of the most recent filter evaluation
-
bandPassOutput
public double bandPassOutput()- Specified by:
bandPassOutputin interfaceARSV1FilterType- Returns:
- The band pass output of the most recent filter evaluation
-
bandRejectOutput
public double bandRejectOutput()- Specified by:
bandRejectOutputin interfaceARSV1FilterType- Returns:
- The band reject output of the most recent filter evaluation
-
processOneFrame
public void processOneFrame(double input) Description copied from interface:ARSV1FilterTypeProcess a single frame of input.- Specified by:
processOneFramein interfaceARSV1FilterType- Parameters:
input- The input
-