Hello Calvin, is this to your liking?
Cheers,
Valentin
Am Montag, 28. Februar 2022, 09:34:01 CET schrieb Calvin Ransom:
> Hello everyone,
>
> Can you help me create a time signature that has spacing like the attached?
> I would like to have the numerator centred near the 4th line and the
> denominator centred near the 2nd line with space in between the characters.
> I have figured out how to adjust the font size but I have not been able to
> figure out how to adjust the placement of the individual characters. I have
> included a link to the relevant part of the internals reference I used.
> %%%% SNIPPET BEGINS %%%%
> \version "2.22.1"
> {
> \once \override Staff.TimeSignature.font-size =#'-2.1
> \set Staff.timeSignatureFraction = #'(3 . 2)
> a'1.
> }
> %%%% SNIPPET ENDS %%%%
> [cid:[email protected]]
> 3.1.130
> TimeSignature<http://lilypond.org/doc/v2.22/Documentation/internals/timesig
> nature>
{
\numericTimeSignature
c''
}
\layout {
\override Staff.TimeSignature.stencil =
#(lambda (grob)
(let* ((frac (ly:grob-property grob 'fraction))
(numr (car frac))
(denr (cdr frac))
(num (if (markup? numr) numr (format #f "~a" numr)))
(den (if (markup? denr) denr (format #f "~a" denr)))
(det (ly:grob-property grob 'details))
(gap (assoc-get 'gap det 0))
(nm (ly:stencil-aligned-to (grob-interpret-markup grob (markup #:dynamic num)) X CENTER))
(dm (ly:stencil-aligned-to (grob-interpret-markup grob (markup #:dynamic den)) X CENTER))
(tst (ly:stencil-aligned-to (ly:stencil-combine-at-edge nm Y DOWN dm gap) Y CENTER)))
tst))
\override Staff.TimeSignature.details.gap = 0.3
\override Staff.TimeSignature.font-size = -2
}
signature.asc
Description: This is a digitally signed message part.
