Skip to content

setLength()

Set how long the note actually sounds.

note.setLength(length)

Length is normally about 90% of the duration. Raise it toward the duration to make the note sound legato (smooth), or lower it to make it sound staccato (short).

Parameters

note.setLength(length)
Parameter Type Default Description
length int or float required The new sounding length, in the same units as duration.