Skip to content

Commit

Permalink
J.S. Bach: Die Kunst der Fuge (BWV 1080) - list of subjects: color Le…
Browse files Browse the repository at this point in the history
…dgerLineSpanner

Signed-off-by: Davide Madrisan <[email protected]>
  • Loading branch information
madrisan committed Mar 9, 2024
1 parent 84871a5 commit c0d91cc
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,14 @@ CommonSubjectIV = {
}
CommonSubjectV = {
\commonSettings
| \red d'2^\markup \abs-fontsize #8 \italic { "14-notes version of the main subject" }
| \red d'2^\markup \abs-fontsize #8 \italic {
"14-notes version of the main subject"
"(the notes in red correspond to the short version)"
}
\once\override Stem.length = #6 \red a'4. g8
| \red f4. e8 \red d2 | \red cis \red d4. \red e8 | \red \red f2~ \red f8 \red g \red f \red e
| \red f4. e8 \red d2
| \red cis \red d4. \red e8
| \red \red f2~ \red f8 \red g \red f \red e
| \red d4 s
}

Expand Down
24 changes: 17 additions & 7 deletions src/johann-sebastian-bach/die-kunst-der-fuge-BWV1080/macros.ly
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,23 @@ greyTextColor = #(x11-color "dimgray")
lightGrey = #(x11-color 'grey65)
middleGrey = #(x11-color 'grey45)

red = {
\once\override Accidental.color = #(x11-color 'red)
\once\override NoteHead.color = #(x11-color 'red)
%\once\override Stem.color = #(x11-color 'red)
%\once\override Flag.color = #(x11-color 'black)
%\once\override Staff.LedgerLineSpanner.color = #(x11-color 'red)
}
red =
#(define-music-function (music)
(ly:music?)
"Change the color of the given note."
#{
\stopStaff
\startStaff
\override Accidental.color = #(x11-color 'red)
\override NoteHead.color = #(x11-color 'red)
\override Staff.LedgerLineSpanner.color = #(x11-color 'red)
#music
\revert Staff.LedgerLineSpanner.color
\revert NoteHead.color
\revert Accidental.color
\stopStaff
\startStaff
#})

staffLower = { \change Staff = "lower" }
staffUpper = { \change Staff = "upper" }
Expand Down

0 comments on commit c0d91cc

Please sign in to comment.