Stefan Thomas wrote:
Dear community,
the second staffname in the below snippet is not displayed. I don't
unterstand, why:
\version "2.12.2"
notiert = \relative c'' {
\grace c8 b2 c4 r
}
ausfuehr = \relative c'' {
c4(->\> b\!) c4 r4 \bar"||"
}
\score {
<<
\new Staff { \set Staff.instrumentName = "Notation" \notiert }
\new Staff { \set Staff.instrumentName = "Ausführung" \ausfuehr }
>
}
Hi, Stefan.
The staves do not start on the first beat, but a tiny bit before - since
you have the grace note in "notiert". Thus, the second instrumentName
change is considered /after/ the beginnings of the staves are drawn, and
does not affect this line. (The instrumentName property is evaluated
when the staff gets initialized.)
Alignment with grace notes is a common problem, e.g. there's a bunch of
snippets about proper grace notes just before or after special bar
lines. The quintessence: Always use a grace skip of the same length in
all other voices, if something strange happens, and chances are that
everything is fine again.
Two possible solutions here:
Either change
ausfuehr = \relative c'' {
\grace s8
c4(->\> b\!) c4 r4 \bar"||"
}
to start on the same beat, or use
\new Staff \with { instrumentName = "..." } { ... }
to change the default for this Staff instance.
Cheers,
Alexander
_______________________________________________
lilypond-user mailing list
lilypond-user@gnu.org
http://lists.gnu.org/mailman/listinfo/lilypond-user