diff options
author | David Kastrup <dak@gnu.org> | 2016-07-27 12:01:48 +0200 |
---|---|---|
committer | David Kastrup <dak@gnu.org> | 2016-08-03 13:21:24 +0200 |
commit | 46eb67a07e39cf052e5712f2fc5eb90fd7124c74 (patch) | |
tree | eee063663f5d6a1d33471e288d78256386c912a3 | |
parent | be9f3e86d1045566c88e2293a2b8168a451da317 (diff) |
Issue 4945/1: midi2ly -e should not print durations in chords
-rw-r--r-- | scripts/midi2ly.py | 8 |
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 |