getDuration()
Return how long the note lasts in the written score.
Parameters
Once an object note has been created, you can use the following function:
note.getDuration()
Returns
return duration
| Value | Type | Description |
|---|---|---|
| duration | int or float |
The duration, as a float where 1.0 is a quarter note. |