lilypond-user
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to input a time signature in \markup?


From: Neil Puttock
Subject: Re: How to input a time signature in \markup?
Date: Mon, 13 Apr 2009 16:18:01 +0100

2009/4/13 Simon Bailey <address@hidden>:
>
> On Apr 13, 2009, at 3:17 PM, Wei-Wei Guo wrote:
>>
>> Combining your solutions, the following way is the better, but still to
>> long...
>>
>>  \markup{ \override #'(baseline-skip . 1) {\center-column {\number 2
>> \number 4}}}
>
>
> define this as a variable, then you only have to type it once:

If you need to produce several different time signature markups, you
could create a new markup command:

#(define-markup-command (timesig layout props numerator denominator)
   (number? number?)
   (interpret-markup layout props
                     (markup
                      #:override '(baseline-skip . 0)
                      #:number
                      (make-center-column-markup
                       (map number->string (list numerator denominator))))))

\markup \timesig #3 #4

Regards,
Neil




reply via email to

[Prev in Thread] Current Thread [Next in Thread]