4

How do you color chords in LilyPond? For example, in the following fragment, how can you print chord names in red?

<<
\chords {
  r8 d4 g4 a4 d4 d4:sus4 d4
}
\relative { 
  \time 2/4 \key d \major
  \partial 8
   fis16 e16 fis8 d8 d8
   e16 fis16 e8. d16  d4
  \times 2/3 {g8 fis8 e8} fis4 \bar "|"
}
>>

enter image description here

1 Answer 1

4

Within your \chords block, include \override ChordName.color = #red. For instance:

\chords {
  \override ChordName.color = #red
  r8 d4 g4 a4 d4 d4:sus4 d4
}

You may want to change some other issues in your code, like changing \key d to \key d \major.

1
  • Thanks, I fixed some other issues, as you suggested.
    – hemme
    Commented Nov 5, 2019 at 22:20

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.