]> git.donarmstrong.com Git - lilypond.git/commitdiff
Correct an inconsistency in the Lyric class.
authorJohn Gourlay <john@weathervanefarm.net>
Tue, 1 Mar 2016 19:28:51 +0000 (14:28 -0500)
committerJohn Gourlay <john@weathervanefarm.net>
Tue, 1 Mar 2016 19:28:51 +0000 (14:28 -0500)
python/musicxml.py

index c4635c6aca29705a7fe7ab9b1178621f6aa99738..48aa29450dbf437df2af0786816b88ddd5af86b4 100644 (file)
@@ -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)