[EMAIL PROTECTED] wrote:
I would need a lazy "clef" command, which would only change the
key if required: something such as \lazyClef treble that would
be equivalent to the \clef treble command if the current clef
is not the treble, and do nothing otherwise.
Can this be achieved using functions or any other mechanism ?
it would be something along the lines of
\applycontext #(lambda (context)
(if (not (eq? (ly:contxet-property context 'clefGlyph) "clefs.G"))
(begin
(ly:context-set-property! context 'clefGlyph "clefs.G")
...more property settings...
)))
Then you have to put that in the form of a music function.
--
Han-Wen Nienhuys - [EMAIL PROTECTED] - http://www.xs4all.nl/~hanwen
_______________________________________________
lilypond-user mailing list
lilypond-user@gnu.org
http://lists.gnu.org/mailman/listinfo/lilypond-user