org.jscience.media.audio.dsp.processors
Class CombFilter

java.lang.Object
  extended by org.jscience.media.audio.dsp.processors.CombFilter

public class CombFilter
extends java.lang.Object

DOCUMENT ME!


Constructor Summary
CombFilter(int sampleRate, int numberOfChannels, double delayInMs)
          Creates a new CombFilter object.
 
Method Summary
 void calcGain()
          DOCUMENT ME!
 int doFilter(short[] inBuf, double[] outBuf, int length)
          DOCUMENT ME!
 void setDelayInMs(double delayInMs)
          DOCUMENT ME!
 void setSustainTimeInMs(double sustainTimeInMs)
          DOCUMENT ME!
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CombFilter

public CombFilter(int sampleRate,
                  int numberOfChannels,
                  double delayInMs)
Creates a new CombFilter object.

Parameters:
sampleRate - DOCUMENT ME!
numberOfChannels - DOCUMENT ME!
delayInMs - DOCUMENT ME!
Method Detail

setDelayInMs

public void setDelayInMs(double delayInMs)
DOCUMENT ME!

Parameters:
delayInMs - DOCUMENT ME!

calcGain

public void calcGain()
DOCUMENT ME!


setSustainTimeInMs

public void setSustainTimeInMs(double sustainTimeInMs)
DOCUMENT ME!

Parameters:
sustainTimeInMs - DOCUMENT ME!

doFilter

public int doFilter(short[] inBuf,
                    double[] outBuf,
                    int length)
DOCUMENT ME!

Parameters:
inBuf - DOCUMENT ME!
outBuf - DOCUMENT ME!
length - DOCUMENT ME!
Returns:
DOCUMENT ME!