-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci: fix build job in github workflows
Signed-off-by: Davide Madrisan <[email protected]>
- Loading branch information
Showing
1 changed file
with
76 additions
and
0 deletions.
There are no files selected for viewing
76 changes: 76 additions & 0 deletions
76
src/johann-sebastian-bach/goldberg-variationen-BWV988/macros.ly
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,76 @@ | ||
greyTextColor = #(x11-color "dimgray") | ||
|
||
melodyFirstColor = #(x11-color 'darkblue) | ||
melodySecondColor = #(x11-color 'darkred) | ||
melodyThirdColor = #(x11-color 'darkgreen) | ||
themeColor = #(x11-color 'darkcyan) | ||
|
||
markWithColorExtended = | ||
#(define-music-function (color music) | ||
(color? ly:music?) | ||
"Change the color of the given note." | ||
#{ | ||
%\stopStaff | ||
%\startStaff | ||
\override Accidental.color = #color | ||
\override Beam.color = #color | ||
\override Dots.color = #color | ||
\override NoteHead.color = #color | ||
\override Rest.color = #color | ||
\override Script.color = #color | ||
\override Stem.color = #color | ||
\override Tie.color = #color | ||
%\override Staff.LedgerLineSpanner.color = #color | ||
#music | ||
%\revert Staff.LedgerLineSpanner.color | ||
\revert Script.color | ||
\revert Rest.color | ||
\revert NoteHead.color | ||
\revert Dots.color | ||
\revert Accidental.color | ||
\unHighlightColor | ||
%\stopStaff | ||
%\startStaff | ||
#}) | ||
|
||
highlightTheme = | ||
#(define-music-function (music) | ||
(ly:music?) | ||
"Colour the given note(s) to highlight the theme" | ||
#{ \markWithColorExtended \themeColor #music #}) | ||
#(define-markup-command (bulletTheme layout props) () | ||
(interpret-markup layout props | ||
#{ \markup \with-color #themeColor \char ##x25a0 #})) | ||
|
||
highlightMelodyFirst = | ||
#(define-music-function (music) | ||
(ly:music?) | ||
"Colour the given note(s) to highlight melody" | ||
#{ \markWithColorExtended \melodyFirstColor #music #}) | ||
#(define-markup-command (bulletMelodyFirst layout props) () | ||
(interpret-markup layout props | ||
#{ \markup \with-color #melodyFirstColor \char ##x25a0 #})) | ||
|
||
highlightMelodySecond = | ||
#(define-music-function (music) | ||
(ly:music?) | ||
"Colour the given note(s) to highlight melody" | ||
#{ \markWithColorExtended \melodySecondColor #music #}) | ||
#(define-markup-command (bulletMelodySecond layout props) () | ||
(interpret-markup layout props | ||
#{ \markup \with-color #melodySecondColor \char ##x25a0 #})) | ||
|
||
highlightMelodyThird = | ||
#(define-music-function (music) | ||
(ly:music?) | ||
"Colour the given note(s) to highlight melody" | ||
#{ \markWithColorExtended \melodyThirdColor #music #}) | ||
#(define-markup-command (bulletMelodyThird layout props) () | ||
(interpret-markup layout props | ||
#{ \markup \with-color #melodyThirdColor \char ##x25a0 #})) | ||
|
||
unHighlightColor = { | ||
\revert Tie.color | ||
\revert Stem.color | ||
\revert Beam.color | ||
} |