Skip to content

elongate()

Stretch or squeeze every note's length by a scaling factor, in place.

Mod.elongate(material, scaleFactor)

A factor above 1.0 makes the music longer (slower); below 1.0 makes it shorter (faster). For example, 0.5 halves every duration.

Parameters

Mod.elongate(material, scaleFactor)
Parameter Type Default Description
material Note, Phrase, Part, or Score required The music to change.
scaleFactor int or float required The factor to multiply every duration by.