]> git.donarmstrong.com Git - lilypond.git/commitdiff
Issue 4945/1: midi2ly -e should not print durations in chords
authorDavid Kastrup <dak@gnu.org>
Wed, 27 Jul 2016 10:01:48 +0000 (12:01 +0200)
committerDavid Kastrup <dak@gnu.org>
Wed, 3 Aug 2016 11:21:24 +0000 (13:21 +0200)
scripts/midi2ly.py

index 5358fc46984ad6e8a49e363c2aaf622f816c18b9..2a36874962c8160d31f8fb0d4d4da7b216553126 100644 (file)
@@ -267,11 +267,13 @@ class Note:
         elif commas < 0:
             s = s + "," * -commas
 
-        if ((dump_dur
-             and self.duration.compare (reference_note.duration))
-            or global_options.explicit_durations):
+        if (dump_dur
+            and (self.duration.compare (reference_note.duration)
+                 or global_options.explicit_durations)):
             s = s + self.duration.dump ()
 
+        # Chords need to handle their reference duration themselves
+
         reference_note = self
 
         # TODO: move space