Main Page   Packages   Class Hierarchy   Compound List   File List   Compound Members  

meapsoft.FeatExtractor Class Reference

Inheritance diagram for meapsoft.FeatExtractor:

Inheritance graph
[legend]
Collaboration diagram for meapsoft.FeatExtractor:

Collaboration graph
[legend]
List of all members.

Detailed Description

Program that extracts features from the chunks listed in the input files.

Author:
Ron Weiss ([email protected])

Definition at line 47 of file FeatExtractor.java.

Public Methods

 FeatExtractor (String infile, String outfile, Vector extractors)
 FeatExtractor constructor.

 FeatExtractor (FeatFile infile, FeatFile outfile, Vector extractors)
 FeatExtractor constructor.

 FeatExtractor (FeatFile[] infiles, FeatFile outfile, Vector extractors)
 FeatExtractor constructor.

 FeatExtractor (String[] args)
 FeatExtractor constructor.

void setup () throws IOException, ParserException
FeatFile[] processFeatFiles () throws IOException, UnsupportedAudioFileException
 Where the magic happens.

FeatFile processFeatFile (FeatFile f) throws IOException, UnsupportedAudioFileException
 Where the magic happens.

void run ()
 Set everything up, process input, and write output.

void setFeatureExtractorWeights (Vector v)
 Set weights associated with the different FeatureExtractors used by this object.

void setClearNonMetaFeatures (boolean clearNonMF)
 Should this FeatExtractor clear any non meta features?

void setWindowSize (double winSize)
 Set the STFT window size for the feature extractors to use.

void setHopSize (double hopSize)
 Set the STFT hop size for the feature extractors to use.

double getWindowSize ()
 Get the STFT window size used by the feature extractors.

double getHopSize ()
 Get the STFT hop size used by the feature extractors.


Constructor & Destructor Documentation

meapsoft.FeatExtractor.FeatExtractor String    infile,
String    outfile,
Vector    extractors
[inline]
 

FeatExtractor constructor.

If no extractors is empty, defaults to AvgMelSpec.

Definition at line 75 of file FeatExtractor.java.

meapsoft.FeatExtractor.FeatExtractor FeatFile    infile,
FeatFile    outfile,
Vector    extractors
[inline]
 

FeatExtractor constructor.

If no extractors is empty, defaults to AvgMelSpec.

Definition at line 84 of file FeatExtractor.java.

meapsoft.FeatExtractor.FeatExtractor FeatFile    infiles[],
FeatFile    outfile,
Vector    extractors
[inline]
 

FeatExtractor constructor.

If no extractors is empty, defaults to AvgMelSpec.

Definition at line 96 of file FeatExtractor.java.

meapsoft.FeatExtractor.FeatExtractor String    args[] [inline]
 

FeatExtractor constructor.

Parses command line arguments

Definition at line 122 of file FeatExtractor.java.

References meapsoft.MEAPUtil.parseFeatureExtractor(), meapsoft.FeatExtractor.setHopSize(), and meapsoft.FeatExtractor.setWindowSize().


Member Function Documentation

FeatFile meapsoft.FeatExtractor.processFeatFile FeatFile    f throws IOException, UnsupportedAudioFileException [inline]
 

Where the magic happens.

Extract features from file.

Definition at line 196 of file FeatExtractor.java.

References meapsoft.FeatChunk.addFeature(), meapsoft.FeatFile.applyFeatureWeights(), meapsoft.FeatFile.chunks, meapsoft.FeatFile.clone(), meapsoft.FeatFile.featureDescriptions, meapsoft.STFT.getLastFrameAddress(), meapsoft.MEAPFile.haveReadFile, meapsoft.Chunk.length, meapsoft.FeatFile.normalizeFeatures(), meapsoft.STFT.readFrames(), meapsoft.STFT.seconds2fr(), meapsoft.Chunk.srcFile, meapsoft.Chunk.startTime, and meapsoft.STFT.stop().

Referenced by meapsoft.FeatExtractor.processFeatFiles(), and meapsoft.FeatExtractor.run().

FeatFile [] meapsoft.FeatExtractor.processFeatFiles   throws IOException, UnsupportedAudioFileException [inline]
 

Where the magic happens.

Extract features from featFiles.

Definition at line 185 of file FeatExtractor.java.

References meapsoft.FeatExtractor.processFeatFile().

void meapsoft.FeatExtractor.setHopSize double    hopSize [inline]
 

Set the STFT hop size for the feature extractors to use.

Parameters:
hopSize  - hop size in seconds

Definition at line 415 of file FeatExtractor.java.

Referenced by meapsoft.FeatExtractor.FeatExtractor().

void meapsoft.FeatExtractor.setWindowSize double    winSize [inline]
 

Set the STFT window size for the feature extractors to use.

Parameters:
winSize  - window size in seconds

Definition at line 402 of file FeatExtractor.java.

Referenced by meapsoft.FeatExtractor.FeatExtractor().


The documentation for this class was generated from the following file:
Generated on Tue Feb 6 19:02:29 2007 for MEAPsoft by doxygen1.2.18