2014-05-17 0:38 GMT+02:00 Urs Liska <u...@openlilylib.org>: > Am 16.05.2014 09:41, schrieb d...@gnu.org:
>> >> Well, we have \omit already. What if we had >> \appearance [markup] [grobname or music] >> >> Which would basically be the syntactic sugar for overriding the stencil >> with an appropriate grob-interpret-markup? >> >> That way one could just define some markup function for formatting time >> signatures and use it either in markup contexts or indeed for overriding >> a time signature. > > > If I understand you correctly this would mean that one would write > > \appearance \fractionList #'((6 8)(5 4)) Score.TimeSignature > > instead of > > \override Score.TimeSignature.stencil = \fractionList #'((6 8)(5 4)) > > ? I think David thought of something at the lines of the following function: appearance = #(define-music-function (parser location mrkp item) (markup? symbol-list-or-music?) (let ((stil (lambda (item) (grob-interpret-markup item mrkp)))) #{ \tweak stencil #stil #item #})) \relative c' { \appearance \markup "XY" Staff.Clef \appearance \markup \override #'(baseline-skip . 0) \override #'(word-space . 0.2) \line { \center-column { \number 3 \number 4 } \center-column { \number 6 \number 8 } } Score.TimeSignature c1 } Cheers, Harm _______________________________________________ lilypond-devel mailing list lilypond-devel@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-devel