public abstract class FilterBiquadCommon extends FilterBiquad
Modifier and Type | Field and Description |
---|---|
protected double |
alpha |
protected static double |
MINIMUM_Q |
UnitInputPort |
Q |
a0, a1, a2, amplitude, b1, b2, cos_omega, MINIMUM_FREQUENCY, MINIMUM_GAIN, omega, previousFrequency, RATIO_MINIMUM, sin_omega
frequency
input, output
FALSE, PORT_NAME_AMPLITUDE, PORT_NAME_CUTOFF, PORT_NAME_FREQUENCY, PORT_NAME_FREQUENCY_SCALER, PORT_NAME_INPUT, PORT_NAME_OUTPUT, PORT_NAME_PAN, PORT_NAME_PHASE, PORT_NAME_PRESSURE, PORT_NAME_TIMBRE, PORT_NAME_TIME, synthesisEngine, TRUE, VERY_SMALL_FLOAT
Constructor and Description |
---|
FilterBiquadCommon()
No-argument constructor instantiates the Biquad common and adds a Q port to this filter.
|
Modifier and Type | Method and Description |
---|---|
void |
computeBiquadCommon(double ratio,
double Q) |
protected boolean |
isRecalculationNeeded(double frequencyValue,
double qValue) |
void |
recalculate()
The recalculate() method checks and ensures that the frequency and Q values are at a minimum.
|
abstract void |
updateCoefficients()
Calculate coefficients based on the filter type, eg.
|
calculateOmega, generate, performBiquadFilter
getInput, getOutput
addPort, addPort, autoStop, convertHalfLifeToMultiplier, convertTimeToRate, flattenOutputs, generate, getCircuit, getFramePeriod, getFrameRate, getId, getPortByName, getPorts, getSynthesisEngine, getSynthesizer, getTopUnit, getUnitGenerator, incrementWrapPhase, isEnabled, isStartRequired, printConnections, printConnections, printConnections, pullData, setCircuit, setEnabled, setFrameRate, setPort, setSynthesisEngine, start, start, start, stop, stop, stop
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getUnitGenerator, start, start, stop, stop
getUnitGenerator
public UnitInputPort Q
protected static final double MINIMUM_Q
protected double alpha
public FilterBiquadCommon()
public abstract void updateCoefficients()
public void computeBiquadCommon(double ratio, double Q)
public void recalculate()
recalculate
in class FilterBiquad
protected boolean isRecalculationNeeded(double frequencyValue, double qValue)