lilypond-user
[Top][All Lists]
Advanced

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

Re: staffname not shown


From: Alexander Kobel
Subject: Re: staffname not shown
Date: Sun, 29 Nov 2009 14:23:46 +0100
User-agent: Thunderbird 2.0.0.23 (X11/20090817)

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




reply via email to

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