lilypond-user
[Top][All Lists]
Advanced

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

Re: Key Signature only on first staff


From: Simon Albrecht
Subject: Re: Key Signature only on first staff
Date: Tue, 21 Jul 2015 21:02:46 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.8.0

Am 21.07.2015 um 20:29 schrieb Brother Gabriel-Marie:
Mr. Albrecht,
Where do I add the
\omit Staff.KeySignature
in my composition?
After the first note or measure, so it affects all but the first key signatures.

You are using a different setup.
Or do I have to change the way I'm laying it out?
You have to do nothing. Laying out one’s LilyPond files can be a quite personal decision on what you like best; I was merely proposing a way which proves to be robust for larger and more complicated setups also.

In general, I’d suggest the Learning Manual as a must-read gentle introduction to LilyPond: <http://lilypond.org/doc/v2.18/Documentation/learning/index.html>.

Happy Ponding,
Simon


global = {
    \time 4/4
    \tempo 4=90
    \key b \major
}

melody = \relative c' {
    \global
   ...the music...
}

wordsOne = \lyricmode{
   \set stanza = "1"
    ...the lyrics...
}
wordsTwo = \lyricmode{
   \set stanza = "2"
    ...the lyrics...
}

\score {
    <<
        \new Staff {
            \melody
        }
        \addlyrics { \wordsOne }
        \addlyrics { \wordsTwo }
        \addlyrics { \wordsThree }
        \addlyrics { \wordsFour }
    >>
    \layout {
        \context {
        \Score
        }
        \context {
            \Lyrics
        }
    }
  \midi { }
}

On 7/21/2015 12:43 PM, Simon Albrecht wrote:
Hello Brother Gabriel,

Am 21.07.2015 um 19:11 schrieb BGM:
My piece is in B Major and the repetition of the key signature takes up a lot
of room on the page.

I would like to show it on the first staff only and suppress the rest.
That is unusual, but I’ve seen it done in hymn books on small formats.
What do I do?
The LilyPond command you want is very straightforward: \omit KeySignature.
I attach an example which also features a parallel music _expression_ containing layout information and omits the clefs.




reply via email to

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