public abstract class AbstractSequenceEngine extends Object implements SequenceEngine
SequenceEngine| Modifier and Type | Class and Description |
|---|---|
protected static class |
AbstractSequenceEngine.PatternRestartMode
The restart mode for patterns.
|
| Modifier and Type | Field and Description |
|---|---|
protected Logger |
logger
The logger.
|
protected AbstractSequenceEngine.PatternRestartMode |
patternRestartMode
The pattern restart mode, including its default.
|
protected long |
randomSeed
The random seed.
|
| Constructor and Description |
|---|
AbstractSequenceEngine()
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
configurePatternRestartMode(Random random,
Node node) |
int |
getActivityVectorCount()
Returns the required number of ActivityVectors.
|
protected int |
getNextPatternRestartTick(SongContext songContext,
int tick)
Returns the tick number of the next required pattern restart after the given tick.
|
long |
getRandomSeed()
Returns the current random seed, which is the last seed set by setRandomSeed() or the initial random seed if setRandomSeed() hasn't been called
before.
|
void |
setPatternRestartMode(AbstractSequenceEngine.PatternRestartMode patternRestartMode) |
void |
setRandomSeed(long randomSeed)
Sets the random seed to use.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitrenderconfigureprotected final Logger logger
protected long randomSeed
protected AbstractSequenceEngine.PatternRestartMode patternRestartMode
public int getActivityVectorCount()
getActivityVectorCount in interface SequenceEnginepublic void setRandomSeed(long randomSeed)
RandomSeedablesetRandomSeed in interface RandomSeedablerandomSeed - the random seedpublic long getRandomSeed()
RandomSeedablegetRandomSeed in interface RandomSeedableprotected int getNextPatternRestartTick(SongContext songContext, int tick)
songContext - the song contexttick - the tickpublic void setPatternRestartMode(AbstractSequenceEngine.PatternRestartMode patternRestartMode)