From 03c19fed9bf5f21cb6be1f72e991f160801236fd Mon Sep 17 00:00:00 2001 From: Jan Nieuwenhuizen Date: Mon, 21 Feb 2011 21:26:47 +0100 Subject: [PATCH 1/1] Midi2ly: reset octave for each voice. Fixes #1533. --- scripts/midi2ly.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/scripts/midi2ly.py b/scripts/midi2ly.py index b233d98a75..01f836ea36 100644 --- a/scripts/midi2ly.py +++ b/scripts/midi2ly.py @@ -666,8 +666,12 @@ def dump_voice (thread, skip): # urg LilyPond doesn't start at c4, but # remembers from previous tracks! # reference_note = Note (clocks_per_4, 4*12, 0) + ref = Note (0, 4*12, 0) if not reference_note: - reference_note = Note (0, 4*12, 0) + reference_note = ref + else: + ref.duration = reference_note.duration + reference_note = ref last_e = None chs = [] ch = [] -- 2.39.2