GuitarPrometheus::MusicModels::Duration
GuitarPrometheus::MusicModels::Duration
A note’s engraved duration: the symbol (NoteValue), how many augmentation dots, and the tuplet ratio if any. More…
#include <MusicalConcepts.h>
Public Functions
| Name | |
|---|---|
| int | toTicks(int divisions) const Resolves this duration to ticks given the score’s divisions. |
Public Attributes
| Name | |
|---|---|
| NoteValue | value |
| int | dots |
| int | tupletActual |
| int | tupletNormal |
Detailed Description
struct GuitarPrometheus::MusicModels::Duration;A note’s engraved duration: the symbol (NoteValue), how many augmentation dots, and the tuplet ratio if any.
tupletActual is the count of notes in the tuplet (e.g., 3 for triplets); tupletNormal is how many notes of the same NoteValue would fit in the same time without the tuplet.
Public Functions Documentation
function toTicks
int toTicks( int divisions) constResolves this duration to ticks given the score’s divisions.
Parameters:
- divisions Ticks per quarter note (from MusicXML
<divisions>).
Return: Tick count, applying dot extensions and tuplet scaling.
Public Attributes Documentation
variable value
NoteValue value = Quarter;variable dots
int dots = 0;variable tupletActual
int tupletActual = 1;variable tupletNormal
int tupletNormal = 1;Updated on 2026-05-29 at 07:39:52 +0000