]> 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)
committerPatrick McCarty <pnorcks@gmail.com>
Fri, 17 Jul 2009 09:28:04 +0000 (02:28 -0700)
(cherry picked from commit 68a2aa1c5a1be2d4ad3f214b15480a33d48e0d28)

python/musicexp.py

index 440fcbfb3f1c12c87957c79b2f204f95b2efcf0f..6bf587be8ff213d184ecac9ca075c87511652de2 100644 (file)
@@ -1532,6 +1532,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 ())