]> git.donarmstrong.com Git - lilypond.git/commitdiff
MusicXML: The duration of an EventChord is the length of notes and *rests*
authorReinhold Kainhofer <reinhold@kainhofer.com>
Fri, 11 Apr 2008 17:46:55 +0000 (19:46 +0200)
committerReinhold Kainhofer <reinhold@kainhofer.com>
Sat, 12 Apr 2008 20:14:43 +0000 (22:14 +0200)
Signed-off-by: Reinhold Kainhofer <reinhold@kainhofer.com>
python/musicexp.py

index 00b288176c766b091d8da194057a3664c625606b..d0fc398f6bc838c5b36da52c260ba6c73058c3e4 100644 (file)
@@ -722,7 +722,7 @@ class ChordEvent (NestedMusic):
 
     def get_duration (self):
         note_events = [e for e in self.elements if
-               isinstance (e, NoteEvent)]
+               isinstance (e, NoteEvent) or isinstance (e, RestEvent)]
         if note_events:
             return note_events[0].duration
         else: