The cell to transform.
The transformation.
Optionalamount: number
Optional parameter (semitones, degrees, or time factor).
Optionalkey: KeyLike
Key context for the diatonic transforms, as a key name such as
'C major' or as a key/scale; without it, transposeDiatonic and
sequence shift chromatically by semitones.
The transformed cell, its notes in time order whatever order the source cell was written in, so it can be read as a line.
Apply a transformation to a motif cell.
Every transform hands the cell back in onset order, so the note a later transform reads as the first one is the note that sounds first.
invertreflects pitches about the earliest note (chromatic, self-inverse);retrogrademirrors onsets about the cell span, preserving rests (self-inverse);augment/diminishscale time byamount ?? 2and its reciprocal;transposeChromaticaddsamountsemitones;transposeDiatonicshifts byamountscale degrees when akeyis given, or — with nokey— falls back to a chromatic shift ofamountsemitones;sequenceappends a shifted copy (byamountdiatonic degrees with akey, or byamountsemitones without one, since it delegates totransposeDiatonic).