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: Malte Meyn
Subject: Re: Key Signature only on first staff
Date: Tue, 21 Jul 2015 21:56:09 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.7.0

You have to insert the \omit commands not in the first bar but later. The following code hopefully does what you want. Explanation: I used a spacer rest (s1) in global. Because this would move not only the \omits but also the beginning of the melody, I moved the \global from the beginning of the melody to the \new Staff, where melody and global are now simultaneous.

\version "2.19.22"

global = {
  \time 4/4
  \tempo 4=90
  \key b \major
  s1
  \omit Staff.KeySignature
  \omit Staff.Clef
}

melody = \relative c' {
  \repeat unfold 10 { cis dis e fis }
}

wordsOne = \lyricmode{
  \set stanza = "1"
  c d e f g
}
wordsTwo = \lyricmode{
  \set stanza = "2"
  c d e f g
}

\score {
  <<
    \new Staff <<
      \global
      \melody
    >>
    \addlyrics { \wordsOne }
    \addlyrics { \wordsTwo }
  >>
}

Am 21.07.2015 um 21:48 schrieb Brother Gabriel-Marie:

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 { }
}



reply via email to

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