Hi Johnathan

Resetting shortInstrumentName at the appropriate points
in the music should do what you want.  The trick is that
the \set shortInstrumentName command has to be placed in
the music for each staff at least one note, skip or rest
-before- the end of the previous system.  Then reset them
all back to "".

Here's an example:

\paper {
  raggedright = ##f
}
\score {
  <<
    \new Staff {
      \set Staff.shortInstrumentName = ""
      \relative c'' {
        \override Score.VerticalAxisGroup #'remove-first =
##t
        c c c c c c c c c c c
        \set Staff.shortInstrumentName = ""
        c \break
        c c c c c c c c c c c
        \set Staff.shortInstrumentName = "A"
        c \break
        c c c c c c c c c c c c
      }
    }
    \new Staff {
      \relative c'' {
        R1*3
        R1 R1
        \set Staff.shortInstrumentName = "B"
        R1 \break
        c4 c c c c c c c c c c c
      }
    }
  >>
  \layout {
    \context { \RemoveEmptyStaffContext }
  }
}

Trevor D

> -----Original Message-----
> From: [EMAIL PROTECTED]
> [mailto:lilypond-user-bounces+t.daniels=treda.co.u
> [EMAIL PROTECTED] Behalf Of
> Johnathan
> Sent: 27 December 2007 03:07
> To: lilypond-user@gnu.org
> Subject: Re-printing instrument names
>
>
> I am writing a vocal score that starts with 4
> parts (staves), then adds a 5th
> part later. I believe I've gotten Lilypond to do
> what I want in terms of hiding
> staves, but I can't figure out how to do what I
> want with instrument names.
>
> I would like the 4 names to be printed before the
> first measure, which is not a
> problem. Then, after several systems of 4 staves
> (the other one is hidden
> because it contains only rests), with no
> instrument names printed before them
> (shortInstrumentName is ""), the 5th staff is
> introduced. On the system where
> that new staff first becomes visible, I would
> like to reprint all 5 instrument
> names in front of the staves. The rest of the
> systems until the end of the piece
> should show 5 staves with no instrument names in
> front of them.
>
> Is there any way to accomplish this? Thanks in advance.
>
>
>
> _______________________________________________
> lilypond-user mailing list
> lilypond-user@gnu.org
> http://lists.gnu.org/mailman/listinfo/lilypond-user
>




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

Reply via email to