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 Details

    • MeasureBeatDivisions

      public MeasureBeatDivisions()
  • Method Details

    • 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)