@@ -436,23 +436,24 @@ def _parse_parts(document, part_dict):
436436 # when constructed from MusicXML
437437 score .set_end_times (part )
438438
439+ # Octave Shifts are only visual doesn't to change the octave of notes.
439440 # Apply octave shifts directly to notes
440- for shift in part .iter_all (score .OctaveShiftDirection ):
441- # Shifts normal notes
442- for note in part .iter_all (score .Note , start = shift .start .t , end = shift .end .t ):
443- if note .staff == shift .staff :
444- if shift .shift_type == "up" :
445- note .octave -= OCTAVE_SHIFTS [shift .shift_size ] if shift .shift_size in OCTAVE_SHIFTS .keys () else 0
446- elif shift .shift_type == "down" :
447- note .octave += OCTAVE_SHIFTS [shift .shift_size ] if shift .shift_size in OCTAVE_SHIFTS .keys () else 0
448- # Shifts grace notes
449- for note in part .iter_all (score .GraceNote , start = shift .start .t , end = shift .end .t ):
450- if note .staff == shift .staff :
451- if shift .shift_type == "up" :
452- note .octave -= OCTAVE_SHIFTS [shift .shift_size ] if shift .shift_size in OCTAVE_SHIFTS .keys () else 0
453- elif shift .shift_type == "down" :
454- note .octave += OCTAVE_SHIFTS [shift .shift_size ] if shift .shift_size in OCTAVE_SHIFTS .keys () else 0
455- shift .applied = True
441+ # for shift in part.iter_all(score.OctaveShiftDirection):
442+ # # Shifts normal notes
443+ # for note in part.iter_all(score.Note, start=shift.start.t, end=shift.end.t):
444+ # if note.staff == shift.staff:
445+ # if shift.shift_type == "up":
446+ # note.octave -= OCTAVE_SHIFTS[shift.shift_size] if shift.shift_size in OCTAVE_SHIFTS.keys() else 0
447+ # elif shift.shift_type == "down":
448+ # note.octave += OCTAVE_SHIFTS[shift.shift_size] if shift.shift_size in OCTAVE_SHIFTS.keys() else 0
449+ # # Shifts grace notes
450+ # for note in part.iter_all(score.GraceNote, start=shift.start.t, end=shift.end.t):
451+ # if note.staff == shift.staff:
452+ # if shift.shift_type == "up":
453+ # note.octave -= OCTAVE_SHIFTS[shift.shift_size] if shift.shift_size in OCTAVE_SHIFTS.keys() else 0
454+ # elif shift.shift_type == "down":
455+ # note.octave += OCTAVE_SHIFTS[shift.shift_size] if shift.shift_size in OCTAVE_SHIFTS.keys() else 0
456+ # shift.applied = True
456457
457458
458459def _handle_measure (measure_el , position , part , ongoing , doc_order ):
0 commit comments