elongate()
Stretch or squeeze every note's length by a scaling factor, in place.
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() is a static utility. Call it on the Mod class itself, for example:
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. |