]> git.donarmstrong.com Git - lilypond.git/blob - input/regression/lyric-combine-switch-voice.ly
MusicXML: src-dir rather than srcdir.
[lilypond.git] / input / regression / lyric-combine-switch-voice.ly
1 \header {
2
3   texidoc = "Switching the melody to a different voice works even
4 if the switch occurs together with context instantiation."
5
6 }
7
8 \version "2.11.51"
9
10 <<
11   \relative \new Voice = "lahlah" {
12     \set Staff.autoBeaming = ##f
13     c4
14     <<
15       \new Voice = "alternative" {
16         \voiceOne
17         \times 2/3 {
18           %% show associations clearly.
19           \override NoteColumn #'force-hshift = #-3
20           r8 f g
21         }
22       }
23       {
24         \voiceTwo
25         f8.[ g16]
26         \oneVoice
27       } >>
28     a8( b) c
29   }
30   \new Lyrics \lyricsto "lahlah" {
31     %% Tricky: need to set associatedVoice
32     %% one syllable too soon!
33     
34     \set associatedVoice = alternative % applies to "ran"
35     Ty --
36     ran --
37     \set associatedVoice = lahlah % applies to "sau"
38     no --
39     sau -- rus Rex
40   }
41 >>
42
43
44