com.meapsoft
Class Segmenter

java.lang.Object
  extended bycom.meapsoft.MEAPUtil
      extended bycom.meapsoft.Segmenter
All Implemented Interfaces:
java.lang.Runnable

public class Segmenter
extends MEAPUtil

Program to segment input files and output text feature files compatible with other MEAPsoft tools.


Field Summary
 
Fields inherited from class com.meapsoft.MEAPUtil
bigEndian, bitsPerSamp, exceptionHandler, frameLatency, mixerToUse, numChannels, progress, samplingRate, signed, slash, stereo, verbose, version, writeMEAPFile
 
Constructor Summary
Segmenter(java.lang.String[] args)
          Segmenter constructor.
Segmenter(java.lang.String[] inFiles, java.lang.String outputFile)
           
Segmenter(java.lang.String[] inFiles, java.lang.String outputFile, double thr, boolean beatOD, boolean oaff)
           
Segmenter(java.lang.String[] inFiles, java.lang.String outputFile, double thr, double smt, boolean beatOD, boolean oaff)
           
Segmenter(java.lang.String inFile, java.lang.String outputFile)
           
Segmenter(java.lang.String inFile, java.lang.String outputFile, double thr, boolean beatOD, boolean oaff)
           
Segmenter(java.lang.String inFile, java.lang.String outputFile, double thr, double smt, boolean beatOD, boolean oaff)
           
 
Method Summary
 FeatFile getSegFile()
           
static void main(java.lang.String[] args)
           
 void printUsageAndExit()
           
 FeatFile processAudioFile()
           
 FeatFile processAudioFile(java.lang.String fn)
           
 void run()
          Set everything up, process input, and write output.
 void setTempoMultiplier(double mult)
           
 
Methods inherited from class com.meapsoft.MEAPUtil
bytes2doubles, doubles2bytes, getPaths, getProgress, openAudioWriter, openAudioWriter, openInputStream, openInputStream, parseChunkDist, parseFeatDim, parseFeatureExtractor, parseFeatureExtractor, printCommandLineOptions, printCommandLineOptions, setExceptionHandler, setup
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Segmenter

public Segmenter(java.lang.String[] inFiles,
                 java.lang.String outputFile)

Segmenter

public Segmenter(java.lang.String inFile,
                 java.lang.String outputFile)

Segmenter

public Segmenter(java.lang.String[] inFiles,
                 java.lang.String outputFile,
                 double thr,
                 boolean beatOD,
                 boolean oaff)

Segmenter

public Segmenter(java.lang.String[] inFiles,
                 java.lang.String outputFile,
                 double thr,
                 double smt,
                 boolean beatOD,
                 boolean oaff)

Segmenter

public Segmenter(java.lang.String inFile,
                 java.lang.String outputFile,
                 double thr,
                 boolean beatOD,
                 boolean oaff)

Segmenter

public Segmenter(java.lang.String inFile,
                 java.lang.String outputFile,
                 double thr,
                 double smt,
                 boolean beatOD,
                 boolean oaff)

Segmenter

public Segmenter(java.lang.String[] args)
Segmenter constructor. Parses command line arguments

Method Detail

printUsageAndExit

public void printUsageAndExit()

processAudioFile

public FeatFile processAudioFile()
                          throws java.io.IOException,
                                 javax.sound.sampled.UnsupportedAudioFileException
Throws:
java.io.IOException
javax.sound.sampled.UnsupportedAudioFileException

processAudioFile

public FeatFile processAudioFile(java.lang.String fn)
                          throws java.io.IOException,
                                 javax.sound.sampled.UnsupportedAudioFileException
Throws:
java.io.IOException
javax.sound.sampled.UnsupportedAudioFileException

run

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

Specified by:
run in interface java.lang.Runnable
Specified by:
run in class MEAPUtil

setTempoMultiplier

public void setTempoMultiplier(double mult)

getSegFile

public FeatFile getSegFile()

main

public static void main(java.lang.String[] args)