Skip to content

changeLength()

Stretch or squeeze a phrase so it lasts a set number of beats, in place.

Mod.changeLength(phrase, newLength)

Like Mod.elongate(), but you give the final length rather than a scaling factor.

Parameters

Mod.changeLength(phrase, newLength)
Parameter Type Default Description
phrase Phrase required The phrase to change.
newLength int or float required The phrase's new total length, in beats.