X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=scripts%2Fmusicxml2ly.py;h=b1cc496f6eb2697541a62afca5aad4eed1308783;hb=d9b67cc332fa253ab0679b54873b2f17fc37e099;hp=dda374d84e9f33562721b31dd70e0133e13f03cd;hpb=d2762a4f1add2bb04d6fc34d3c7ae03eeb7d500f;p=lilypond.git diff --git a/scripts/musicxml2ly.py b/scripts/musicxml2ly.py index dda374d84e..b1cc496f6e 100644 --- a/scripts/musicxml2ly.py +++ b/scripts/musicxml2ly.py @@ -178,7 +178,7 @@ def extract_score_information (tree): if work: work_title = work.get_work_title () set_if_exists ('title', work_title) - if work_title == '': + if work_title == '' and movement_title : set_if_exists ('title', movement_title.get_text ()) elif movement_title: set_if_exists ('subtitle', movement_title.get_text ()) @@ -331,7 +331,7 @@ def staff_attributes_to_lily_staff (mxl_attr): staff = musicexp.Staff () # TODO: Handle case with lines <> 5! if (lines != 5): - staff.add_context_modification ("\\override StaffSymbol #'line-count = #%s" % lines) + staff.add_context_modification ("\\override StaffSymbol.line-count = #%s" % lines) return staff