]> git.donarmstrong.com Git - lilypond.git/commitdiff
Workaround for broken MusicXML files (percussion clef in MuseScore)
authorReinhold Kainhofer <reinhold@kainhofer.com>
Sat, 2 May 2009 17:40:09 +0000 (19:40 +0200)
committerReinhold Kainhofer <reinhold@kainhofer.com>
Sat, 2 May 2009 17:41:47 +0000 (19:41 +0200)
python/musicexp.py

index 61598f28e51e7c58258cc5532c163ce84e45bcb3..2d6421ffab169b41df77b81bc289ce340b892816 100644 (file)
@@ -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 ())