public class ArpeggioSequenceEngine extends AbstractSequenceEngine
AbstractSequenceEngine.PatternRestartMode
Modifier and Type | Field and Description |
---|---|
protected boolean |
isNormalizeChords
Boolean indicating if chords should be normalized.
|
protected boolean |
obeyChordSections
Boolean indicating of chord sections should be obeyed.
|
protected Random |
random
The random generator.
|
logger, patternRestartMode, randomSeed
Constructor and Description |
---|
ArpeggioSequenceEngine()
Constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
configure(SongContext songContext,
Node node)
Configures the instance using the specified XML node.
|
Track |
render(SongContext songContext,
ActivityVector[] activityVectors)
Renders one or more sequences (i.e., voices) as a track.
|
void |
setNormalizeChords(boolean isNormalizeChords) |
void |
setObeyChordSections(boolean obeyChordSections) |
void |
setPatterns(Pattern[] patterns) |
configurePatternRestartMode, getActivityVectorCount, getNextPatternRestartTick, getRandomSeed, setPatternRestartMode, setRandomSeed
protected Random random
protected boolean isNormalizeChords
protected boolean obeyChordSections
public void setPatterns(Pattern[] patterns)
public void setObeyChordSections(boolean obeyChordSections)
public Track render(SongContext songContext, ActivityVector[] activityVectors)
SequenceEngine
songContext
- the song contextactivityVectors
- the activity vectorspublic void configure(SongContext songContext, Node node) throws XPathException
XMLConfigurable
songContext
- the song contextnode
- the parent XML node of the configuration tagsXPathException
- in case of an XPath problempublic void setNormalizeChords(boolean isNormalizeChords)