Skip to content

getLongestDuration()

Return the duration of the longest note in the phrase.

Parameters

Once an object phrase has been created, you can use the following function:

phrase.getLongestDuration()

Returns

return longestDuration

Value Type Description
longestDuration int or float The longest duration, as a float where 1.0 is a quarter note.