Skip to content

Commit

Permalink
MusicXML accept movement-title (helps with #41 on GitHub)
Browse files Browse the repository at this point in the history
  • Loading branch information
ssb22 committed Sep 1, 2023
1 parent 10fa40c commit f4027f9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions jianpu-ly.py
Expand Up @@ -2,7 +2,7 @@
# (can be run with either Python 2 or Python 3)

# Jianpu (numbered musical notaion) for Lilypond
# v1.723 (c) 2012-2023 Silas S. Brown
# v1.724 (c) 2012-2023 Silas S. Brown

# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
Expand Down Expand Up @@ -657,7 +657,7 @@ def s(name,attrs): dat[0],dat[1]="",attrs.get("type","")
def c(data): dat[0] += data
def e(name):
d0 = dat[0].strip()
if name=='work-title': ret.append('title='+d0)
if name in ['work-title','movement-title']: ret.append('title='+d0)
elif name=='creator' and dat[1]=="composer": ret.append('composer='+d0)
elif name=="part-name" or name=="instrument-name": partList[-1]=d0
elif name=="score-part": partList.append("")
Expand Down

0 comments on commit f4027f9

Please sign in to comment.