From cbd50f580edd6dfff1b44285ac6f2618fb9018c5 Mon Sep 17 00:00:00 2001 From: Reinhold Kainhofer Date: Mon, 16 Nov 2009 18:58:19 +0100 Subject: [PATCH] Fix 676: unterminated ties should not be rendered in MIDI If we have unterminated ties, clear them, unless tieWaitForNote is set. --- lily/tie-performer.cc | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/lily/tie-performer.cc b/lily/tie-performer.cc index 58bc879ec1..fd3c0bbb65 100644 --- a/lily/tie-performer.cc +++ b/lily/tie-performer.cc @@ -90,7 +90,10 @@ Tie_performer::start_translation_timestep () void Tie_performer::stop_translation_timestep () { - if (ties_created_) + // Clear tie information if we created ties. If we didn't create ties, + // We might have dangling open ties like c~ d. Close them, unless we have + // tieWaitForNote set... + if (ties_created_ || !to_boolean (get_property ("tieWaitForNote"))) { heads_to_tie_.clear (); ties_created_ = false; @@ -117,8 +120,8 @@ ADD_TRANSLATOR (Tie_performer, "", /* read */ - "tieMelismaBusy", + "tieWaitForNote", /* write */ - "" + "tieMelismaBusy" ); -- 2.39.5