Skip to content

Commit a23a64a

Browse files
keep splitAtDurations() call if makeNotation=False
1 parent 75064ff commit a23a64a

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

music21/musicxml/m21ToXml.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2547,6 +2547,10 @@ def parse(self):
25472547
elif not self.stream.getElementsByClass(stream.Measure):
25482548
raise MusicXMLExportException(
25492549
'Cannot export with makeNotation=False if there are no measures')
2550+
else:
2551+
# QUESTION: destructive edit OK with makeNotation=False?
2552+
self.stream = self.stream.splitAtDurations(recurse=True)[0]
2553+
25502554
# make sure that all instances of the same class have unique ids
25512555
self.spannerBundle.setIdLocals()
25522556

0 commit comments

Comments
 (0)