----- Original Message ----- From: "fauban" <airgamboy...@hotmail.com>
To: <lilypond-user@gnu.org>
Sent: Sunday, August 22, 2010 10:52 AM
Subject: Adding a temporal 3rd staff (for only 2 bars) in a Piano Staff


Hello Lilypond Community!
I am typesetting a piano score.
As most keyboard pieces, it begins with 2 staves, but measures 14 and 15
would need a 3rd staff over the other two. (I am using the new PianoStaff
command)

I have tried to make something like an ossia staff, but it's not the same,
as its bar lines are not connected to the ones of the two main staves.

Here is an example of what I want to do (Debussy: Préludes - Book II, No.1;
taken from the IMSLP. Check the 1st page):
http://imslp.info/files/imglnks/usimg/d/dd/IMSLP00510-Debussy_-_Preludes__Book_2.pdf


No doubt there are a number of ways of doing this by adding extra staves, but the way I would do it is by allowing LilyPond to remove empty staves. Here's an example:

\layout {
 \context {
   \RemoveEmptyStaffContext
   \override VerticalAxisGroup #'remove-first = ##t
 }
}
{
<<
\new PianoStaff <<
\new Staff {
  \clef "treble"
  \time 4/8
  R1*4/8 |
  \repeat unfold 4 { g''32 ( [ e''32 c''32 b'32 ) ] } |
  R1*4/8 \bar "|."
}
\new Staff {
 \clef "treble"
 \time 4/8
 \repeat unfold 4 { b'32 ( [ g'32 e'32 d'32 ) ] } \break |
 \repeat unfold 4 { b'32 ( [ g'32 e'32 d'32 ) ] } \break |
 \repeat unfold 4 { b'32 ( [ g'32 e'32 d'32 ) ] } \break |
 }
\new Staff {
 \clef "bass"
 \time 4/8
 \repeat unfold 4 { e32 ( [ g32 b32 c'32 ) ] } \break |
 \repeat unfold 4 { e32 ( [ g32 b32 c'32 ) ] } \break |
 \repeat unfold 4 { e32 ( [ g32 b32 c'32 ) ] } \break |
}


}


--
Phil Holmes



_______________________________________________
lilypond-user mailing list
lilypond-user@gnu.org
http://lists.gnu.org/mailman/listinfo/lilypond-user

Reply via email to