diff --git a/music21/bar.py b/music21/bar.py index 2e73ed6cd..766e081d8 100644 --- a/music21/bar.py +++ b/music21/bar.py @@ -129,6 +129,8 @@ class Barline(base.Music21Object): classSortOrder = -5 equalityAttributes = ('type', 'pause', 'location') + + numberedEnding = None def __init__(self, type=None, # pylint: disable=redefined-builtin @@ -157,6 +159,9 @@ def _getType(self): def _setType(self, value): self._type = standardizeBarType(value) + def setNumberedEnding(self, value): + self.numberedEnding = value + type = property(_getType, _setType, doc=''' Get and set the Barline type property. diff --git a/music21/musicxml/xmlToM21.py b/music21/musicxml/xmlToM21.py index bc2d7098d..114214ad5 100644 --- a/music21/musicxml/xmlToM21.py +++ b/music21/musicxml/xmlToM21.py @@ -4825,6 +4825,7 @@ def xmlBarline(self, mxBarline): # barline objects also store ending objects, that mark begin # and end of repeat bracket designations mxEndingObj = mxBarline.find('ending') + barline.setNumberedEnding(mxEndingObj) if mxEndingObj is not None: # TODO: musicxml 4: system="yes/no" -- does this apply to whole system?