public class PatternHarmonyEngine extends AbstractHarmonyEngine
logger, randomSeed| Constructor and Description |
|---|
PatternHarmonyEngine()
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
configure(SongContext songContext,
Node node)
Configures the instance using the specified XML node.
|
Harmony |
render(SongContext songContext)
Renders a harmony.
|
void |
setChordPatterns(com.soundhelix.component.harmonyengine.impl.PatternHarmonyEngine.ChordPattern[] chordPatterns) |
void |
setChordRandomTables(String[][] chordRandomTables) |
void |
setMinimizeChordDistance(boolean isMinimizeChordDistance) |
getRandomSeed, setRandomSeedpublic Harmony render(SongContext songContext)
HarmonyEnginesongContext - the song contextpublic void setChordPatterns(com.soundhelix.component.harmonyengine.impl.PatternHarmonyEngine.ChordPattern[] chordPatterns)
public void setChordRandomTables(String[][] chordRandomTables)
public void configure(SongContext songContext, Node node) throws XPathException
XMLConfigurablesongContext - the song contextnode - the parent XML node of the configuration tagsXPathException - in case of an XPath problempublic void setMinimizeChordDistance(boolean isMinimizeChordDistance)