From f4027f995d6839e5be58d5b2a3941e9d218f04cd Mon Sep 17 00:00:00 2001 From: "Silas S. Brown" Date: Fri, 1 Sep 2023 08:30:35 +0100 Subject: [PATCH] MusicXML accept movement-title (helps with #41 on GitHub) --- jianpu-ly.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/jianpu-ly.py b/jianpu-ly.py index 6be2b20..f533c5c 100644 --- a/jianpu-ly.py +++ b/jianpu-ly.py @@ -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. @@ -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("")