[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Displace position of time signature
From: |
Aaron Hill |
Subject: |
Re: Displace position of time signature |
Date: |
Thu, 17 May 2018 23:29:24 -0700 |
User-agent: |
Roundcube Webmail/1.3.6 |
On 2018-05-17 19:05, Andrew Bernard wrote:
Thank you very much. The next logical (or stupid?) question is, can one
snug the notes under the time signature, as though it occupied no
space?
%%%%
\version "2.19.81"
{ \override Staff.TimeSignature.Y-offset = #4
\override Staff.TimeSignature.X-extent = #'(-2 . -2)
\override Staff.TimeSignature.X-offset = #1
\time 3/4 c'4 d' e' | \time 5/4 f'4 g' a' b' c'' }
%%%%
You should note that this example lies about the extents of the grob, so
it will very easily produce collisions that require manual adjustment to
resolve.
Regarding the snippet Karlin found, you will need to be mindful of font
size. Here is a variant that uses \abs-fontsize to ensure the results
are consistent between use in a rehearsal mark as well as being
associated with a note:
%%%%
\version "2.19.81"
#(define-markup-command (timesig layout props body) (markup-list?)
(interpret-markup layout props
#{ \markup \override #'(baseline-skip . 0) \abs-fontsize #11
\number \column $body #}))
{ \omit Staff.TimeSignature
\time 3/4 \mark \markup \timesig { 3 4 } c'4 d' e' |
\time 5/4 f'4^\markup \timesig { 5 4 } g' a' b' c'' }
%%%%
-- Aaron Hill