\grace makes instrumentName disappear?

2011-02-22 Thread Rodolfo Zitellini
Hello,
I'm transcribing a piece that starts with a \grace, more like the
following snippet:

%%
notes = \relative c'' {
\clef "treble" \key es \major \time 4/4
\grace { as16 } g16 [ f16 es16 d16 ] c16 [ es16 d16 c16 ]
d16 [ c16 b16 a16 ] g4 ^\trill
}

\score {
 \new Staff <<
 \set Staff.instrumentName = #"Violino P[rimo]"
 \context Staff <<
 \context Voice = "violino" { \notes}
 >>
 >>
}

I noticed that when having a grace as the first note all
instrumentNames disappear. If you remove the \grace, the name appears
again.
I first saw this with 2.13.50, but I could reproduce it with 2.12.3.
The notation manual does not say anything about graces % names, am I
missing something here?

Thanks,
Rodolfo

___
lilypond-user mailing list
lilypond-user@gnu.org
http://lists.gnu.org/mailman/listinfo/lilypond-user


Re: \grace makes instrumentName disappear?

2011-02-22 Thread Alexander Kobel
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