com.meapsoft.composers
Class NNComposer

java.lang.Object
  extended bycom.meapsoft.MEAPUtil
      extended bycom.meapsoft.composers.Composer
          extended bycom.meapsoft.composers.SortComposer
              extended bycom.meapsoft.composers.NNComposer
All Implemented Interfaces:
java.lang.Runnable

public class NNComposer
extends SortComposer

Program that composes an EDL by hopping around from chunk to chunk. Starts from a the first chunk in the source file. Always picks the nearest neighbor in feature space from current chunk. Should replicate Dan Ellis' ordercols.m.


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
NNComposer(FeatFile featFN, EDLFile outFN)
           
NNComposer(FeatFile featFN, EDLFile outFN, ChunkDist cd)
           
NNComposer(java.lang.String[] args)
          NNComposer constructor.
NNComposer(java.lang.String featFN, java.lang.String outFN)
           
NNComposer(java.lang.String featFN, java.lang.String outFN, ChunkDist cd)
           
 
Method Summary
 EDLFile compose()
          Compose an EDLFile.
static void main(java.lang.String[] args)
           
 void printUsageAndExit()
           
 
Methods inherited from class com.meapsoft.composers.SortComposer
setNormalizeFeatures, setReverseSort, setup
 
Methods inherited from class com.meapsoft.composers.Composer
addCommand, addCommandsToAllEDLChunks, addCommandsToAllEDLChunks, addCommandToAllEDLChunks, description, doComposer, parseCommands, printCommandLineOptions, run
 
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

NNComposer

public NNComposer(java.lang.String featFN,
                  java.lang.String outFN)

NNComposer

public NNComposer(FeatFile featFN,
                  EDLFile outFN)

NNComposer

public NNComposer(java.lang.String featFN,
                  java.lang.String outFN,
                  ChunkDist cd)

NNComposer

public NNComposer(FeatFile featFN,
                  EDLFile outFN,
                  ChunkDist cd)

NNComposer

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

Method Detail

printUsageAndExit

public void printUsageAndExit()
Overrides:
printUsageAndExit in class SortComposer

compose

public EDLFile compose()
Description copied from class: Composer
Compose an EDLFile. This is where the magic happens.

Overrides:
compose in class SortComposer

main

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