On 14 August 2011 08:48, Jan-Peter Voigt <jp.vo...@gmx.de> wrote:

> I will optimize and use overrides for this engraver - the markup is a first
> shot. If I have time and/or a need, I will look for another context than
> Dynamics.

I don't think you need a new engraver for this; overriding the stencil
should suffice since the time signature fraction is passed to
TimeSignature via the property 'fraction:

\override TimeSignature #'stencil =
#(lambda (grob)
    (let ((frac (ly:grob-property grob 'fraction)))
      (grob-interpret-markup grob
           (markup #:translate '(0 . 2) #:concat (
                                              #:bold (format "~a " (car frac))
                                              #:translate '(-2 . -2)
#:draw-line '(3 . 3)
                                              #:translate '(-2 . -3.5)
#:smaller #:smaller #:note (format "~a" (cdr frac)) UP)))))

Cheers,
Neil

_______________________________________________
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user

Reply via email to