From: Reinhold Kainhofer Date: Mon, 16 Nov 2009 17:58:19 +0000 (+0100) Subject: Fix 676: unterminated ties should not be rendered in MIDI X-Git-Tag: release/2.13.8-1~19 X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=cbd50f580edd6dfff1b44285ac6f2618fb9018c5;p=lilypond.git Fix 676: unterminated ties should not be rendered in MIDI If we have unterminated ties, clear them, unless tieWaitForNote is set. --- 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" );