Skip to content

Commit 90d65eb

Browse files
committed
Add test for \addlyrics
1 parent 60d7533 commit 90d65eb

File tree

2 files changed

+30
-0
lines changed

2 files changed

+30
-0
lines changed

tests/test_xml.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,9 @@ def test_tuplet():
3333
def test_lyrics_simple_lyricsto():
3434
compare_output('lyrics_simple_lyricsto')
3535

36+
def test_lyrics_simple_addlyrics():
37+
compare_output('lyrics_simple_addlyrics')
38+
3639
def ly_to_xml(filename):
3740
"""Read Lilypond file and return XML string."""
3841
writer = ly.musicxml.writer()
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
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+
}

0 commit comments

Comments
 (0)