5 texidoc = "If lyrics are assigned to a non-existing voice, a warning should
6 be printed. However, if the lyrics context does not contain any lyrics, then
7 no warning should be printed."
11 #(ly:set-option 'warning-as-error #f)
14 \new Voice = "notes" {
17 % This should not give a warning (empty lyrics, existing voice):
18 \new Lyrics \lyricsto "notes" \lyricmode { }
19 % This should give a warning (non-existing voice):
20 \new Lyrics \lyricsto "not-existing-notes" \lyricmode { Test }
21 % This should NOT give a warning (non-existing voice, but also no lyrics):
22 \new Lyrics \lyricsto "not-existing-notes" \lyricmode { }