public class PadSequenceEngine extends AbstractSequenceEngine
AbstractSequenceEngine.PatternRestartMode
logger, patternRestartMode, randomSeed
Constructor and Description |
---|
PadSequenceEngine() |
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 |
setOffsets(int[] offsets) |
void |
setRetriggerPitches(boolean retriggerPitches) |
void |
setVelocity(int velocity) |
configurePatternRestartMode, getActivityVectorCount, getNextPatternRestartTick, getRandomSeed, setPatternRestartMode, setRandomSeed
public void setOffsets(int[] offsets)
public void setVelocity(int velocity)
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 setObeyChordSections(boolean obeyChordSections)
public void setNormalizeChords(boolean isNormalizeChords)
public void setRetriggerPitches(boolean retriggerPitches)