Creates a pattern object with the specified options.
Creates a pattern object with the specified name.
Creates a pattern object.
The midi channel for this pattern. Defaults to -1, all channels.
The clock multiplier for this pattern. Defaults to 1.0.
Whether or not this pattern should cycle. Defaults to true.
The identifier of this object.
The key range for this pattern. Defaults to [0, 127]
The name for this pattern.
The offset for this pattern. If the offset value is greater than zero then the steps will be shifted to the right by the offset amount. If the offset value is less than zero then the steps will be shifted to the left.
```javascript let steps = [step1, step2, step3]; this.offset = 1; // [step3, step1, step2] ``` ```javascript let steps = [step1, step2, step3]; this.offset = -1; // [step3, step2, step1] ```
Defaults to 0.
The advanced callback for this pattern.
This callback is called when this pattern progresses to a new step.
The after touch changed callback for this pattern.
The channel pressure changed callback for this pattern.
The controller moved callback for this pattern.
The ended callback for this pattern.
This callback is called when this pattern reaches the end of the last step.
The note off callback for this pattern.
The note on callback for this pattern.
The pitch wheel moved callback for this pattern.
The sequence callback for this pattern.
This callback is triggered when a note on is received and should return a Step or a list of Steps. This callback will be called repeatably while a note is held down in the key/velocity range of this pattern, while there are 1 or more steps, Pattern.resequence is set to true (default) and if Pattern.cycle is set to true (default).
Whether or not to re-sequence this pattern once it reaches the end. If this is set to false then Pattern.onSequence callback will not be called and the last sequence of steps will be used again. If this is set to true (default) then the Pattern.onSequence callback will be called when this pattern reaches the end to get a new set of steps for the sequence.
Defaults to true.
Whether or not this pattern is reversed.
The velocity range for this pattern. Defaults to [0, 127]
Represents the visualisation method to use for this Pattern's voices. The default visualisation method is [Pattern.Visualisation.automatic]
Generated using TypeDoc
Represents a Pattern
A pattern object is a special kind of voice that can generate steps that trigger some kind of target object(s) with some kind of message/data.