bug-lilypond
[Top][All Lists]
Advanced

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

Re: Issue 2076 in lilypond: Doc: improve NR 1.6.3 Instrument names (bett


From: lilypond
Subject: Re: Issue 2076 in lilypond: Doc: improve NR 1.6.3 Instrument names (better to use \with )
Date: Tue, 06 Dec 2011 14:01:42 +0000


Comment #3 on issue 2076 by address@hidden: Doc: improve NR 1.6.3 Instrument names (better to use \with )
http://code.google.com/p/lilypond/issues/detail?id=2076

David,

Thanks, while the first two examples in this specific section are trivial to change the next two are not:

--snip--

<<
  \new Staff {
    \set Staff.instrumentName = #"Flute"
    f2 g4 f
  }
  \new Staff {
    \set Staff.instrumentName = \markup \center-column {
      Clarinet
      \line { "in B" \smaller \flat }
    }
    c4 b c2
  }

--snip--

complains if you just change it to

<<
  \new Staff \with {
    instrumentName = #"Flute"
    f2 g4 f
  }

etc...

because of the 'relative' I think - from the error I get when trying to compile it.

So in this case should we include a \layout { } in the @lilypond example and put the context changes in there?

Also with the next but one example:

--snip--

\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

--snip-

Again it would seem excessive to change this to:

\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

again, while the example is not that 'pretty' is there a better way to do this?

James







reply via email to

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