From: John Gourlay Date: Tue, 1 Mar 2016 19:28:51 +0000 (-0500) Subject: Correct an inconsistency in the Lyric class. X-Git-Tag: release/2.19.44-1~24^2~16 X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=edb29ef3aa71bdc6d3d1fcd997836e7727dc2934;p=lilypond.git Correct an inconsistency in the Lyric class. --- diff --git a/python/musicxml.py b/python/musicxml.py index c4635c6aca..48aa29450d 100644 --- a/python/musicxml.py +++ b/python/musicxml.py @@ -949,7 +949,7 @@ class Syllabic(Music_xml_node): class Lyric(Music_xml_node): - def get_number(self): + def number(self): """ Return the number attribute(if it exists) of the lyric element. @@ -1231,7 +1231,7 @@ class Musicxml_voice: self.has_lyrics = len(lyrics) > 0 for l in lyrics: - nr = l.get_number() + nr = l.number if(nr > 0) and not(nr in self._lyrics): self._lyrics.append(nr)