From d78772e88a165469124071b7a6bcddfb61fd3ed8 Mon Sep 17 00:00:00 2001 From: Erlend Aasland Date: Thu, 31 Jan 2008 15:51:59 +0100 Subject: [PATCH] MusicXML: Default to eight note instead of whole note for grace elements. --- python/musicxml.py | 3 +++ 1 file changed, 3 insertions(+) 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 -- 2.39.5