The StringPatternEngine is a PatternEngine that uses a pattern that is provided by a string.
The StringPatternEngine randomly chooses one of the provided <string> tags and uses the contained pattern.
Configuration
| Tag | Attribute | Type | # | Example | Description |
|---|---|---|---|---|---|
| string | - | string | 1-n | -/2,0,-/2,0,-,0 | Comma-separated list of numbers, wildcards or pauses, optional velocity, optional number of ticks and optional legato flag. The full syntax is "number:velocity/ticks~". Instead of a number, a wildcard character or pause ("-") can be used. The velocity must be between 0 and 32767 and defaults to 32767. The number of ticks must be greater than 0 and defaults to 1. The legato flag defaults to false (no "~", i.e., tilde, character). |
Configuration example
<patternEngine class="StringPatternEngine">
<string>-,-,-,-,2,-,-,-,-,-,-,-,4,-,-,-</string>
<string>-,-,-,-,1,-,-,-,-,-,-,-,5,-,-,-</string>
</patternEngine>





Add new comment