com.meapsoft.composers
Class HeadBangComposer

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

public class HeadBangComposer
extends Composer

Rocks it hard-core style. Finds the most common chunk length L and lengths related by a factor of 2, i.e. L/2, L/4, L/8, L*2. These chunks are then shuffled to create a new piece with a clear beat.


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
HeadBangComposer(FeatFile featFN, EDLFile outFN)
           
HeadBangComposer(FeatFile featFN, EDLFile outFN, int binsNum, int newPieceLength)
           
HeadBangComposer(java.lang.String[] args)
           
HeadBangComposer(java.lang.String featFN, java.lang.String outFN)
           
HeadBangComposer(java.lang.String featFN, java.lang.String outFN, int binsNum, int newPieceLength)
           
 
Method Summary
 EDLFile compose()
          Compose an EDLFile.
static void main(java.lang.String[] args)
           
 void printUsageAndExit()
           
 void setup()
          Setup the Composer - read in files, etc.
 
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

HeadBangComposer

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

HeadBangComposer

public HeadBangComposer(FeatFile featFN,
                        EDLFile outFN)

HeadBangComposer

public HeadBangComposer(java.lang.String featFN,
                        java.lang.String outFN,
                        int binsNum,
                        int newPieceLength)

HeadBangComposer

public HeadBangComposer(FeatFile featFN,
                        EDLFile outFN,
                        int binsNum,
                        int newPieceLength)

HeadBangComposer

public HeadBangComposer(java.lang.String[] args)
Method Detail

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)