lilypond-user
[Top][All Lists]
Advanced

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

Re: Coloring just one note in a chord


From: Knute Snortum
Subject: Re: Coloring just one note in a chord
Date: Sat, 20 Aug 2022 10:53:46 -0700

On Sat, Aug 20, 2022 at 10:25 AM DoubleFelix <doublef3lix@gmail.com> wrote:
>
> I have a basic staff defined like so:
>
> \version "2.22.2"
> \language "english"
> \new Staff {
> \key c \major
> \clef treble
> \numericTimeSignature
> <
> f'
> g'
> d'
> >1
> \bar "|."
> }
>
> I want to make the g' note head colored in green, but if I try this, I get 
> syntax errors about an unexpected \override:
> \override NoteHead.color = SeaGreen
> \override Stem.color = SeaGreen
> g'
> \revert NoteHead.color
> \revert Stem.color
>
> What am I doing wrong?
>
> Thanks,
> Felix

I think what you need is "\single" for the override of the notehead in
the chord, but if you want that stem colored green, you should
\override the whole chord.

%%%
\version "2.22.2"
\language "english"
\new Staff {
  \key c \major
  \clef treble
  \numericTimeSignature
  \override Stem.color = SeaGreen
  <
  f'
  \single \override NoteHead.color = SeaGreen
  g'
  d'
  >2
  \revert Stem.color
  c'
  \bar "|."
}
%%%

--
Knute Snortum



reply via email to

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