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

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

public class CompExpHard
extends AbstractAudio

DOCUMENT ME!


Field Summary
static double ATRATIODEF
          DOCUMENT ME!
static double ATTACKMSDEF
          DOCUMENT ME!
static double BTRATIODEF
          DOCUMENT ME!
static double GAINDBDEF
          DOCUMENT ME!
static double MAXATRATIO
          DOCUMENT ME!
static double MAXGAININDB
          DOCUMENT ME!
static double MINATRATIO
          DOCUMENT ME!
static double MINBTRATIO
          DOCUMENT ME!
static double RELEASEMSDEF
          DOCUMENT ME!
static double THRESHOLDDEF
          DOCUMENT ME!
 
Fields inherited from class org.jscience.media.audio.dsp.AbstractAudio
ALLTYPES, MONITOR, next, NOTYPE, previous, PROCESSOR, SAMPLEBUFFERSIZE, SINK, SOURCE
 
Constructor Summary
CompExpHard()
          Creates a new CompExpHard object.
 
Method Summary
 int getSamples(short[] buffer, int length)
          DOCUMENT ME!
 void minMaxChannels(int min, int max, int preferred)
          DOCUMENT ME!
 void minMaxSamplingRate(int min, int max, int preferred)
          DOCUMENT ME!
 void setAboveThresholdRatio(double dBRatio)
          DOCUMENT ME!
 void setAttack(double attackInMs)
          DOCUMENT ME!
 void setBelowThresholdRatio(double ratio)
          DOCUMENT ME!
 void setGain(double gainInDb)
          DOCUMENT ME!
 void setRelease(double releaseInMs)
          DOCUMENT ME!
 void setThreshold(double thresholdInDB)
          DOCUMENT ME!
 
Methods inherited from class org.jscience.media.audio.dsp.AbstractAudio
doReset, equals, getByPass, getName, getNumberOfChannels, getSamplingRate, hexo, hexo, hexo, hexo, 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

THRESHOLDDEF

public static final double THRESHOLDDEF
DOCUMENT ME!

See Also:
Constant Field Values

MINBTRATIO

public static final double MINBTRATIO
DOCUMENT ME!

See Also:
Constant Field Values

BTRATIODEF

public static final double BTRATIODEF
DOCUMENT ME!

See Also:
Constant Field Values

MAXATRATIO

public static final double MAXATRATIO
DOCUMENT ME!

See Also:
Constant Field Values

MINATRATIO

public static final double MINATRATIO
DOCUMENT ME!

See Also:
Constant Field Values

ATRATIODEF

public static final double ATRATIODEF
DOCUMENT ME!

See Also:
Constant Field Values

ATTACKMSDEF

public static final double ATTACKMSDEF
DOCUMENT ME!

See Also:
Constant Field Values

RELEASEMSDEF

public static final double RELEASEMSDEF
DOCUMENT ME!

See Also:
Constant Field Values

MAXGAININDB

public static final double MAXGAININDB
DOCUMENT ME!

See Also:
Constant Field Values

GAINDBDEF

public static final double GAINDBDEF
DOCUMENT ME!

See Also:
Constant Field Values
Constructor Detail

CompExpHard

public CompExpHard()
Creates a new CompExpHard 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!

setThreshold

public void setThreshold(double thresholdInDB)
DOCUMENT ME!

Parameters:
thresholdInDB - DOCUMENT ME!

setBelowThresholdRatio

public void setBelowThresholdRatio(double ratio)
DOCUMENT ME!

Parameters:
ratio - DOCUMENT ME!

setAboveThresholdRatio

public void setAboveThresholdRatio(double dBRatio)
DOCUMENT ME!

Parameters:
dBRatio - DOCUMENT ME!

setAttack

public void setAttack(double attackInMs)
DOCUMENT ME!

Parameters:
attackInMs - DOCUMENT ME!

setRelease

public void setRelease(double releaseInMs)
DOCUMENT ME!

Parameters:
releaseInMs - DOCUMENT ME!

setGain

public void setGain(double gainInDb)
DOCUMENT ME!

Parameters:
gainInDb - 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!

minMaxChannels

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

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