From: Reinhold Kainhofer Date: Fri, 11 Apr 2008 17:46:55 +0000 (+0200) Subject: MusicXML: The duration of an EventChord is the length of notes and *rests* X-Git-Tag: release/2.11.44-1~4^2~10 X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=227a1e46f9141ec80829a432f78edbdab8a39c48;p=lilypond.git MusicXML: The duration of an EventChord is the length of notes and *rests* Signed-off-by: Reinhold Kainhofer --- diff --git a/python/musicexp.py b/python/musicexp.py index 00b288176c..d0fc398f6b 100644 --- a/python/musicexp.py +++ b/python/musicexp.py @@ -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: