The FreeMultiPatternSequenceEngine is a SequenceEngine that uses a list of patterns (provided by the configured PatternEngines) in which you specify the pitches directly rather than chord offsets. This means that patterns of this SequenceEngine can only be used with a fixed harmony rather than a randomly-generated harmony. This is suitable, for example, for a fixed multi-voice melody for a fixed sequence of chords. This SequenceEngine will pick one of the provided PatternEngine groups at random and will use all the provided PatternEngines within that group to generate the sequences. Note that the patterns within a group don't need to have equal length; each pattern's entries are used individually in a round-robin manner.


Tag Attribute Type # Example Description
patternRestartMode - string 0-1 chordSection The restart mode to use for all patterns in addition to restarting them at the end. Allowed values are "chord" (restart patterns at each new chord), "chordSection" (restart patterns at each new chord section), "song" (never restart patterns). Defaults to "song" for backwards compatibility. Available since version 0.9.
patternEngines - - 1-n - Groups the PatternEngines.
patternEngines/patternEngine class class 1 StringPatternEngine The name of the PatternEngine implementation to use.
patternEngines/patternEngine - - 1-n - The configuration of the PatternEngine implementation.

Configuration example

<sequenceEngine class="FreeMultiPatternSequenceEngine">
    <patternEngine class="StringPatternEngine">
    <patternEngine class="StringPatternEngine">

Add new comment