On Thu, Jul 21, 2016 at 10:33 AM, Patrick Karl-3 [via Lilypond] <
[email protected]> wrote:
> When I use this technique in the following snippet:
>
> > \version "2.19.38"
> >
> > S = \relative g' {
> > \key g\major
> > \once \override Staff.LedgerLineSpanner.color = #red
> > \grace s128 \stopStaff \startStaff
> > c4 e c' c % 1
> > }
> >
> > PRh = \relative c'' {
> > \key g\major
> > \grace s128
> > g4 g g g % 1
> > }
> >
> > \score { <<
> > \new StaffGroup <<
> > \new Staff \with { \consists Ambitus_engraver } \S
> > >>
> > \new PianoStaff <<
> > \set PianoStaff.instrumentName = #"Piano"
> > \new Staff \PRh
> > >>
> > >>
> > \layout {}
> > }
> >
> I get the attached output, which is lovely in all respects but one: the
> PianoStaff instrument name is missing. The only way I have found to
> remedy this problem is to remove both lines containing "\grace s128",
> but, of course, then all of the ledger lines are colored red, not just
> those in the ambitus.
>
> How to fix?
>
Move the instrumentName definition to a \with block, like:
\new PianoStaff \with {
instrumentName = #"Piano"
} <<
\new Staff \PRh
>>
HTH,
Abraham
--
View this message in context:
http://lilypond.1069038.n5.nabble.com/Problem-coloring-Ambitus-ledger-lines-tp192441p192933.html
Sent from the User mailing list archive at Nabble.com._______________________________________________
lilypond-user mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/lilypond-user