From: pin Date: Fri, 5 Feb 2010 12:42:12 +0000 (+0000) Subject: Chaîne vide si pas de parole pour une note. X-Git-Url: https://svn.cri.ensmp.fr/git/minwii.git/commitdiff_plain/a5a242616d9e5d20e507d810118ff562d7a277f1?ds=inline Chaîne vide si pas de parole pour une note. git-svn-id: https://svn.cri.ensmp.fr/svn/minwii/trunk@6 fe552daf-6dbe-4428-90eb-1537e0879342 --- diff --git a/src/songs/musicxmltosong.py b/src/songs/musicxmltosong.py index ffb5247..3de33ca 100755 --- a/src/songs/musicxmltosong.py +++ b/src/songs/musicxmltosong.py @@ -29,7 +29,7 @@ class Note(object) : self.octave = int(_getNodeValue(node, 'pitch/octave')) self.alter = int(_getNodeValue(node, 'pitch/alter', 0)) self._duration = float(_getNodeValue(node, 'duration')) - self.lyric = _getNodeValue(node, 'lyric/text') + self.lyric = _getNodeValue(node, 'lyric/text', '') self.divisions = divisions