From fe86bcbd3c74223925c99e06cd830cd752c7746e Mon Sep 17 00:00:00 2001 From: David Kastrup Date: Thu, 4 Sep 2014 11:18:06 +0200 Subject: [PATCH] Issue 4028: Automatic beaming of grace notes inhibits beam subdivision While the whole extend_mom_ logic seems rather fishy to me (it probably should be reset to a sane value at some other location per-beam) and I don't have an actual idea why the Grace_auto_beam_engraver would be involved at all here, initializing extend_mom_ to a value before all grace notes seems to do the trick for this report. --- lily/auto-beam-engraver.cc | 1 + 1 file changed, 1 insertion(+) diff --git a/lily/auto-beam-engraver.cc b/lily/auto-beam-engraver.cc index c48fe6fe33..d9a3dd8ff6 100644 --- a/lily/auto-beam-engraver.cc +++ b/lily/auto-beam-engraver.cc @@ -153,6 +153,7 @@ Auto_beam_engraver::Auto_beam_engraver () process_acknowledged_count_ = 0; stems_ = 0; shortest_mom_ = Moment (Rational (1, 4)); + extend_mom_ = Moment (-1); finished_beam_ = 0; finished_grouping_ = 0; grouping_ = 0; -- 2.39.2