File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -31,6 +31,10 @@ def test_tuplet():
3131 compare_output ('tuplet' )
3232
3333
34+ def test_partial ():
35+ compare_output ('partial' )
36+
37+
3438def ly_to_xml (filename ):
3539 """Read Lilypond file and return XML string."""
3640 writer = ly .musicxml .writer ()
Original file line number Diff line number Diff line change 1+ score{
2+ \partial 8 f8 |
3+ c2 d2 |
4+ \partial 8 f8
5+ }
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+ <identification >
6+ <encoding >
7+ <software >python-ly 0.9.5</software >
8+ <encoding-date >2017-05-28</encoding-date >
9+ </encoding >
10+ </identification >
11+ <part-list >
12+ <score-part id =" P1" >
13+ <part-name />
14+ </score-part >
15+ </part-list >
16+ <part id =" P1" >
17+ <measure number =" 0" >
18+ <attributes >
19+ <divisions >2</divisions >
20+ <time symbol =" common" >
21+ <beats >4</beats >
22+ <beat-type >4</beat-type >
23+ </time >
24+ <clef >
25+ <sign >G</sign >
26+ <line >2</line >
27+ </clef >
28+ </attributes >
29+ <note >
30+ <pitch >
31+ <step >F</step >
32+ <octave >3</octave >
33+ </pitch >
34+ <duration >1</duration >
35+ <voice >1</voice >
36+ <type >eighth</type >
37+ </note >
38+ </measure >
39+ <measure number =" 1" >
40+ <note >
41+ <pitch >
42+ <step >C</step >
43+ <octave >3</octave >
44+ </pitch >
45+ <duration >4</duration >
46+ <voice >1</voice >
47+ <type >half</type >
48+ </note >
49+ <note >
50+ <pitch >
51+ <step >D</step >
52+ <octave >3</octave >
53+ </pitch >
54+ <duration >4</duration >
55+ <voice >1</voice >
56+ <type >half</type >
57+ </note >
58+ </measure >
59+ <measure number =" 2" >
60+ <note >
61+ <pitch >
62+ <step >F</step >
63+ <octave >3</octave >
64+ </pitch >
65+ <duration >1</duration >
66+ <voice >1</voice >
67+ <type >eighth</type >
68+ </note >
69+ </measure >
70+ </part >
71+ </score-partwise >
You can’t perform that action at this time.
0 commit comments