Duration

Note durations are represented using real numbers (floats). For example, 4.0 stands for a whole note, 2.0 for a half note, 1.0 for a quarter note, and so on. The music library defines the following constants for common duration values: