Skip to content

Commit 2c8938d

Browse files
committed
add cue element to ignored notes
1 parent d74924f commit 2c8938d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

partitura/io/importmusicxml.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -586,7 +586,8 @@ def _handle_measure(
586586
if ignore_invisible_objects:
587587
print_obj = get_value_from_attribute(e, "print-object", str)
588588
notehead = e.find("notehead") # Musescore mask notes with notehead="none"
589-
if print_obj == "no" or (notehead is not None and notehead.text == "none"):
589+
cue = e.find("cue") # cue notes are silent
590+
if print_obj == "no" or (notehead is not None and notehead.text == "none") or cue is not None:
590591
# Still update position for invisible notes (to avoid problems with backups)
591592
if e.tag == "note":
592593
chord = e.find("chord")

0 commit comments

Comments
 (0)