xmlNote.getPitch().setAlter((byte) (sPitch.contains("#") ? 1 : -1));
sPitch = sPitch.substring(0, 1);
}
xmlNote.getPitch().setStep(sPitch);
} else {
xmlNote.setRest(new RestElement());
}
currentMeasure.getNotes().add(xmlNote);
currentMeasureSize += note.getRhythmValue();
if (currentMeasureSize >= normalizedMeasureSize) {