bug-lilypond
[Top][All Lists]
Advanced

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

Re: color notes - strange colouring


From: Federico Bruni
Subject: Re: color notes - strange colouring
Date: Sat, 10 Aug 2013 15:00:53 +0200

2013/8/10 bb <address@hidden>

>
> song = {
>       \override NoteHead.color = #red
>       \override Stem.color = #red
>       \override Beam.color = #red
>     e8 d
>       \override NoteHead.color = #black
>       \override Stem.color = #black
>       \override Beam.color = #black
>     d c
>   }
>
> \score {
>   <<
>     \new Staff \relative c' {
>         \song
>     }
>
>     \new TabStaff {
>        \tabFullNotation
>     \stemDown
>      \song
>     }
>   >>
> }
>

I guess that LilyPond can't colour the same beam red and black, so you have
to manually break it.
And you need to override TabNoteHead as well.
I think that this is what you want to see:

song = {
      \override NoteHead.color = #red
      \override TabNoteHead.color = #red
      \override Stem.color = #red
      \override Beam.color = #red
    e8[ d]
      \override NoteHead.color = #black
      \override TabNoteHead.color = #black
      \override Stem.color = #black
      \override Beam.color = #black
    d[ c]
  }

\score {
  <<
    \new Staff \relative c' {
        \song
    }

    \new TabStaff {
       \tabFullNotation
    \stemDown
     \song
    }
  >>
}


reply via email to

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