|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--marf.Storage.StorageManager | +--marf.Preprocessing.Preprocessing | +--marf.Preprocessing.FFTFilter.FFTFilter | +--marf.Preprocessing.FFTFilter.HighFrequencyBoost
HighFrequencyBoost class implements filtering using high frequency booster on top of the FFTFilter.
$Id: HighFrequencyBoost.java,v 1.15 2005/05/31 12:50:52 mokhov Exp $
Field Summary | |
static double |
BASE_BOOST_COEFFICIENT
Default boost rate of 5*PI to be applied to apmplitude values. |
static int |
DEFAULT_HIGH_FREQUENCY_CUTOFF
Create a response that boosts all frequencies above 1000 Hz. |
Fields inherited from class marf.Preprocessing.FFTFilter.FFTFilter |
adFreqResponse, DEFAULT_FREQUENCY_RESPONSE_SIZE |
Fields inherited from class marf.Preprocessing.Preprocessing |
oSample |
Fields inherited from class marf.Storage.StorageManager |
iCurrentDumpMode, oObjectToSerialize, strFilename |
Fields inherited from interface marf.Storage.IStorageManager |
DUMP_BINARY, DUMP_CSV_TEXT, DUMP_GZIP_BINARY, DUMP_HTML, DUMP_SQL, DUMP_XML, INTERFACE_CODE_REVISION, sastrExtensionsMap |
Constructor Summary | |
HighFrequencyBoost(marf.Preprocessing.Preprocessing poPreprocessing)
Pipelined preprocessing constructor. |
|
HighFrequencyBoost(marf.Storage.Sample poSample)
HighFrequencyBoost Constructor. |
Method Summary | |
boolean |
cropAudio(double pdStartingFrequency,
double pdEndFrequency)
Stub implementation of cropAudio() . |
void |
genereateResponseCoefficients()
Creates high-frequency boost response coefficients and sets applies them to the frequency response vector. |
static java.lang.String |
getRevision()
Returns source code revision information. |
boolean |
preprocess()
Overrides FFTFilter's preprocess() with extra normalization after the boost. |
boolean |
removeNoise()
Stub implementation of removeNoise() . |
boolean |
removeSilence()
Stub implementation of removeSilence() . |
Methods inherited from class marf.Preprocessing.FFTFilter.FFTFilter |
filter, setFrequencyResponse |
Methods inherited from class marf.Preprocessing.Preprocessing |
backSynchronizeObject, getSample, normalize, normalize, normalize |
Methods inherited from class marf.Storage.StorageManager |
dump, dumpBinary, dumpCSV, dumpGzipBinary, dumpHTML, dumpSQL, dumpXML, getDefaultExtension, getDefaultExtension, getDumpMode, getFilename, restore, restoreBinary, restoreCSV, restoreGzipBinary, restoreHTML, restoreSQL, restoreXML, setDumpMode, setFilename |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final transient int DEFAULT_HIGH_FREQUENCY_CUTOFF
public static final transient double BASE_BOOST_COEFFICIENT
Constructor Detail |
public HighFrequencyBoost(marf.Preprocessing.Preprocessing poPreprocessing) throws PreprocessingException
poPreprocessing
- followup preprocessing module
PreprocessingException
public HighFrequencyBoost(marf.Storage.Sample poSample) throws PreprocessingException
poSample
- incoming sample
PreprocessingException
Method Detail |
public final boolean preprocess() throws PreprocessingException
preprocess()
with extra normalization after the boost.
TODO: Normalization only applied to the boosted part.
preprocess
in class FFTFilter
true
if there were changes to the sample
PreprocessingException
- if there were problems during
undelying supper.preprocess()
or normalize()
.public final boolean removeNoise() throws PreprocessingException
removeNoise()
.
removeNoise
in class Preprocessing
false
PreprocessingException
- never thrownpublic final boolean removeSilence() throws PreprocessingException
removeSilence()
.
removeSilence
in class Preprocessing
false
PreprocessingException
- never thrownpublic final boolean cropAudio(double pdStartingFrequency, double pdEndFrequency) throws PreprocessingException
cropAudio()
.
cropAudio
in class Preprocessing
pdStartingFrequency
- unusedpdEndFrequency
- unused
false
PreprocessingException
- never thrownpublic void genereateResponseCoefficients()
genereateResponseCoefficients
in class FFTFilter
public static java.lang.String getRevision()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |