}
} else {
arpeggioPhrase.addRest(new Rest(normalizedMeasureSize));
}
} else if (currentMeasureSize == 0 && (currentNote.isRest() || lastMeasure)) {
arpeggioPhrase.addRest(new Rest(normalizedMeasureSize));
}
currentMeasureSize += currentNote.getRhythmValue();
if (currentMeasureSize >= normalizedMeasureSize) {
currentMeasureSize = 0;