Class MeasureBeatDivisions
java.lang.Object
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
Constructors Constructor Description MeasureBeatDivisions() -
Method Summary
Modifier and Type Method Description voidcreateAllBeatDivisionLists()Run through each beat of this measure.BeatDivisionListgetBeatDivisionList(int beat)MusicShapegetMeasure()static voidmain(java.lang.String[] args)voidsetMeasure(MusicShape measure)set the MusicShape representing events within this measurevoidsetTimeSignature(TimeSignature ts)java.lang.StringtoString()Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Constructor Details
-
MeasureBeatDivisions
public MeasureBeatDivisions()
-
-
Method Details
-
getMeasure
- Returns:
- the measure being divided
-
setMeasure
set the MusicShape representing events within this measure -
setTimeSignature
-
getBeatDivisionList
- 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:
toStringin classjava.lang.Object
-
main
public static void main(java.lang.String[] args)
-