lilypond-user
[Top][All Lists]
Advanced

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

Re: Coloring Ledger Lines


From: David Nalesnik
Subject: Re: Coloring Ledger Lines
Date: Sun, 8 Mar 2015 11:22:52 -0500



On Sun, Mar 8, 2015 at 11:02 AM, Pierre Perol-Schneider <address@hidden> wrote:
Interesting, thanks David.
Cheers,
Pierre

To get more of the control any user would expect, you could do something like this:
\version "2.19.16"

\new Staff <<
  \repeat unfold 8 {
    \startStaff s4 \stopStaff
  }
  {
    a4
    \once \override Staff.LedgerLineSpanner.color = #blue
    a
    \once \override Staff.LedgerLineSpanner.color = #green
    a
    \once \override Staff.StaffSymbol.color = #red
    a
    a4 a a a
  }
>>

%%%%

I imagine this could be automated fairly easily.  Who knows the overhead with large scores, though!

(Aside: it might be interesting to come up with something emulating the old single-impression printing technique where staff lines, notes, and text were stamped together and inexactly aligned--http://en.wikipedia.org/wiki/History_of_music_publishing (under Rastell)  Can't come up with a good visual.)

David
 

reply via email to

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