lilypond-user
[Top][All Lists]
Advanced

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

Re: Key signature on multiple staves


From: Jan-Peter Voigt
Subject: Re: Key signature on multiple staves
Date: Thu, 31 Aug 2017 12:23:24 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.2.1

Hi Robert,

just in short: the problem is resolved for a long time - or better there is best practice or advisory for your question: You have to split the music into multiple layers of information in different variables.
For example:
%%%%%%%%%%%%%%%%%%
% only the general part of th music
global = { \time 3/4 \key g \major s1*10 \bar "|." }
% only the music without any global info (key- or time-sigs)
partA = { c''4 }
partB = { c''4 }

\new StaffGroup <<
  \new Staff <<
    \global
    \new Voice { \partA }
  >>
  \new Staff <<
    \global
    \new Voice { \partB }
  >>
>>
%%%%%%%%%%%%%%%%%%

Now all global information is placed in any Staff containing \global.
The reason the time signature appears in every Staff if it is only declared once is that the Timing (normally/per default) is processed in the global Staff and therefore affects all contexts of the Score. The Key signature is (normally/per default) processed by the Staff context. This setup allows (for example) transposing instruments in a score with a different key signature.

HTH
Jan-Peter


Am 31.08.2017 um 12:00 schrieb Robert Murdoch:
Hi,

How do I set the key signature to appear on multiple staves without manually setting \key for every staff? This question was asked around ten years ago (see http://lists.gnu.org/archive/html/lilypond-user/2007-09/msg00333.html) and still doesn't seem to have been resolved.

Thank you for your time.


_______________________________________________
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]