lilypond-user
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: \bar "||" and \repeat around a line break


From: Thomas Morley
Subject: Re: \bar "||" and \repeat around a line break
Date: Thu, 17 Jan 2013 19:56:31 +0100

2013/1/17 Johan Vromans <address@hidden>:
> Frank Steinmetzger <address@hidden> writes:
>
>> Am Donnerstag, 17. Januar 2013, 08:28:37 schrieb Ralph Palmer:
>>> In addition, you can specify "||:", which is equivalent to "|:" except at
>>> line breaks, where it gives a double bar line at the end of the line and a
>>> start repeat at the beginning of the next line.
>>
>> Excellent. Just as I was implementing it I noticed that the \grace approach
>> caused the \breathe sign which comes right before the \bar "||" to appear
>> wrong; namely after the linebreak. The ||: approach does it right.
>
> Except that it does not work with \repeat, AFAIK.
>
> As I said earlier, I think that \bar "||" should behave like "||:" when
> followed by \repeat.
>
> -- Johan
>
> _______________________________________________
> lilypond-user mailing list
> address@hidden
> https://lists.gnu.org/mailman/listinfo/lilypond-user

How about:

\version "2.16.1"

\relative c'' {
       \time 4/4
       \repeat unfold 12 a4 %\break
       % see /ly/engraver-init.ly
       \once  \set  Score.startRepeatType = #"||:"
       \repeat volta 2 {
              \repeat unfold 20 a4
       }
       a1
       \break
       \repeat volta 2 {
              \repeat unfold 20 a4
       }
}


HTH,
  Harm



reply via email to

[Prev in Thread] Current Thread [Next in Thread]