lilypond-user
[Top][All Lists]
Advanced

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

Re: \grace makes instrumentName disappear?


From: Alexander Kobel
Subject: Re: \grace makes instrumentName disappear?
Date: Tue, 22 Feb 2011 14:26:09 +0100
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.13) Gecko/20101208 Lightning/1.0b2 Thunderbird/3.1.7

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



reply via email to

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