Hi everybody,
a search for „CueVoice“ in the LilyPond directory lead me to the option
NoteHead.ignore-ambitus which does exactly what I need:
%%%
\version "2.25.25"
vocStaffMusic = \relative {
c'2 d
% don’t assign lyrics to this, but include it in ambitus
\new Voice {
e4^"hum melody" f g a
}
% exclude this from ambitus calculation
\new Voice \with {
\override NoteHead.ignore-ambitus = ##t
} {
e'4^"flute" f g,,^"horn" a
}
% back to vocals with lyrics and ambitus
c2 d4 e
}
vocLyrics = \lyricmode {
Ly -- rics
more ly -- rics
}
\score { <<
\new Staff \with { \consists Ambitus_engraver } {
\new Voice = "vocWithLyrics" { \vocStaffMusic }
}
\new Lyrics \lyricsto "vocWithLyrics" { \vocLyrics } >> }
%%%
All the best,
Oliver