[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: \alternative behaving incorrectly, and causing unending loop
From: |
Marek Klein |
Subject: |
Re: \alternative behaving incorrectly, and causing unending loop |
Date: |
Tue, 24 Apr 2012 14:53:54 +0200 |
Hello,
2012/4/24 Leo Adamson <address@hidden>
> > 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. }
> }
>
I am not sure that I understand what you want to achieve; how do you like
this?:
\relative c'' {
\partial 8
c8
\repeat volta 2 { c2~c4. b8 }
\alternative { { b2~b4. c8 } { b1 } }
\repeat volta 2 { \time 3/4 c2. }
}
Marek Klein
bug squad