---
** [issues:#2494] Mismatched alternative blocks with completion_heads_engraver
causes unending loop**
**Status:** Fixed
**Labels:** Fixed_2_19_0
**Created:** Tue Apr 24, 2012 08:09 AM UTC by Anonymous
**Last Updated:** Tue Jul 09, 2019 05:33 AM UTC
**Owner:** nobody
*Originally created by:* *anonymous
*Originally created by:*
[colingh...@gmail.com](http://code.google.com/u/103174888511674413504/)
Reported by Leo Adamson:
[http://lists.gnu.org/archive/html/bug-lilypond/2012-04/msg00104.html](http://lists.gnu.org/archive/html/bug-lilypond/2012-04/msg00104.html)
Original post follows:
> I'm not top posting.
% The snippet below is a minimal representation of a fairly common type of
% 17th century English dance.
% Two closely related issues:
% 1. The combination of mismatched \alternative blocks, a time signature change,
% and the Completion\_heads\_engraver causes an unending loop.
% 2. If you skip the \layout section and use the default Note\_heads\_engraver,
% or miss-out the time signature change, compilation completes,
% but bar-lines appear in the wrong places.
% This may be expected behaviour for mismatched \alternative blocks,
% and therefore not a bug. If so, please accept as a feature request that
% on entering 2nd and later \alternative blocks the beat count within the
% bar should be reset to where it was at the start of the first block.
% A complete workaround is to use \cadenzaOn inside the \alternative blocks.
% But it would be better if \alternative blocks behaved correctly on their own,
% with no workaround needed.
\version "2.14.2"
\layout \{
\context \{
\Voice
\remove "Note\_heads\_engraver"
\consists "Completion\_heads\_engraver"
\}
\}
\relative c'' \{
\partial 8
\repeat volta 2 \{ c8 c2~c4. \}
\repeat volta 2 \{ b8 \}
\alternative \{ \{ b2~b4. \} \{ b1 \} \}
\repeat volta 2 \{ \time 3/4 c2. \}
\}
---
Sent from sourceforge.net because testlilyissues-a...@lists.sourceforge.net is
subscribed to https://sourceforge.net/p/testlilyissues/issues/
To unsubscribe from further messages, a project admin can change settings at
https://sourceforge.net/p/testlilyissues/admin/issues/options. Or, if this is
a mailing list, you can unsubscribe from the mailing list.
_______________________________________________
Testlilyissues-auto mailing list
testlilyissues-a...@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/testlilyissues-auto