Here's an example:

  \version "2.16.1"
  <<
    % expected output: c||ccc, actual output: c||c||c||c||
    { c' \set Staff.whichBar = "||" c' c' c' }
    % expected output: c||ccc|cccc, actual output: c||ccccccc
    { c' \once \set Staff.whichBar = "||" c' c' c' c' c' c' c' }
  >>


On Sat, Nov 24, 2012 at 3:56 PM, Colin Hall <colingh...@gmail.com> wrote:
>
> On Sat, Nov 24, 2012 at 10:13:25PM +0000, Ben Rudiak-Gould wrote:
>> The 2.16 documentation says that \set Staff.whichBar = "|:" "will create a
>> start-repeat bar in this staff only". What it actually seems to do in 2.16.1 
>> is
>> insert a start-repeat bar after every note in that staff until the end of the
>> score. I haven't looked at the code but I guess that it's clearing
>> Timing.whichBar even if whichBar was actually set in a different context.
>>
>> The obvious workaround, \once \set Staff.whichBar = "|:", prints the repeat 
>> bar
>> correctly but then never prints any automatic bar lines in that staff until 
>> the
>> end of the piece. I think this may be a bug introduced by
>> codereview.appspot.com/4810042, which never unsets a \once \set variable 
>> even if
>> it was unset before.
>
> Thanks for the very thorough-going bug report, Ben.
>
> Could you send a tiny example that demonstrates the unexpected
> behaviour?
>
> Cheers,
> Colin.
>
> --
>
> Colin Hall

_______________________________________________
bug-lilypond mailing list
bug-lilypond@gnu.org
https://lists.gnu.org/mailman/listinfo/bug-lilypond

Reply via email to