com.jsyn.unitgen
Class FilterBiquadCommon
java.lang.Object
com.jsyn.unitgen.UnitGenerator
com.jsyn.unitgen.UnitFilter
com.jsyn.unitgen.TunableFilter
com.jsyn.unitgen.FilterBiquad
com.jsyn.unitgen.FilterBiquadCommon
- All Implemented Interfaces:
- UnitSink, UnitSource
- Direct Known Subclasses:
- FilterBandPass, FilterBandStop, FilterHighPass, FilterLowPass, FilterPeakingEQ
public abstract class FilterBiquadCommon
- extends FilterBiquad
Extend this class to create a filter that implements Biquad filter with a Q
port.
Constructor Summary |
FilterBiquadCommon()
No-argument constructor instantiates the Biquad common and adds an
amplitude port to this filter. |
Methods inherited from class com.jsyn.unitgen.UnitGenerator |
addPort, convertHalfLifeToMultiplier, flattenOutputs, generate, getFramePeriod, getFrameRate, getPortByName, getPorts, getSynthesisEngine, isEnabled, pullData, setCircuit, setFrameRate, setSynthesisEngine, start, stop |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Q
public UnitInputPort Q
FilterBiquadCommon
public FilterBiquadCommon()
- No-argument constructor instantiates the Biquad common and adds an
amplitude port to this filter.
updateCoefficients
public abstract void updateCoefficients()
- Abstract method. Each filter must implement its update of coefficients.
computeBiquadCommon
public void computeBiquadCommon(double ratio,
double Q)
recalculate
public void recalculate()
- The recalculate() method checks and ensures that the frequency and Q
values are at a minimum. It also only updates the Biquad coefficients if
either frequency or Q have changed.