On 28/07/2025 12:13, Xavier Scheuer wrote:
On Mon, 28 Jul 2025 at 11:58, Roman Stawski <ro...@stawski.fr> wrote:
>
> Hi folks
>
> I've encountered an issue with vocalName and rests:
>
> ---
>
> \version "2.25.27"
> <<
>    \new Staff {
>      \new Voice = "melody" {
>        r2 c' | \break  2 2 | \break 2 2\bar "|."
>    } }
>    \new Lyrics { \lyricsto "melody" { \lyricmode {
>      \set vocalName = "V."
>      \set shortVocalName = "v."
>      A B C D E F
>    } } }
>  >>
>
> ---
>
> If the music starts with a rest, as in the snippet, then the vocalName
> is not printed on the first line. if the rest is replaced by a note then
> the vocalName appears as expected. ShortVocalName appears correctly in
> all cases.
>
> The same issue occurs with instrument name and shortInstrumentName.

Hello,

Use \with:

  \new Lyrics \with {
    vocalName = "V."
    shortVocalName = "v."
  } { \lyricsto

Similarly to what is written for Instrument names in NR 6.3.1
https://lilypond.org/doc/v2.25/Documentation/notation/writing-parts#instrument-names

Kind regards,
Xavier

Thank you Xavier, that certainly seems to work. I'd overlooked that section.

It does seem strange that a rest can have such a drastic effect, though. Never mind. I have something that works.

Many thanks again

(Sorry, forgot to copy to the list)

Attachment: OpenPGP_signature.asc
Description: OpenPGP digital signature

Reply via email to