]> git.donarmstrong.com Git - lilypond.git/blob - input/regression/lyric-combine.ly
* lily/new-lyric-combine-music-iterator.cc (find_voice): make sure
[lilypond.git] / input / regression / lyric-combine.ly
1
2 \version "2.1.19"
3
4 \header{
5 texidoc= "LyricsVoice can be set to a melody automatically.  Excess lyrics will be
6 discarded.  LyricsVoice will not be set over rests.  You can have melismata
7 either by setting a property melismaBusy, or by setting
8 automaticMelismas (which will set melismas during slurs and ties).  If
9 you want a different order than first Music, then LyricsVoice, you must
10 precook a chord of staves/lyrics and label those.  Of course
11 @code{\rhythm} ignores any other rhythms in the piece.  Hyphens and
12 extenders do not assume anything about lyric lengths, so they continue
13 to work."
14 }
15
16     \paper { raggedright= ##t }
17
18
19
20 m = \notes  \relative c'' {
21         \autoBeamOff
22         g8( a)  r8 \times 2/3 { g'8( f e) } r8 \grace {  d16[ c b] } e4
23         \emptyText
24         d8.^"melisma"   \melisma c16
25         \melismaEnd
26         b }
27
28 noise = \repeat unfold 6 \notes \relative c'' { g16 g g g }
29
30  textI = \context LyricsVoice = "middle-1" \lyrics { la2 __ la -- la __ la la la la la  }
31 textII = \context LyricsVoice = "middle-1" \lyrics { da -- da __ da -- da da da da da  }
32
33 \score {
34     \notes << \context Staff = SA \noise
35       \context LyricsVoice = LA { s1 }
36       \context Staff = SB { s1 }
37       \context LyricsVoice = LB { s1 }
38       \context Staff = SC \noise
39       
40       \addlyrics
41           \context Staff = SB \context Voice="middle" \m
42           << \context LyricsVoice = LA \textI
43             \context LyricsVoice = LB \textII
44           >>
45           
46     >>
47 }
48
49