|
From: | David Kastrup |
Subject: | Re: modular "markup" and arguments |
Date: | Tue, 05 Nov 2013 21:08:17 +0100 |
User-agent: | Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux) |
Paul Morris <address@hidden> writes: > But I think what you really want is a music function: > > \version "2.17.29" > > boo = > #(define-music-function > (parser location the-music) > (ly:music?) > #{ > \override NoteHead.color = #red > #the-music > \revert NoteHead.color > #}) > > \relative c' { c4 d e f \boo { g a b } c d e } For such fixed override/revert pairings you should write \temporary\override in the music function instead of just \override: otherwise any previous \override NoteHead.color = #blue will get overwritten and not get restored afterwards. -- David Kastrup
[Prev in Thread] | Current Thread | [Next in Thread] |