Dear Walt,

Try this. Seems like a bit of a hack but maybe it will do what you were hoping.

Thanks,
-William

% -----------
\version "2.25.21"

theScore = {

<<
  \new Staff \new Voice {c1 \break }
>>
<<
    \context Voice \relative {
      \time 3/4 g'2 e4 a2 f4 \break g2.
    } \addlyrics {
      \set shortVocalName = "sbert "
      Hi,
      \set shortVocalName = ""
      my name is Bert.
    } \addlyrics {
      \set vocalName = "Ernie "
      Oh, ché -- ri, je t'aime
    }
  >>
}

\score {
  \theScore
}
% -----------

On 1/8/25 01:25, Walt North wrote:
What would be the correct way to code something that has a short intoduction followed by stanzas that have singer names specific for each stanza?

The MWE starts with an example from the documentation and then adds an intro.  If I comment out the intro the names are shown. If I uncomment the intro the names disappear.

Walt North

\version "2.25.22"

theScore = {

<<
%  \new Staff \new Voice {c1 \break }
 >>
<<
     \context Voice \relative {
       \time 3/4 g'2 e4 a2 f4 g2.
     } \addlyrics {
       \set vocalName = "Bert "
       Hi, my name is Bert.
     } \addlyrics {
       \set vocalName = "Ernie "
       Oh, ché -- ri, je t'aime
     }
   >>
}

\score {
   \theScore
}



If I uncomment what would be an introduction the names disappear.


--
William Rehwinkel (any pronouns)
Juilliard School '26 - Oberlin Conservatory '24
will...@williamrehwinkel.net - https://williamrehwinkel.net
PGP Public Key: https://ftp.williamrehwinkel.net/pubkey.txt

Attachment: OpenPGP_signature.asc
Description: OpenPGP digital signature

Reply via email to