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