lilypond-user
[Top][All Lists]
Advanced

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

Re: Colouring grobs with \ed function and disappearing bar


From: Gianmaria Lari
Subject: Re: Colouring grobs with \ed function and disappearing bar
Date: Wed, 20 Sep 2017 23:16:42 +0200

I'm sorry not having been more clear. Yes, as pointed out by David, in my second example the bar line is gone.

* * * 
I tried a very rough solution that apparently work (but please if there are any other and simpler solution you're welcome)

\version "2.19.65"
myGrey =
  \tweak color
    #(lambda (grob)
      (ly:grob-set-property! (ly:spanner-bound grob RIGHT) 'color grey)
      grey)
  \etc

evg = {
  \override NoteHead.color = #grey
  \override Flag.color = #grey
  \override Beam.color = #grey
  \override Dots.color = #grey
  \override Stem.color = #grey
  %\override Tie.color = #grey
}

rvg = {
  \revert NoteHead.color
  \revert Flag.color
  \revert Beam.color
  \revert Dots.color
  \revert Stem.color
  %\revert Tie.color
}  

\fixed c'' {
  \partial 4 c4 -\myGrey ~
  \partial 2. \evg c2. \rvg
}

Best regards, g.

reply via email to

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