Tone.CtrlPattern
↳ EXTENDS ToneGenerate patterns from an array of values. Has a number of arpeggiation and randomized selection patterns. <ul> <li>“up” - cycles upward</li> <li>“down” - cycles downward</li> <li>“upDown” - up then and down</li> <li>“downUp” - cycles down then and up</li> <li>“alternateUp” - jump up two and down one</li> <li>“alternateDown” - jump down two and up one</li> <li>“random” - randomly select an index</li> <li>“randomWalk” - randomly moves one index away from the current position</li> <li>“randomOnce” - randomly select an index without repeating until all values have been chosen.</li> </ul>
CONSTRUCTOR
new Tone.CtrlPattern (values
, [ type
]
)
values
An array of options to choose from.
type:
Array
type
The name of the pattern.
type:
Tone.CtrlPattern.Type
optional
DEFAULTS
{
type
:
Tone.CtrlPattern.Type.Up
,
values
:
[]
}