From: Erlend Aasland Date: Thu, 31 Jan 2008 14:51:59 +0000 (+0100) Subject: MusicXML: Default to eight note instead of whole note for grace elements. X-Git-Tag: release/2.11.39-1~5^2~4^2~2 X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=d78772e88a165469124071b7a6bcddfb61fd3ed8;p=lilypond.git MusicXML: Default to eight note instead of whole note for grace elements. --- diff --git a/python/musicxml.py b/python/musicxml.py index 89ed5f2b1a..3074ee5b41 100644 --- a/python/musicxml.py +++ b/python/musicxml.py @@ -324,6 +324,9 @@ class Note (Measure_element): 'whole': 0, 'breve': -1, 'long': -2}.get (log, 0) + elif self.get_maybe_exist_named_child (u'grace'): + # FIXME: is it ok to default to eight note for grace notes? + return 3 else: self.message ("Encountered note at %s with %s duration (no element):" % (self.start, self.duration) ) return 0