-
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.
J.S. Bach: Chorale Prelude BWV659 - several enhancements and paginati…
…on updates Signed-off-by: Davide Madrisan <[email protected]>
- Loading branch information
Showing
4 changed files
with
113 additions
and
39 deletions.
There are no files selected for viewing
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
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
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
46 changes: 46 additions & 0 deletions
46
src/johann-sebastian-bach/chorale-preludes/BWV659/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,46 @@ | ||
greyTextColor = #(x11-color "dimgray") | ||
|
||
% set ""subjectFirstColor to | ||
% subjectFirstColor = #(x11-color 'black) | ||
% to disable the subject coloring feature | ||
cantusFirmusColor = #(x11-color 'darkblue) | ||
|
||
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 | ||
\unHighlightCF | ||
%\stopStaff | ||
%\startStaff | ||
#}) | ||
|
||
highlightCF = | ||
#(define-music-function (music) | ||
(ly:music?) | ||
"Colour the given note(s) to highlight fugues (first) subjets" | ||
#{ \markWithColorExtended \cantusFirmusColor #music #}) | ||
|
||
unHighlightCF = { | ||
\revert Tie.color | ||
\revert Stem.color | ||
\revert Beam.color | ||
} |