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
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ScoreCollectionBehavior
public ScoreCollectionBehavior()
setStartEndLoop
public void setStartEndLoop(int startMeasureNum,
int endMeasure,
boolean loop)
setLoop
public void setLoop(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