[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re:how to color a repeat bar line?
From: |
Patrick Karl |
Subject: |
Re:how to color a repeat bar line? |
Date: |
Wed, 03 Aug 2011 14:32:32 -0500 |
>
> Message: 8
> Date: Wed, 3 Aug 2011 20:36:58 +0200
> From: Xavier Scheuer <address@hidden>
> To: harm6 <address@hidden>
> Cc: address@hidden
> Subject: Re: how to color a repeat bar line?
> Message-ID:
> <address@hidden>
> Content-Type: text/plain; charset=UTF-8
>
> 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
I agree, it's a nice one. I might note, however, that this solution is closely
connected to the "\break" that precedes the bar line I'm trying to color.
Remove the break and the coloration disappears. Is it possible to color just
the initial repeat bar line that occurs in the middle of a line?
- Re:how to color a repeat bar line?,
Patrick Karl <=