Hi, Mats:

You don't say how you did your TimeSig staff

The "main" one (at the top of the entire system) I'm doing in the way shown by the docs.

my guess is that it's very hard to achieve this automatically

As it turns out, I found a wonderful way to do it:

        \new PianoStaff
                %% config
                \with
                {
                        \override VerticalAlignment #'forced-distance = #10
                }
                %% staves
                <<
                        \new Staff = "pfUpper"
                                %% config
                                \with
                                {
                                        %% fake a "floating" time-signature 
staff
                                        \override TimeSignature #'font-size = #2
                                        \override TimeSignature #'extra-offset 
= #'( 0 . 7 )
                                        \override VerticalAxisGroup 
#'minimum-Y-extent = #'( -4 . 12 )
                                }
                                %% notes
                                {
                                        \pianoNotesUpper
                                }
                        \new Staff = "pfLower"
                                %% config
                                \with
                                {
                                        %% hide this staff's time sigs
                                        \override TimeSignature #'stencil = ##f
                                }
                                %% notes
                                {
                                        \pianoNotesLower
                                }
                >>

This way, the "TimeSig staff" is really just the set of time signatures from the pfUpper Staff, configured and offset to fake a separate staff -- works like a charm!

If it weren't for the fact that the top staff might change too often (with Frenched scores), I'd do the same up there, too.

Best wishes,
Kieren.



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

Reply via email to