lilypond-user
[Top][All Lists]
Advanced

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

Re: centering different time signatures


From: Pierre Perol-Schneider
Subject: Re: centering different time signatures
Date: Sat, 11 Apr 2015 22:02:16 +0200

Hi Kieren,

I'm not sure you'll like it since it is no incantation but a workaround.
Though it's well centered, so here it goes:

shortTSmusic = {
  \tweak layer #-1
  \tweak stencil
      #(lambda (grob)
         (grob-interpret-markup grob
           #{
               \markup
               \center-column {
                 \with-color #white
                 \number "12345"
                 \vspace #-1
                 \musicglyph #"timesig.C44"
               }
           #}))
  \time 4/4 g'4
}


Cheers,
Pierre

2015-04-11 20:46 GMT+02:00 Kieren MacMillan <address@hidden>:
Hi all,

In the snippet included below, I’d like to have the two time signatures center-aligned, but haven’t found the correct incantation.
(Gould has nothing specific to say about this situation, but her polymetric time signatures *appear* to be centre-aligned, and not left-aligned like Lily’s default.)
Any help would be appreciated.

Thanks,
Kieren.
________________________

\version "2.19.18"

\layout {
  \context {
    \Score
    \remove "Timing_translator"
    \remove "Default_bar_line_engraver"
  }
  \context {
    \Staff
    \consists "Timing_translator"
    \consists "Default_bar_line_engraver"
  }
}

shortTSmusic = {
  \time 4/4 g'4
}

longTSmusic = {
  \time 12345/4 g'4
}

\score {
  <<
    \new Staff \shortTSmusic
    \new Staff \longTSmusic
  >>
}
_______________________

Kieren MacMillan, composer
www:  <http://www.kierenmacmillan.info>
email:  address@hidden


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


reply via email to

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