lilypond-user
[Top][All Lists]
Advanced

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

Re: TimeSig staff in sync with PianoStaff [TIP/TRICK]


From: Kieren Richard MacMillan
Subject: Re: TimeSig staff in sync with PianoStaff [TIP/TRICK]
Date: Thu, 18 May 2006 11:12:04 -0400

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.





reply via email to

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