totalDuration property
double
get
totalDuration
Calculates a duração total that a tuplet ocupa
Implementation
double get totalDuration {
if (elements.isEmpty) return 0.0;
// Assumir that all as notes têm a same duração base
// (isso can be expanded for suportar valores mistos)
final firstNote = elements.whereType<Note>().firstOrNull;
if (firstNote == null) return 0.0;
final singleDuration = firstNote.duration.realValue;
final totalBefore = singleDuration * actualNotes;
return totalBefore * ratio.modifier;
}