Tone.CtrlInterpolate
↳ EXTENDS ToneTone.CtrlInterpolate will interpolate between given values based on the “index” property. Passing in an array or object literal will interpolate each of the parameters. Note (i.e. “C3”) and Time (i.e. “4n + 2”) can be interpolated. All other values are assumed to be numbers.
CONSTRUCTOR
new Tone.CtrlInterpolate (values
, index
)
values
The array of values to interpolate over
type:
Array
index
The initial interpolation index.
type:
Positive
DEFAULTS
{
index
:
0
,
values
:
[]
}
EXAMPLE
EXAMPLE
Members
.index
↝ Positive #The interpolated index between values. For example: a value of 1.5 would interpolate equally between the value at index 1 and the value at index 2.