File tree Expand file tree Collapse file tree 3 files changed +184
-0
lines changed
Expand file tree Collapse file tree 3 files changed +184
-0
lines changed Original file line number Diff line number Diff line change @@ -33,6 +33,9 @@ def test_tuplet():
3333def test_lyrics_simple_lyricsto ():
3434 compare_output ('lyrics_simple_lyricsto' )
3535
36+ def test_lyrics_simple_addlyrics ():
37+ compare_output ('lyrics_simple_addlyrics' )
38+
3639def ly_to_xml (filename ):
3740 """Read Lilypond file and return XML string."""
3841 writer = ly .musicxml .writer ()
Original file line number Diff line number Diff line change 1+ \version " 2.19.55"
2+
3+ \header {
4+ title = " lyrics simple addlyrics"
5+ }
6+
7+ verseOne = \lyricmode {
8+ \set stanza = " v1"
9+ My long sing song for voice one
10+ }
11+ verseTwo = \lyricmode {
12+ \set stanza = " v2"
13+ This is verse two, the last verse
14+ }
15+
16+ \score {
17+ \new Staff {
18+ \relative c' {
19+ \clef treble
20+ c'32 c c16 c8 c4 c2 |
21+ c1 |
22+ }
23+ }
24+ \addlyrics \verseOne
25+ \addlyrics \verseTwo
26+ \layout { }
27+ }
Original file line number Diff line number Diff line change 1+ <?xml version =" 1.0" encoding =" utf-8" ?>
2+ <!DOCTYPE score-partwise PUBLIC "-//Recordare//DTD MusicXML 2.0 Partwise//EN"
3+ "http://www.musicxml.org/dtds/partwise.dtd">
4+ <score-partwise version =" 3.0" >
5+ <movement-title >lyrics simple addlyrics</movement-title >
6+ <identification >
7+ <encoding >
8+ <software >python-ly 0.9.5</software >
9+ <encoding-date >2016-03-28</encoding-date >
10+ </encoding >
11+ </identification >
12+ <part-list >
13+ <score-part id =" P1" >
14+ <part-name />
15+ </score-part >
16+ </part-list >
17+ <part id =" P1" >
18+ <measure number =" 1" >
19+ <attributes >
20+ <divisions >8</divisions >
21+ <time symbol =" common" >
22+ <beats >4</beats >
23+ <beat-type >4</beat-type >
24+ </time >
25+ <clef >
26+ <sign >G</sign >
27+ <line >2</line >
28+ </clef >
29+ </attributes >
30+ <note >
31+ <pitch >
32+ <step >C</step >
33+ <octave >5</octave >
34+ </pitch >
35+ <duration >1</duration >
36+ <voice >1</voice >
37+ <type >32nd</type >
38+ <lyric name =" v1" >
39+ <syllabic >single</syllabic >
40+ <text >My</text >
41+ </lyric >
42+ <lyric name =" v2" >
43+ <syllabic >single</syllabic >
44+ <text >This</text >
45+ </lyric >
46+ </note >
47+ <note >
48+ <pitch >
49+ <step >C</step >
50+ <octave >5</octave >
51+ </pitch >
52+ <duration >1</duration >
53+ <voice >1</voice >
54+ <type >32nd</type >
55+ <lyric name =" v1" >
56+ <syllabic >single</syllabic >
57+ <text >long</text >
58+ </lyric >
59+ <lyric name =" v2" >
60+ <syllabic >single</syllabic >
61+ <text >is</text >
62+ </lyric >
63+ </note >
64+ <note >
65+ <pitch >
66+ <step >C</step >
67+ <octave >5</octave >
68+ </pitch >
69+ <duration >2</duration >
70+ <voice >1</voice >
71+ <type >16th</type >
72+ <lyric name =" v1" >
73+ <syllabic >single</syllabic >
74+ <text >sing</text >
75+ </lyric >
76+ <lyric name =" v2" >
77+ <syllabic >single</syllabic >
78+ <text >verse</text >
79+ </lyric >
80+ </note >
81+ <note >
82+ <pitch >
83+ <step >C</step >
84+ <octave >5</octave >
85+ </pitch >
86+ <duration >4</duration >
87+ <voice >1</voice >
88+ <type >eighth</type >
89+ <lyric name =" v1" >
90+ <syllabic >single</syllabic >
91+ <text >song</text >
92+ </lyric >
93+ <lyric name =" v2" >
94+ <syllabic >single</syllabic >
95+ <text >two,</text >
96+ </lyric >
97+ </note >
98+ <note >
99+ <pitch >
100+ <step >C</step >
101+ <octave >5</octave >
102+ </pitch >
103+ <duration >8</duration >
104+ <voice >1</voice >
105+ <type >quarter</type >
106+ <lyric name =" v1" >
107+ <syllabic >single</syllabic >
108+ <text >for</text >
109+ </lyric >
110+ <lyric name =" v2" >
111+ <syllabic >single</syllabic >
112+ <text >the</text >
113+ </lyric >
114+ </note >
115+ <note >
116+ <pitch >
117+ <step >C</step >
118+ <octave >5</octave >
119+ </pitch >
120+ <duration >16</duration >
121+ <voice >1</voice >
122+ <type >half</type >
123+ <lyric name =" v1" >
124+ <syllabic >single</syllabic >
125+ <text >voice</text >
126+ </lyric >
127+ <lyric name =" v2" >
128+ <syllabic >single</syllabic >
129+ <text >last</text >
130+ </lyric >
131+ </note >
132+ </measure >
133+ <measure number =" 2" >
134+ <note >
135+ <pitch >
136+ <step >C</step >
137+ <octave >5</octave >
138+ </pitch >
139+ <duration >32</duration >
140+ <voice >1</voice >
141+ <type >whole</type >
142+ <lyric name =" v1" >
143+ <syllabic >single</syllabic >
144+ <text >one</text >
145+ </lyric >
146+ <lyric name =" v2" >
147+ <syllabic >single</syllabic >
148+ <text >verse</text >
149+ </lyric >
150+ </note >
151+ </measure >
152+ <measure number =" 3" />
153+ </part >
154+ </score-partwise >
You can’t perform that action at this time.
0 commit comments