computeNextNoteTime method
Implementation
double computeNextNoteTime(double time) {
if (chart.noteCollections.isEmpty) return time;
final epsilon = 1e-6;
int index = _findCollectionIndex(time);
index++;
if (index >= chart.noteCollections.length) return time;
if (chart.noteCollections[index].time <= time + epsilon) {
index++;
}
if (index >= chart.noteCollections.length) return time;
return chart.noteCollections[index].time;
}