summaryrefslogtreecommitdiff
path: root/python
diff options
context:
space:
mode:
authorJohn Gourlay <john@weathervanefarm.net>2016-03-01 14:28:51 -0500
committerJohn Gourlay <john@weathervanefarm.net>2016-03-01 14:28:51 -0500
commitedb29ef3aa71bdc6d3d1fcd997836e7727dc2934 (patch)
treefc4b5fd9c9276894e6e5ddb91d16f3133f4a22bc /python
parentda6591bef1cd9c684a9fb98f1563ea40c543ecdd (diff)
Correct an inconsistency in the Lyric class.
Diffstat (limited to 'python')
-rw-r--r--python/musicxml.py4
1 files 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)