lilypond-user
[Top][All Lists]
Advanced

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

Re: Problem coloring Ambitus ledger-lines


From: Thomas Morley
Subject: Re: Problem coloring Ambitus ledger-lines
Date: Sat, 9 Jul 2016 16:51:25 +0200

2016-07-09 16:22 GMT+02:00 Patrick Karl <address@hidden>:
> The following MWE:
>
> \version "2.19.38"
>
> music =  { c'4 c''' r2 }
>
> \score {
>     \new Staff \music
>     \layout {
>        \context { \Staff \consists "Ambitus_engraver"
>            \with { \override AmbitusNoteHead.color = #red
>                       \override AmbitusLine.color = #red
> %                     \override LedgerLineSpanner.color = #red
>            }
>        }
>     }
> }
>
> seems to illustrate a problem with Ambitus, namely, there doesn't seem to be
> a way to change the color of ledger lines within the Ambitus.  The output of
> the above snippet is attached; it shows the Ambitus ledger lines as black.
> Uncommenting the "\override LedgerLineSpanner.color = #red" statement
> changes the color of not only the ledger lines within the score, but also
> within the Ambitus.
>
> It looks like there should be a grob, AmbitusLedgerLineSpanner, independent
> from LedgerLineSpanner.

We have the start/stopStaff-functionality to insert changes for p.e.
StaffSymbol and LedgerLineSpanner,.

> Or am I overlooking something?

How about:

music =  {
  \once \override Staff.LedgerLineSpanner.color = #red
  \grace s128
  \stopStaff
  \startStaff
  c'4 c''' r2
}

\score {
    \new Staff \music
    \layout {
       \context {
         \Staff
         \consists "Ambitus_engraver"
         \override AmbitusNoteHead.color = #red
         \override AmbitusLine.color = #red
       }
    }
}

Cheers.
  Harm



reply via email to

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