]> git.donarmstrong.com Git - lilypond.git/blobdiff - scripts/musicxml2ly.py
Fix Snippets link
[lilypond.git] / scripts / musicxml2ly.py
index c5e07c2ece4a051c7e1311f659fc87eceeb7f829..5884f536b945115fe19b1b7712913cc6c565c73c 100644 (file)
@@ -1190,7 +1190,7 @@ class LilyPondVoiceBuilder:
             duration_factor = 1
             duration_log = {1: 0, 2: 1, 4:2, 8:3, 16:4, 32:5, 64:6, 128:7, 256:8, 512:9}.get (diff.denominator (), -1)
             duration_dots = 0
-            if duration_log >= 0: # denominator is a power of 2...
+            if duration_log > 0: # denominator is a power of 2...
                 if diff.numerator () == 3:
                     duration_log -= 1
                     duration_dots = 1
@@ -1404,8 +1404,7 @@ def musicxml_voice_to_lily_voice (voice):
         #    +fermata | arpeggiate | non-arpeggiate | 
         #    accidental-mark | other-notation
         for notations in notations_children:
-            if notations.get_tuplet():
-                tuplet_event = notations.get_tuplet()
+            for tuplet_event in notations.get_tuplets():
                 mod = n.get_maybe_exist_typed_child (musicxml.Time_modification)
                 frac = (1,1)
                 if mod: