public class RandomPatternEngine extends StringPatternEngine
logger, randomSeed
Constructor and Description |
---|
RandomPatternEngine() |
Modifier and Type | Method and Description |
---|---|
void |
configure(SongContext songContext,
Node node)
Configures the instance using the specified XML node.
|
void |
setLegatoProbability(double legatoProbability) |
void |
setMaxActiveTicks(int maxActiveTicks) |
void |
setMaxVelocity(double maxVelocity) |
void |
setMinActiveTicks(int minActiveTicks) |
void |
setMinVelocity(double minVelocity) |
void |
setNoteLengths(int[] noteLengths) |
void |
setNoteProbability(double noteProbability) |
void |
setOffsets(com.soundhelix.component.patternengine.impl.RandomPatternEngine.PatternEntry[] offsets) |
void |
setPatternString(String patternString) |
void |
setPatternTicks(int patternTicks) |
void |
setPauseLengths(int[] pauseLengths) |
void |
setPitchVelocityCorrelation(double pitchVelocityCorrelation) |
void |
setUniquePatternParts(boolean uniquePatternParts) |
void |
setVelocityExponent(double velocityExponent) |
getPatternString, render, setPatternTicksPerBeat
getRandomSeed, setRandomSeed
public void configure(SongContext songContext, Node node) throws XPathException
XMLConfigurable
configure
in interface XMLConfigurable
configure
in class StringPatternEngine
songContext
- the song contextnode
- the parent XML node of the configuration tagsXPathException
- in case of an XPath problempublic void setPatternTicks(int patternTicks)
public void setNoteProbability(double noteProbability)
public void setLegatoProbability(double legatoProbability)
public void setOffsets(com.soundhelix.component.patternengine.impl.RandomPatternEngine.PatternEntry[] offsets)
public void setMinVelocity(double minVelocity)
public void setMaxVelocity(double maxVelocity)
public void setPatternString(String patternString)
setPatternString
in class StringPatternEngine
public void setNoteLengths(int[] noteLengths)
public void setPauseLengths(int[] pauseLengths)
public void setPitchVelocityCorrelation(double pitchVelocityCorrelation)
public void setVelocityExponent(double velocityExponent)
public void setMinActiveTicks(int minActiveTicks)
public void setMaxActiveTicks(int maxActiveTicks)
public void setUniquePatternParts(boolean uniquePatternParts)