]> git.donarmstrong.com Git - lilypond.git/commitdiff
MusicXML: Default to eight note instead of whole note for grace elements.
authorErlend Aasland <erlend.aasland@mac.com>
Thu, 31 Jan 2008 14:51:59 +0000 (15:51 +0100)
committerErlend Aasland <erlend.aasland@mac.com>
Thu, 31 Jan 2008 14:51:59 +0000 (15:51 +0100)
python/musicxml.py

index 89ed5f2b1a8983dcb01eee383248c6a03c01d4c2..3074ee5b4174c9e27311d95b4b90334c22c8624d 100644 (file)
@@ -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 <type> element):" % (self.start, self.duration) )
             return 0