net.jinx.audio.synth.filter
Class FIRFilter

java.lang.Object
  extended by 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)
           
 
Method Summary
protected  double filter(double input, net.jinx.audio.synth.filter.CircularDoubleBuffer inputs)
           
protected  double filterLeft(double input)
           
protected  double filterRight(double input)
           
 SampleFormat getFormat()
           
 boolean isSource()
           
 void process(java.nio.DoubleBuffer buffer)
           
 boolean setFormat(SampleFormat fmt)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FIRFilter

public FIRFilter(double[] coefficients)
Method Detail

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