lilypond-user
[Top][All Lists]
Advanced

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

Re: how to color a repeat bar line?


From: Xavier Scheuer
Subject: Re: how to color a repeat bar line?
Date: Wed, 3 Aug 2011 20:36:58 +0200

On 3 August 2011 02:09, harm6 <address@hidden> wrote:
>
> Hi,
>
> try:
>
> \version "2.14.1"
>
> #(define (color-at-line-begin g)
>  (if (and (ly:item? g)
>           (equal? (ly:item-break-dir g) RIGHT))
>      (ly:grob-set-property! g 'color red)))
>
> \relative g' {
>        \repeat volta 2 { a b c d }
>        \break
>        \once\override Staff.BarLine #'after-line-breaking =
> #color-at-line-begin
>        \repeat volta 2 { d c b a }
> }
>

Nice one!
Could you add it to the LSR?

Cheers,
Xavier

-- 
Xavier Scheuer <address@hidden>



reply via email to

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