default: xmlNote.setType("/" + (length / 10000d));
}
xmlNote.setDuration((int) (note.getRhythmValue() * 2));
xmlNote.setVoice(idx);
if (!note.isRest()) {
xmlNote.setPitch(new Pitch());
int pitch = note.getPitch() % 12;
String sPitch = NOTES[pitch];
int octave = note.getPitch() / 12 - 1;
xmlNote.getPitch().setOctave(octave);
if (sPitch.length() > 1) {