Thomas Morley <thomasmorle...@googlemail.com> writes: > Why use a function at all? > > \version "2.16.2" > > isAmbitus = ##f > > #(define includeAmbitus > (if isAmbitus > #{ \with { \consists "Ambitus_engraver" } #} > #{ \with { } #})) > > \score { > \new Voice = "one" \includeAmbitus {e' f' g'} > } > > Seems to work.
Sure, but the behavior of includeAmbitus depends on the value of isAmbitus at the time of its definition. Subsequent changes of isAmbitus will no longer affect includeAmbitus. -- David Kastrup _______________________________________________ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user