I was asked by someone how much effort it is in LilyPond to create a
time signature similar to the one in this post:
http://www.finalemusic.com/blog/new-features-next-version-finale/ but
additionally behaving like a watermark (i.e. grey and in the background).

I came up with the attached proof-of-concept quickly, but I have one
more question: is it possible to make the time signature automatically
top-align to the topmost staff line of the topmost staff in the system,
or to center it on the StaffGroup? manually editing Y-offset doesn't
seem like a good idea, as I don't have the impression there's an easy
relation that could be set up between font-size and Y-offset.

Experimenting with self-alignment-Y didn't seem to have any useful effect.

TIA
Urs

\version "2.19.47"

\layout {
  \context {
    \Score {
      \override TimeSignature.font-size = 14
      \override TimeSignature.X-extent = #'(0 . 0)
      \override TimeSignature.space-alist.first-note = #'(fixed-space . 0)
      \override TimeSignature.color = #'(0.8 0.8 0.9)
      \override TimeSignature.layer = -1

      % More wishes:
      % - automatically top-align time signature with the topmost staff
      % - make the visibility automatic (i.e. remove TimeSignature from
      %   all Staves except the top one)

      \override TimeSignature.Y-offset = -14
    }
  }
}

\score {
    \new StaffGroup \with {
      \consists Time_signature_engraver
    } <<
    \new GrandStaff <<
      \new Staff \with {
        \omit TimeSignature
      }
      \relative c' {
        \time 7/4
        c1 c2.
        \time 5/4
        c2. c2
      }
      \new Staff \with {
        \omit TimeSignature
      }
      \relative c {
        \clef bass
        c1 c2.
        c2. c2
      }
    >>
    \new Staff \with {
      \omit TimeSignature
    }
    \relative c'' {
      c1 c2. c2. c2
    }
  >>
}
_______________________________________________
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user

Reply via email to