lilypond-user
[Top][All Lists]
Advanced

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

Re: Hide time signature numerator?


From: David Nalesnik
Subject: Re: Hide time signature numerator?
Date: Thu, 3 May 2012 10:00:41 -0500

Hi Owain,

On Thu, May 3, 2012 at 9:53 AM, James Worlton <address@hidden> wrote:
On Thu, May 3, 2012 at 9:48 AM, Kieren MacMillan
<address@hidden> wrote:
> Hi James,
>
>> http://lsr.dsi.unimi.it/LSR/Item?id=609
>> instead?
>> looks quite straightforward
>
> … as long as you also add an appropriate offset, so that the single-digit time signature remains "where it's supposed to" (i.e., top-aligned with the staff).
> =)
>
> Cheers,
> Kieren.

Except that the original request was to *hide* the top number and just show the
denominator...

You could also try something like this:

\version "2.15.37"
            
#(define time-signature-hide-numerator
  (lambda (grob)
    (let ((denom (number->string (cdr (ly:grob-property grob 'fraction)))))
      (grob-interpret-markup grob
        (make-override-markup '(baseline-skip . 0)
            (make-center-column-markup
              (list
                (make-strut-markup)
                (make-number-markup denom))))))))
              
\relative c'' {
  \time 3/4
  \override Staff.TimeSignature #'stencil = #time-signature-hide-numerator
  c d e
}

Hope this helps!

David


reply via email to

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