On 2011-02-22 11:15, Rodolfo Zitellini wrote:
> Hello,
> I'm transcribing a piece that starts with a \grace, more like the
> following snippet:
>
> [...]
> \score {
> \new Staff <<
> \set Staff.instrumentName = #"Violino P[rimo]"
> \context Staff <<
> [...]
> I noticed that when having a grace as the first note all
> instrumentNames disappear. If you remove the \grace, the name appears
> again.
Hi, Rodolfo,
try
\new Staff \with { instrumentName = #"Violino P[rimo]" } << ... >>
inside the \score block.
Untuitively, the grace note happens "before time zero", while the \set
command is implicitly executed just "at time zero". Thus, the staff is
drawn (with it's corresponding instrumentName) when the grace note
requires it, and that's too early.
The \with clause sets a global default for this Staff context regardless
of the time; this should work out.
HTH,
Alexander
___
lilypond-user mailing list
lilypond-user@gnu.org
http://lists.gnu.org/mailman/listinfo/lilypond-user