com.meapsoft.composers
Class Composer

java.lang.Object
  extended bycom.meapsoft.MEAPUtil
      extended bycom.meapsoft.composers.Composer
All Implemented Interfaces:
java.lang.Runnable
Direct Known Subclasses:
BlipComposer, EDLComposer, HeadBangComposer, IntraChunkShuffleComposer, MashupComposer, MeapaeMComposer, RotComposer, SortComposer, ThresholdComposer, VQComposer

public abstract class Composer
extends MEAPUtil

Abstract class that defines the basic interface that all MEAPsoft composers should follow.


Field Summary
static java.lang.String description
           
 
Fields inherited from class com.meapsoft.MEAPUtil
bigEndian, bitsPerSamp, exceptionHandler, frameLatency, mixerToUse, numChannels, progress, samplingRate, signed, slash, stereo, verbose, version, writeMEAPFile
 
Constructor Summary
Composer()
           
 
Method Summary
 void addCommand(java.lang.String cmd)
          Add a command to be applied to all EDL chunks.
 void addCommandsToAllEDLChunks()
           
 void addCommandsToAllEDLChunks(java.util.Vector cmds)
          Add commands to all chunks in outFile
 void addCommandToAllEDLChunks(java.lang.String cmd)
          Add a command to all chunks in outFile
abstract  EDLFile compose()
          Compose an EDLFile.
 java.lang.String description()
           
 void doComposer()
          Setup, compose, and write output file.
 void parseCommands(java.lang.String[] args, java.lang.String argString)
          Parse command strings from the command line arguments
static void printCommandLineOptions(char arg)
          Print usage of Compose command line options
 void run()
          Set everything up, process input, and write output.
 void setup()
          Setup the Composer - read in files, etc.
 
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
 

Field Detail

description

public static java.lang.String description
Constructor Detail

Composer

public Composer()
Method Detail

setup

public void setup()
           throws java.io.IOException,
                  ParserException
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 MEAPUtil
Throws:
java.io.IOException
ParserException

compose

public abstract EDLFile compose()
Compose an EDLFile. This is where the magic happens.


run

public void run()
Description copied from class: MEAPUtil
Set everything up, process input, and write output.

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

doComposer

public void doComposer()
                throws java.io.IOException,
                       ParserException
Setup, compose, and write output file. Doesn't handle exceptions.

Throws:
java.io.IOException
ParserException

addCommandToAllEDLChunks

public void addCommandToAllEDLChunks(java.lang.String cmd)
Add a command to all chunks in outFile


addCommandsToAllEDLChunks

public void addCommandsToAllEDLChunks(java.util.Vector cmds)
Add commands to all chunks in outFile


addCommandsToAllEDLChunks

public void addCommandsToAllEDLChunks()

addCommand

public void addCommand(java.lang.String cmd)
Add a command to be applied to all EDL chunks.


printCommandLineOptions

public static void printCommandLineOptions(char arg)
Print usage of Compose command line options


parseCommands

public void parseCommands(java.lang.String[] args,
                          java.lang.String argString)
Parse command strings from the command line arguments


description

public java.lang.String description()