Urs Liska <u...@openlilylib.org> writes: > nS = > #(define-music-function (parser location color)(color?) > #{ > \override NoteHead #'layer = #2 > \override NoteHead.color = $color > \override Stem.color = #blue > \override Beam.color = #blue > \override Tie #'color = #blue > \override Slur.color = #blue > \override Dots #'layer = #2 > \override Dots #'color = #blue > \override Rest.color = #blue > #}) > > \relative c' { > c d \nS #red e( f) \nS #blue g1 > } > > You may consider using \temporary \override (rather new syntax)
\temporary \override basically only makes sense when you are doing a corresponding \revert in the same command. Note that you can with the above definition still write \temporary \nS #red c d e f \undo \nS #red in order to make a temporary change. > And you should add another function that \revert-s the properties. nSrevert = \undo \nS #red It's not even cheesy but rather the main purpose of \undo. -- David Kastrup _______________________________________________ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user