summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorDavid Kastrup <dak@gnu.org>2016-07-27 12:01:48 +0200
committerDavid Kastrup <dak@gnu.org>2016-08-03 13:21:24 +0200
commit46eb67a07e39cf052e5712f2fc5eb90fd7124c74 (patch)
treeeee063663f5d6a1d33471e288d78256386c912a3 /scripts
parentbe9f3e86d1045566c88e2293a2b8168a451da317 (diff)
Issue 4945/1: midi2ly -e should not print durations in chords
Diffstat (limited to 'scripts')
-rw-r--r--scripts/midi2ly.py8
1 files changed, 5 insertions, 3 deletions
diff --git a/scripts/midi2ly.py b/scripts/midi2ly.py
index 5358fc4698..2a36874962 100644
--- a/scripts/midi2ly.py
+++ b/scripts/midi2ly.py
@@ -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