public abstract class IIRFilter extends UGen
getFilterResponse(float)
appropriately.Modifier and Type | Class and Description |
---|---|
static class |
IIRFilter.IIRFilterAnalysis
A holder class for the various filter analysis data.
|
UGen.OutputInitializationRegime, UGen.OutputPauseRegime
bufferSize, bufIn, bufOut, context, ins, outputInitializationRegime, outputPauseRegime, outs
Constructor and Description |
---|
IIRFilter(AudioContext context,
int ins,
int outs) |
Modifier and Type | Method and Description |
---|---|
protected static IIRFilter.IIRFilterAnalysis |
analyzeFilter(float[] bs,
float[] as,
float freq,
float samplingFreq)
Does our analysis at the specified frequency.
|
static IIRFilter.IIRFilterAnalysis |
calculateFilterResponse(float[] bs,
float[] as,
float freq,
float samplingFreq)
Gets an IIRFilterAnalysis object filled with the filter response
characteristics for the specified frequency: frequency response (real),
frequency response (imaginary), amplitude response, phase response, phase
delay, group delay.
|
protected static double |
calculateGroupDelay(float[] bs,
float[] as,
float freq,
float samplingFreq) |
float |
getAmplitudeResponse(float freq)
Gets the filter's amplitude response at the specified frequency.
|
abstract IIRFilter.IIRFilterAnalysis |
getFilterResponse(float freq) |
float |
getGroupDelay(float freq)
Gets an estimate of the filter's group delay at the specified frequency.
|
float |
getPhaseDelay(float freq)
Gets the filter's phase delay at the specified frequency.
|
float |
getPhaseResponse(float freq)
Gets the filter's phase response at the specified frequency.
|
addDependent, addInput, addInput, calculateBuffer, clearDependents, clearInputConnections, containsInput, crossfadeInput, getConnectedInputs, getContext, getEnvelopes, getIns, getNumberOfConnectedUGens, getNumberOfDependents, getOutBuffer, getOuts, getTimeTakenLastUpdate, getValue, getValue, getValueDouble, getValueDouble, initializeOuts, isTimerMode, isUpdated, noInputs, pause, printInBuffers, printInputList, printOutBuffers, removeAllConnections, removeConnection, removeDependent, setOutsToPause, setTimerMode, setValue, update, zeroIns, zeroOuts
getKillListener, getName, isDeleted, isPaused, kill, message, messageReceived, setKillListener, setName, start, toString
public IIRFilter(AudioContext context, int ins, int outs)
public abstract IIRFilter.IIRFilterAnalysis getFilterResponse(float freq)
public float getAmplitudeResponse(float freq)
freq
- The frequency to evaluate.public float getPhaseResponse(float freq)
freq
- The frequency to evaluate.public float getPhaseDelay(float freq)
freq
- The frequency to evaluate.public float getGroupDelay(float freq)
freq
- The frequency to evaluate.public static IIRFilter.IIRFilterAnalysis calculateFilterResponse(float[] bs, float[] as, float freq, float samplingFreq)
bs
- The b coefficients (corresponding to the x(n) terms of the
filter algorithm.as
- The a coefficients (corresponding to the y(n) terms of the
filter algorithm.freq
- The frequency to evaluate.samplingFreq
- The sampling frequency.protected static double calculateGroupDelay(float[] bs, float[] as, float freq, float samplingFreq)
protected static IIRFilter.IIRFilterAnalysis analyzeFilter(float[] bs, float[] as, float freq, float samplingFreq)
freq
- The frequency to analyze.