X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=scripts%2Fmusicxml2ly.py;h=ec827b5d3992ebabe4648ea973aff6d1ac8e1fac;hb=b46a7d28f2ae341924eb642e71d8e8e3c3e40fbc;hp=a898e64a71622535e9306c5021362ccc169f55b6;hpb=75691ab991a6624021ac07870dcce9f996395053;p=lilypond.git diff --git a/scripts/musicxml2ly.py b/scripts/musicxml2ly.py index a898e64a71..ec827b5d39 100644 --- a/scripts/musicxml2ly.py +++ b/scripts/musicxml2ly.py @@ -22,7 +22,7 @@ import musicexp from rational import Rational -# Store command-line options in a global variable, so we can access them everythwere +# Store command-line options in a global variable, so we can access them everywhere options = None class Conversion_Settings: @@ -474,8 +474,6 @@ def extract_score_structure (part_list, staffinfo): group_starts.append (pos) pos += 1 - if len (staves) == 1: - return staves[0] for i in staves: structure.append_staff (i) return score @@ -533,7 +531,7 @@ def musicxml_partial_to_lily (partial_len): p.partial = rational_to_lily_duration (partial_len) return p else: - return Null + return None # Detect repeats and alternative endings in the chord event list (music_list) # and convert them to the corresponding musicexp objects, containing nested @@ -1169,7 +1167,7 @@ articulations_dict = { #"shake": "?", "snap-pizzicato": "snappizzicato", #"spiccato": "?", - "staccatissimo": (musicexp.ShortArticulationEvent, "|"), # or "staccatissimo" + "staccatissimo": (musicexp.ShortArticulationEvent, "!"), # or "staccatissimo" "staccato": (musicexp.ShortArticulationEvent, "."), # or "staccato" "stopped": (musicexp.ShortArticulationEvent, "+"), # or "stopped" #"stress": "?", @@ -2669,7 +2667,7 @@ information.""") % 'lilypond') action = "store_true", default = False, dest = "midi", - help = _("add midi-block to .ly file")) + help = _("activate midi-block")) p.add_option_group ('', description = (