lilypond-user
[Top][All Lists]
Advanced

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

Re: How to control ordering of staves?


From: Jonathan Kulp
Subject: Re: How to control ordering of staves?
Date: Sat, 21 Feb 2009 22:45:54 -0600
User-agent: Thunderbird 2.0.0.19 (X11/20090105)

aliteralmind wrote:
Here's an image of what I keep getting:

http://jeffyepstein.com/tmp/staves_bad.gif

I'm trying to get the "clap" staff above the "voice" staff. Can someone
please help me understand how to control the ordering of staves? (I only
want the clap staff to appear for the first measure.)

This is what I'm trying to get:

http://jeffyepstein.com/tmp/staves_good.gif


Below is my LY code. Thank you for helping.


Your \score block just needed a bit of tweaking. I also took the \new Staff command out of the clap variable and put it in the \score block. Here's revised code. The output looks like what you want:

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

\version "2.12.2"

clap =  \relative c'' {
   \time 24/8
   \set Staff.instrumentName = #"Clap"
        \teeny
        \override NoteHead #'style = #'cross
        r4. b8 r4 r4. b8 r4 r4. b8^"Repeat throughout" r4 r4. b8 r4 |  }

bla = \relative c'' {
   \set Staff.instrumentName = #"Voice"
   \time 24/8
   \tempo 4.=80
   \override NoteHead #'style = #'cross
   \repeat volta 2 {  b4. r b4. r b4. r4 b8^\markup {
           \italic \left-column \small  {
                  \line{  Quiet first time  }
        \line{  Loud second time  } } }~ b4. r4. |  }
   \repeat volta 2 {  b4 b8 b4 b8 b4. b b b4 b8~ b4. r4. |  }
}


verseOne = \lyricmode {
  Bla bloo bla bloo bla dee bla dee bla dee bla dee bla.
}

\score {
   <<
      \context Staff = "Clap" \with {
        \override StaffSymbol #'line-count = #1
      }
      <<
          \context Voice = "clap staff" { \clap }
      >>
      \context Staff = "Bla" <<
          \context Voice = "bla" { \bla }
          \new Lyrics \lyricsto "bla" { \verseOne }
      >>
   >>
   \layout { }
   \midi { }
}

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%


--
Jonathan Kulp
http://www.jonathankulp.com




reply via email to

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