The cell to transform.
The transformation.
Optionalamount: number
Optional parameter (semitones, degrees, or time factor).
Optionalkey: KeyScale
Key context for the diatonic transforms; without it,
transposeDiatonic and sequence shift chromatically by semitones.
The transformed cell.
Apply a transformation to a motif cell.
invertreflects pitches about the first 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).