net.jinx.audio.synth.filter
Class FIRFilter
java.lang.Object
net.jinx.audio.synth.filter.FIRFilter
- All Implemented Interfaces:
- SampleProcessor
- Direct Known Subclasses:
- MovingAverageFilter
public class FIRFilter
- extends java.lang.Object
- implements SampleProcessor
Constructor Summary |
FIRFilter(double[] coefficients)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
FIRFilter
public FIRFilter(double[] coefficients)
setFormat
public boolean setFormat(SampleFormat fmt)
- Specified by:
setFormat
in interface SampleProcessor
getFormat
public SampleFormat getFormat()
- Specified by:
getFormat
in interface SampleProcessor
process
public void process(java.nio.DoubleBuffer buffer)
- Specified by:
process
in interface SampleProcessor
filterLeft
protected double filterLeft(double input)
filterRight
protected double filterRight(double input)
filter
protected double filter(double input,
net.jinx.audio.synth.filter.CircularDoubleBuffer inputs)
isSource
public boolean isSource()
- Specified by:
isSource
in interface SampleProcessor