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

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

Reply via email to