Package com.softsynth.jmsl.score
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 measureint
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
Choose a child to launch depending on repeat bars, repeat counts, etc of measure -
getCurrentMeasureNumber
public int getCurrentMeasureNumber()- Returns:
- current measure number
-