|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.meapsoft.MEAPUtil com.meapsoft.FeatExtractor
Program that extracts features from the chunks listed in the input files.
Field Summary | |
static int |
feSamplingRate
|
static int |
nfft
|
static int |
nhop
|
Fields inherited from class com.meapsoft.MEAPUtil |
bigEndian, bitsPerSamp, exceptionHandler, frameLatency, mixerToUse, numChannels, progress, samplingRate, signed, slash, stereo, verbose, version, writeMEAPFile |
Constructor Summary | |
FeatExtractor(FeatFile[] infiles,
FeatFile outfile,
java.util.Vector extractors)
FeatExtractor constructor. |
|
FeatExtractor(FeatFile infile,
FeatFile outfile,
java.util.Vector extractors)
FeatExtractor constructor. |
|
FeatExtractor(java.lang.String[] args)
FeatExtractor constructor. |
|
FeatExtractor(java.lang.String infile,
java.lang.String outfile,
java.util.Vector extractors)
FeatExtractor constructor. |
Method Summary | |
double |
getHopSize()
Get the STFT hop size used by the feature extractors. |
double |
getWindowSize()
Get the STFT window size used by the feature extractors. |
static void |
main(java.lang.String[] args)
|
void |
printUsageAndExit()
|
FeatFile |
processFeatFile(FeatFile f)
Where the magic happens. |
FeatFile[] |
processFeatFiles()
Where the magic happens. |
void |
run()
Set everything up, process input, and write output. |
void |
setClearNonMetaFeatures(boolean clearNonMF)
Should this FeatExtractor clear any non meta features? |
void |
setFeatureExtractorWeights(java.util.Vector v)
Set weights associated with the different FeatureExtractors used by this object. |
void |
setHopSize(double hopSize)
Set the STFT hop size for the feature extractors to use. |
void |
setup()
|
void |
setWindowSize(double winSize)
Set the STFT window size for the feature extractors to use. |
Methods inherited from class com.meapsoft.MEAPUtil |
bytes2doubles, doubles2bytes, getPaths, getProgress, openAudioWriter, openAudioWriter, openInputStream, openInputStream, parseChunkDist, parseFeatDim, parseFeatureExtractor, parseFeatureExtractor, printCommandLineOptions, printCommandLineOptions, setExceptionHandler |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final int feSamplingRate
public static int nfft
public static int nhop
Constructor Detail |
public FeatExtractor(java.lang.String infile, java.lang.String outfile, java.util.Vector extractors)
public FeatExtractor(FeatFile infile, FeatFile outfile, java.util.Vector extractors)
public FeatExtractor(FeatFile[] infiles, FeatFile outfile, java.util.Vector extractors)
public FeatExtractor(java.lang.String[] args)
Method Detail |
public void printUsageAndExit()
public void setup() throws java.io.IOException, ParserException
setup
in class MEAPUtil
java.io.IOException
ParserException
public FeatFile[] processFeatFiles() throws java.io.IOException, javax.sound.sampled.UnsupportedAudioFileException
java.io.IOException
javax.sound.sampled.UnsupportedAudioFileException
public FeatFile processFeatFile(FeatFile f) throws java.io.IOException, javax.sound.sampled.UnsupportedAudioFileException
java.io.IOException
javax.sound.sampled.UnsupportedAudioFileException
public void run()
run
in interface java.lang.Runnable
run
in class MEAPUtil
public void setFeatureExtractorWeights(java.util.Vector v)
public void setClearNonMetaFeatures(boolean clearNonMF)
public void setWindowSize(double winSize)
winSize
- - window size in secondspublic void setHopSize(double hopSize)
hopSize
- - hop size in secondspublic double getWindowSize()
public double getHopSize()
public static void main(java.lang.String[] args)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |