From edb29ef3aa71bdc6d3d1fcd997836e7727dc2934 Mon Sep 17 00:00:00 2001 From: John Gourlay Date: Tue, 1 Mar 2016 14:28:51 -0500 Subject: [PATCH] Correct an inconsistency in the Lyric class. --- python/musicxml.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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) -- 2.39.2