lilypond-user
[Top][All Lists]
Advanced

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

Re: Coloring volta bracket


From: Pierre Perol-Schneider
Subject: Re: Coloring volta bracket
Date: Sun, 10 Apr 2016 11:05:46 +0200

Hi Spela,

I do not have the v13.2 but whith v14.2 it seems to work fine:

\version "2.14.2"

#(define (override-color-for-all-grobs color)
  (lambda (context)
   (let loop ((x all-grob-descriptions))
    (if (not (null? x))
     (let ((grob-name (caar x)))
      (ly:context-pushpop-property context grob-name 'color color)
       (loop (cdr x)))))))

{
  \context Score \applyContext #(override-color-for-all-grobs (x11-color 'blue))
  \repeat volta 2 { c'1 }
  \alternative {{ c' } { r }}
}

HTH,
Pierre

2016-04-10 10:31 GMT+02:00 SpelaK <address@hidden>:
I have some problems coloring volta bracket. Using 2.13.2 version of Lilypond.
I would like to color all staff objects.

-----------------
If I use this command, it colors everything automatically, except the volta
bracket:

#(define (override-color-for-all-grobs color)
  (lambda (context)
   (let loop ((x all-grob-descriptions))
    (if (not (null? x))
     (let ((grob-name (caar x)))
      (ly:context-pushpop-property context grob-name 'color color)
       (loop (cdr x)))))))


\applyContext #(override-color-for-all-grobs (x11-color 'blue))

-----------------
If I use these comands, I do not find the right command for the Volta-engraver:

 \override NoteHead #'color = #blue
 \override Stem #'color = #blue
 \override Staff.BarLine #'color = #blue
 \override Staff.TimeSignature #'color = #blue
 \override Staff.Clef #'color = #blue
 \override Staff.StaffSymbol #'color = #blue
 \override Staff.KeySignature #'color = #blue




_______________________________________________
lilypond-user mailing list
address@hidden
https://lists.gnu.org/mailman/listinfo/lilypond-user


reply via email to

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