X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=scripts%2Fmusicxml2ly.py;h=5cf53339a4159ad4fdbff77979907636d85b16e1;hb=e313fac84da1dcce559c9cfa549d57761aa9684a;hp=e6a6807440a30a3a630e7d57001f7d87af226966;hpb=c39d188d28fdc84cef8cbaea7b8d6e2fb718c30f;p=lilypond.git diff --git a/scripts/musicxml2ly.py b/scripts/musicxml2ly.py index e6a6807440..5cf53339a4 100644 --- a/scripts/musicxml2ly.py +++ b/scripts/musicxml2ly.py @@ -41,7 +41,7 @@ additional_definitions = { "tuplet-note-wrapper": """ % a formatter function, which is simply a wrapper around an existing % tuplet formatter function. It takes the value returned by the given % function and appends a note of given length. - #(define-public ((tuplet-number::append-note-wrapper function note) grob) + #(define ((tuplet-number::append-note-wrapper function note) grob) (let* ((txt (if function (function grob) #f))) (if txt (markup txt #:fontsize -5 #:note note UP) @@ -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 ()) @@ -1315,7 +1315,7 @@ def musicxml_words_to_lily_event (words): # convert accordion-registration to lilypond. # Since lilypond does not have any built-in commands, we need to create # the markup commands manually and define our own variables. -# Idea was taken from: http://lsr.dsi.unimi.it/LSR/Item?id=194 +# Idea was taken from: http://lsr.di.unimi.it/LSR/Item?id=194 def musicxml_accordion_to_markup (mxl_event): commandname = "accReg" command = "" @@ -2573,7 +2573,7 @@ If the given filename is -, musicxml2ly reads from the command line. p.version = ('''%prog (LilyPond) @TOPLEVEL_VERSION@\n\n''' + -_ ("""Copyright (c) 2005--2014 by +_ ("""Copyright (c) 2005--2015 by Han-Wen Nienhuys , Jan Nieuwenhuizen and Reinhold Kainhofer