From: Reinhold Kainhofer Date: Sat, 2 May 2009 17:40:09 +0000 (+0200) Subject: Workaround for broken MusicXML files (percussion clef in MuseScore) X-Git-Tag: release/2.13.1-1~7^2~11^2~1 X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=36a272d2155633bcdf2814c1e11623039d6cd7e2;p=lilypond.git Workaround for broken MusicXML files (percussion clef in MuseScore) --- diff --git a/python/musicexp.py b/python/musicexp.py index 61598f28e5..2d6421ffab 100644 --- a/python/musicexp.py +++ b/python/musicexp.py @@ -1539,6 +1539,8 @@ class ClefChange (Music): ('F', 4): "bass", ('F', 5): "subbass", ("percussion", 2): "percussion", + # Workaround: MuseScore uses PERC instead of percussion + ("PERC", 2): "percussion", ("TAB", 5): "tab"}.get ((self.type, self.position), None) def ly_expression (self): return '\\clef "%s%s"' % (self.clef_name (), self.octave_modifier ())