com.softsynth.jmsl.score.transcribe
Class MeasureBeatDivisions

java.lang.Object
  extended by com.softsynth.jmsl.score.transcribe.MeasureBeatDivisions

public class MeasureBeatDivisions
extends java.lang.Object

Holds a BeatDivisionList for each beat of an entire measure. This is the class through which the heuristic search must navigate in order to find a minimum cost path.

Author:
Nick Didkovsky, Feb 7, 2002, (c) 2002 Nick Didkovsky, All Rights reserved.

Constructor Summary
MeasureBeatDivisions()
           
 
Method Summary
 void createAllBeatDivisionLists()
          Run through each beat of this measure.
 BeatDivisionList getBeatDivisionList(int beat)
           
 MusicShape getMeasure()
           
static void main(java.lang.String[] args)
           
 void setMeasure(MusicShape measure)
          set the MusicShape representing events within this measure
 void setTimeSignature(TimeSignature ts)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

MeasureBeatDivisions

public MeasureBeatDivisions()
Method Detail

getMeasure

public MusicShape getMeasure()
Returns:
the measure being divided

setMeasure

public void setMeasure(MusicShape measure)
set the MusicShape representing events within this measure


setTimeSignature

public void setTimeSignature(TimeSignature ts)

getBeatDivisionList

public BeatDivisionList getBeatDivisionList(int beat)
Returns:
the BeatDivisionList for the requested beat. Used by SearchPathList to expand the current lowest cost SearchPath

createAllBeatDivisionLists

public void createAllBeatDivisionLists()
Run through each beat of this measure. For each beat, create a BeatDivisionList. This list is a set of candidates competing for the best description of elements within each beat


toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

main

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