com.meapsoft.composers
Class ThresholdComposer
java.lang.Object
com.meapsoft.MEAPUtil
com.meapsoft.composers.Composer
com.meapsoft.composers.ThresholdComposer
- All Implemented Interfaces:
- java.lang.Runnable
- public class ThresholdComposer
- extends Composer
ThresholdComposer selects chunks with feature values falling inside
the top and bottom thresholds. It then creates an output file
composed exclusively of either the selected chunks or the
not-selected chunks. Try using it on speech to eliminate pauses
(using ChunkPower), or on pitched sounds to extract certain pitch
ranges (using AvgPitchSimple). You will probably need to do a
feature analysis of your file first and then look at the features
to get a feel for the range of data values. ThresholdComposer only
really makes sense for one-dimensional features like pitch and
power.
Fields inherited from class com.meapsoft.MEAPUtil |
bigEndian, bitsPerSamp, exceptionHandler, frameLatency, mixerToUse, numChannels, progress, samplingRate, signed, slash, stereo, verbose, version, writeMEAPFile |
Methods inherited from class com.meapsoft.MEAPUtil |
bytes2doubles, doubles2bytes, getPaths, getProgress, openAudioWriter, openAudioWriter, openInputStream, openInputStream, parseChunkDist, parseFeatDim, parseFeatureExtractor, parseFeatureExtractor, printCommandLineOptions, setExceptionHandler |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
description
public static java.lang.String description
ThresholdComposer
public ThresholdComposer(java.lang.String featFN,
java.lang.String outFN,
double thresholdTop,
double thresholdBottom,
boolean insideThreshold)
ThresholdComposer
public ThresholdComposer(FeatFile featFN,
EDLFile outFN,
double thresholdTop,
double thresholdBottom,
boolean insideThreshold)
ThresholdComposer
public ThresholdComposer(java.lang.String[] args)
printUsageAndExit
public void printUsageAndExit()
setup
public void setup()
throws java.io.IOException,
ParserException
- Description copied from class:
Composer
- Setup the Composer - read in files, etc.
This should be called before any call to compose() to ensure
that the inputs and outputs are properly initialized.
- Overrides:
setup
in class Composer
- Throws:
java.io.IOException
ParserException
compose
public EDLFile compose()
- Description copied from class:
Composer
- Compose an EDLFile. This is where the magic happens.
- Specified by:
compose
in class Composer
main
public static void main(java.lang.String[] args)