OLD | NEW |
1 #!/usr/bin/env python | 1 #!/usr/bin/env python |
2 | 2 |
3 notes = "CDEFGAB" | 3 notes = "CDEFGAB" |
4 alterations = [-1, 0, 1] | 4 alterations = [-1, 0, 1] |
5 | 5 |
6 dot_xml = """ <dot/> | 6 dot_xml = """ <dot/> |
7 """ | 7 """ |
8 tie_xml = """ <tie type="%s"/> | 8 tie_xml = """ <tie type="%s"/> |
9 """ | 9 """ |
10 tie_notation_xml = """ <notations><tied type="%s"/></notations> | 10 tie_notation_xml = """ <notations><tied type="%s"/></notations> |
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
82 <bar-style>light-heavy</bar-style> | 82 <bar-style>light-heavy</bar-style> |
83 </barline> | 83 </barline> |
84 """ | 84 """ |
85 | 85 |
86 print("""<?xml version="1.0" encoding="UTF-8"?> | 86 print("""<?xml version="1.0" encoding="UTF-8"?> |
87 <!DOCTYPE score-partwise PUBLIC "-//Recordare//DTD MusicXML 1.0 Partwise//EN" | 87 <!DOCTYPE score-partwise PUBLIC "-//Recordare//DTD MusicXML 1.0 Partwise//EN" |
88 "http://www.musicxml.org/dtds/partwise.dtd"> | 88 "http://www.musicxml.org/dtds/partwise.dtd"> |
89 <score-partwise> | 89 <score-partwise> |
90 <identification> | 90 <identification> |
91 <miscellaneous> | 91 <miscellaneous> |
92 <miscellaneous-field name="description">Various time signatures: 2/2 | 92 <miscellaneous-field name="description">Various time signatures: 2/2 |
93 (alla breve), 4/4 (C), 2/2, 3/2, 2/4, 3/4, 4/4, 5/4, 3/8, 6/8, | 93 (alla breve), 4/4 (C), 2/2, 3/2, 2/4, 3/4, 4/4, 5/4, 3/8, 6/8, |
94 12/8</miscellaneous-field> | 94 12/8</miscellaneous-field> |
95 </miscellaneous> | 95 </miscellaneous> |
96 </identification> | 96 </identification> |
97 <part-list> | 97 <part-list> |
98 <score-part id="P1"> | 98 <score-part id="P1"> |
99 <part-name>MusicXML Part</part-name> | 99 <part-name>MusicXML Part</part-name> |
100 </score-part> | 100 </score-part> |
101 </part-list> | 101 </part-list> |
102 <!--=========================================================--> | 102 <!--=========================================================--> |
103 <part id="P1">""") | 103 <part id="P1">""") |
(...skipping 28 matching lines...) Expand all Loading... |
132 measure += 1 | 132 measure += 1 |
133 | 133 |
134 print_measure (measure, 6, 8) | 134 print_measure (measure, 6, 8) |
135 measure += 1 | 135 measure += 1 |
136 | 136 |
137 print_measure (measure, 12, 8, "", "", "", final_barline) | 137 print_measure (measure, 12, 8, "", "", "", final_barline) |
138 measure += 1 | 138 measure += 1 |
139 | 139 |
140 print(""" </part> | 140 print(""" </part> |
141 </score-partwise>""") | 141 </score-partwise>""") |
OLD | NEW |