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: harm6
Subject: Re: how to color a repeat bar line?
Date: Tue, 2 Aug 2011 17:09:28 -0700 (PDT)


jpatk wrote:
> 
> I would like to color the initial repeat bar line of a volta.  
> 

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 }
} 

Greetings,
  Harm

-- 
View this message in context: 
http://old.nabble.com/how-to-color-a-repeat-bar-line--tp32182164p32182316.html
Sent from the Gnu - Lilypond - User mailing list archive at Nabble.com.




reply via email to

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