Fwd: VocalName skipped when music start with a rest

Roman Stawski <[email protected]> Mon, 28 Jul 2025 12:56:48 +0200
Newsgroups gmane.comp.gnu.lilypond.bugs
Message-ID <[email protected]>
On 28/07/2025 12:13, Xavier Scheuer wrote:
> On Mon, 28 Jul 2025 at 11:58, Roman Stawski <[email protected]> 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)
OpenPGP_signature.asc (application/pgp-signature, 665 B)
-----BEGIN PGP SIGNATURE-----

wsD5BAABCAAjFiEEKeXgtedNtQoQtRwY5HqbMPUiJU8FAmiHV3AFAwAAAAAACgkQ5HqbMPUiJU/k
nAwAs8NGjW7/t86MrYiMZ5rj1RwbGtsSApWJS+IWmXiPjtxjvTz7IDPI2WAqc9TB/MtnW9OfwrMN
AuB/OCnzIRXJng1JAURn2NwsphivD5sm7AycCNWqcA83bH/YALxyibPtK0CwjA0SxXUNdi+y5Wf3
lA9nmSW8RNOTMSPr3ygb1C7CepALPBeNqWi/0fdjwuYb5/rUyVcy6avWWFPby2Q4r3uwjGB7fn/k
4uSmZYg6xYOq6qDAeOpYuDdOvKh+xVC+3qRpV/nnf8LSYd8hqjEljz5mGaObO0+FSJEIu2zt+BYe
hJdi6510JJqJGzgGGdQHlqH54i3N+DdonMtihnQUOUQM6En4qXaPIpWbGaiDugUeOrP0Mo3bJiWN
UTjkV3sc6fwfrjAhsIBRCQ1LJB/euJk/e+LtYlxrCdevH3hlfECV6JzfU9l4snejC+oecFaXhrP4
RQYkxmJPlq2KTqBxJwpnyXYbroHZJq3JKFvMAfcURBBXV1rhL2BijrMxMpN0
=N3lJ
-----END PGP SIGNATURE-----