MultiPatternSequenceEngine

The MultiPatternSequenceEngine is a SequenceEngine that is similar to the PatternSequenceEngine, except that it supports an arbitrary number of voices instead of one.

The MultiPatternSequenceEngine randomly choses on of the provided "patternEngines" tags and uses all of its "patternEngine" tags to create patterns. These patterns will be used to create a multi-voice sequence. The patterns don't need to have the same number of ticks.

The wildcard character "+" can be used to create a transition pitch between the current chord and the next chord. This pitch is always based on chord offset 0 of both chords.

Configuration

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.
normalizeChords - boolean 0-1 false Specifies that chords should be normalized. Defaults to true. Available since version 0.3.
patternEngines - - 1-n - Groups the patternEngine tags.
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="MultiPatternSequenceEngine">
  <patternEngines>
    <patternEngine class="StringPatternEngine">
      <string>-,-,-,-,5,-,-,-,-,-,-,-,5,-,-,-</string>
    </patternEngine>
    <patternEngine class="StringPatternEngine">
      <string>-,-,-,-,4,-,-,-,-,-,-,-,4,-,-,-</string>
    </patternEngine>
    <patternEngine class="StringPatternEngine">
      <string>-,-,-,-,3,-,-,-,-,-,-,-,3,-,-,-</string>
    </patternEngine>
    <patternEngine class="StringPatternEngine">
      <string>0,-,-,0,-,-,0,-,-,-,0,-,-,-,-,-,0,-,-,0,-,-,0,-,-,-,0,-,-,-,+,-</string>
    </patternEngine>
  </patternEngines>
</sequenceEngine>

Add new comment

Error | SoundHelix

Error

Error message

PDOException: SQLSTATE[42000]: Syntax error or access violation: 1142 INSERT command denied to user 'o3587400'@'swh-live-web53.swh.1u1.it' for table 'drupal_accesslog': INSERT INTO {accesslog} (title, path, url, hostname, uid, sid, timer, timestamp) VALUES (:db_insert_placeholder_0, :db_insert_placeholder_1, :db_insert_placeholder_2, :db_insert_placeholder_3, :db_insert_placeholder_4, :db_insert_placeholder_5, :db_insert_placeholder_6, :db_insert_placeholder_7); Array ( [:db_insert_placeholder_0] => MultiPatternSequenceEngine [:db_insert_placeholder_1] => node/58 [:db_insert_placeholder_2] => http://www.soundhelix.com/doc/multipatternsequenceengine [:db_insert_placeholder_3] => 3.238.233.189 [:db_insert_placeholder_4] => 0 [:db_insert_placeholder_5] => weKkfcAuYJfYC19Zcf9etw3V72g-4NxlN9UZEbJVin0 [:db_insert_placeholder_6] => 1207 [:db_insert_placeholder_7] => 1711637026 ) in statistics_exit() (line 91 of /mnt/web305/e3/68/52429368/htdocs/soundhelix.com/public_html/modules/statistics/statistics.module).
The website encountered an unexpected error. Please try again later.