[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Coloring a staff line.
From: |
Thomas Morley |
Subject: |
Re: Coloring a staff line. |
Date: |
Sun, 15 Mar 2020 22:37:50 +0100 |
Am So., 15. März 2020 um 21:10 Uhr schrieb Hwaen Ch'uqi <address@hidden>:
>
> Greetings,
>
> I have customized a clefless staff with eleven lines, and I would like
> the center line to be colored red. I thought I followed properly this
> LSR snippet:
>
> http://lsr.di.unimi.it/LSR/Item?id=700
>
> But the center line is still not red. Below is as "simple" a code as I
> can make, and I have attached a pdf of the output.
> \new Staff \with {
> \override StaffSymbol.line-count = #11
> \override Staff.StaffSymbol.stencil = #(color-staff-lines #f #f #f
^^^^^^^^^^^^^^
> #f #f red #f #f #f #f #f)
> \remove "Clef_engraver"
> }
Hi,
as opposed to the lsr-snippet you've put the call into \with
Then you need to delete the context-setting, i.e.
\with {
...
\override StaffSymbol.stencil ...
...
}
will work.
HTH,
Harm