|
Sautrela | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectedu.gtts.sautrela.engine.AbstractDataProcessor
edu.gtts.sautrela.sp.Preemphasis
public class Preemphasis
Implements a high-pass filter that compensates for attenuation in the audio data.
The used formulae, Y[i] = X[i] - (X[i-1] * factor) , is equivalent to
the transfer function p(z) = 1 - factor * Z^(-1) and the frecuency
response 1 - factor * exp(-jTw) .
| Field Summary | |
|---|---|
static double |
DEFAULT_FACTOR
default preemphasis factor == 0.97 |
| Fields inherited from interface java.beans.BeanInfo |
|---|
ICON_COLOR_16x16, ICON_COLOR_32x32, ICON_MONO_16x16, ICON_MONO_32x32 |
| Constructor Summary | |
|---|---|
Preemphasis()
Creates a new Preemphasis DataProcessor using the default factor |
|
| Method Summary | |
|---|---|
void |
editBeanInfo(java.beans.BeanInfo info)
|
double |
getFactor()
Gets the pre-emphasis factor |
static void |
main(java.lang.String[] args)
|
void |
process(Buffer in,
Buffer out)
Applies pre-emphasis filter to the given Data. |
void |
setFactor(double factor)
Sets the pre-emphasis factor |
| Methods inherited from class edu.gtts.sautrela.engine.AbstractDataProcessor |
|---|
getAdditionalBeanInfo, getBeanDescriptor, getDefaultEventIndex, getDefaultPropertyIndex, getEventSetDescriptors, getIcon, getMethodDescriptors, getName, getPropertyDescriptors, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final double DEFAULT_FACTOR
| Constructor Detail |
|---|
public Preemphasis()
| Method Detail |
|---|
public double getFactor()
public void setFactor(double factor)
factor - pre-emphasis factor
public void process(Buffer in,
Buffer out)
throws DataProcessorException
Data Stream
is not affected. Both IntData and DoubleData are supported.
in - Input Bufferout - Output Buffer
DataProcessorExceptionpublic void editBeanInfo(java.beans.BeanInfo info)
editBeanInfo in class AbstractDataProcessor
public static void main(java.lang.String[] args)
throws java.lang.Exception
java.lang.Exception
|
Sautrela | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||