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
[email protected]
https://lists.gnu.org/mailman/listinfo/lilypond-user
_______________________________________________
lilypond-user mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/lilypond-user