Class ScoreCollectionBehavior

java.lang.Object
com.softsynth.jmsl.score.ScoreCollectionBehavior
All Implemented Interfaces:
Behavior

public class ScoreCollectionBehavior
extends java.lang.Object
implements Behavior
Implements behavior of common music rules such as repeats and repeat counts of measures.
Author:
Nick Didkovsky, copyright 2000 Nick Didkovsky, all rights reserved
  • Constructor Summary

    Constructors
    Constructor Description
    ScoreCollectionBehavior()  
  • Method Summary

    Modifier and Type Method Description
    Composable choose​(SequentialCollection col)
    Choose a child to launch depending on repeat bars, repeat counts, etc of measure
    int getCurrentMeasureNumber()  
    void setLoop​(boolean flag)  
    void setLoopFlag​(boolean flag)  
    void setStartEndLoop​(int startMeasureNum, int endMeasure, boolean loop)  

    Methods inherited from class java.lang.Object

    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • ScoreCollectionBehavior

      public ScoreCollectionBehavior()
  • Method Details

    • setStartEndLoop

      public void setStartEndLoop​(int startMeasureNum, int endMeasure, boolean loop)
    • setLoop

      public void setLoop​(boolean flag)
    • setLoopFlag

      public void setLoopFlag​(boolean flag)
    • choose

      public Composable choose​(SequentialCollection col)
      Choose a child to launch depending on repeat bars, repeat counts, etc of measure
      Specified by:
      choose in interface Behavior
      Returns:
      next Measure child to launch.
    • getCurrentMeasureNumber

      public int getCurrentMeasureNumber()
      Returns:
      current measure number