]> git.donarmstrong.com Git - lilypond.git/blob - input/regression/lyric-combine-empty-warning.ly
fix 750: No warning for non-found voice in lyrics combine when lyrics are empty
[lilypond.git] / input / regression / lyric-combine-empty-warning.ly
1 \version "2.14.2"
2
3 \header {
4
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."
8
9 }
10
11 #(ly:set-option 'warning-as-error #f)
12 <<
13   \new Staff
14     \new Voice = "notes" {
15       c1
16     }
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 { }
23 >>