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

java.lang.Object
  extended by org.jscience.media.audio.dsp.AbstractAudio
      extended by org.jscience.media.audio.dsp.processors.ParametricEQ
All Implemented Interfaces:
Named

public class ParametricEQ
extends AbstractAudio


Field Summary
static int BANDPASSFREQDEF
          DOCUMENT ME!
static double BANDPASSQDEF
          DOCUMENT ME!
static int HIGHPASSFREQDEF
          DOCUMENT ME!
static int LOWPASSFREQDEF
          DOCUMENT ME!
 int sampleRate
          DOCUMENT ME!
 
Fields inherited from class org.jscience.media.audio.dsp.AbstractAudio
ALLTYPES, MONITOR, next, NOTYPE, previous, PROCESSOR, SAMPLEBUFFERSIZE, SINK, SOURCE
 
Constructor Summary
ParametricEQ()
          Creates a new ParametricEQ object.
 
Method Summary
 void bandPassPeakFreq(int freq)
          DOCUMENT ME!
 void bandPassPeakGain(double gain)
          DOCUMENT ME!
 void bandPassPeakQ(double q)
          DOCUMENT ME!
 int getSamples(short[] buffer, int length)
          DOCUMENT ME!
 void highPassShelfFreq(int freq)
          DOCUMENT ME!
 void highPassShelfGain(double gain)
          DOCUMENT ME!
 void lowPassShelfFreq(int freq)
          DOCUMENT ME!
 void lowPassShelfGain(double gain)
          DOCUMENT ME!
 void minMaxSamplingRate(int min, int max, int preferred)
          DOCUMENT ME!
 
Methods inherited from class org.jscience.media.audio.dsp.AbstractAudio
doReset, equals, getByPass, getName, getNumberOfChannels, getSamplingRate, hexo, hexo, hexo, hexo, minMaxChannels, negotiateNumberOfChannels, negotiateSamplingRate, o, propagateReset, reset, setByPass, setChannelsRecursive, setNumberOfChannels, setSamplingRate, setSamplingRateRecursive, toString, typeString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

HIGHPASSFREQDEF

public static final int HIGHPASSFREQDEF
DOCUMENT ME!

See Also:
Constant Field Values

BANDPASSFREQDEF

public static final int BANDPASSFREQDEF
DOCUMENT ME!

See Also:
Constant Field Values

BANDPASSQDEF

public static final double BANDPASSQDEF
DOCUMENT ME!

See Also:
Constant Field Values

LOWPASSFREQDEF

public static final int LOWPASSFREQDEF
DOCUMENT ME!

See Also:
Constant Field Values

sampleRate

public int sampleRate
DOCUMENT ME!

Constructor Detail

ParametricEQ

public ParametricEQ()
Creates a new ParametricEQ object.

Method Detail

getSamples

public int getSamples(short[] buffer,
                      int length)
DOCUMENT ME!

Specified by:
getSamples in class AbstractAudio
Parameters:
buffer - DOCUMENT ME!
length - DOCUMENT ME!
Returns:
DOCUMENT ME!

lowPassShelfGain

public void lowPassShelfGain(double gain)
DOCUMENT ME!

Parameters:
gain - DOCUMENT ME!

bandPassPeakGain

public void bandPassPeakGain(double gain)
DOCUMENT ME!

Parameters:
gain - DOCUMENT ME!

highPassShelfGain

public void highPassShelfGain(double gain)
DOCUMENT ME!

Parameters:
gain - DOCUMENT ME!

lowPassShelfFreq

public void lowPassShelfFreq(int freq)
DOCUMENT ME!

Parameters:
freq - DOCUMENT ME!

bandPassPeakFreq

public void bandPassPeakFreq(int freq)
DOCUMENT ME!

Parameters:
freq - DOCUMENT ME!

highPassShelfFreq

public void highPassShelfFreq(int freq)
DOCUMENT ME!

Parameters:
freq - DOCUMENT ME!

bandPassPeakQ

public void bandPassPeakQ(double q)
DOCUMENT ME!

Parameters:
q - DOCUMENT ME!

minMaxSamplingRate

public void minMaxSamplingRate(int min,
                               int max,
                               int preferred)
DOCUMENT ME!

Overrides:
minMaxSamplingRate in class AbstractAudio
Parameters:
min - DOCUMENT ME!
max - DOCUMENT ME!
preferred - DOCUMENT ME!