Comment #5 on issue 2076 by [email protected]: Doc: improve NR 1.6.3 Instrument names (better to use \with )
http://code.google.com/p/lilypond/issues/detail?id=2076

David,

Thanks. with regard to the second example:

--snip--
@lilypond[verbatim,quote,ragged-right,relative=1]
\set Staff.instrumentName = #"First"
\set Staff.shortInstrumentName = #"one"
c1 c c c \break
c1 c c c \break
\set Staff.instrumentName = #"Second"
\set Staff.shortInstrumentName = #"two"
c1 c c c \break
c1 c c c \break
@end lilypond

--snip--

If I use the \new Staff \with { } construct I get the same number of measures and lines but the last two lines split into a GroupStaff. So I cannot see how to re-write this example.

@lilypond[verbatim,quote,ragged-right,relative=1]
\new Staff \with {
  instrumentName = #"First"
  shortInstrumentName = #"one"
}
{
  c1 c c c \break
  c1 c c c \break
}
\new Staff \with {
  instrumentName = #"Second"
  shortInstrumentName = #"two"
}
{
  c1 c c c \break
  c1 c c c \break
}
@end lilypond

Can you (or anyone) advise?

James

Attachments:
        Original.png  14.4 KB
        AlteredExample.png  22.6 KB


_______________________________________________
bug-lilypond mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/bug-lilypond

Reply via email to