|
From: | Han-Wen Nienhuys |
Subject: | Re: A lazy \clef command |
Date: | Wed, 20 Jul 2005 01:06:10 +0200 |
User-agent: | Mozilla Thunderbird 1.0.2-6 (X11/20050513) |
address@hidden 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 - address@hidden - http://www.xs4all.nl/~hanwen
[Prev in Thread] | Current Thread | [Next in Thread] |