From e760f3496fe44f00d985526b3811d7d111fe97b7 Mon Sep 17 00:00:00 2001 From: Reinhold Kainhofer Date: Sat, 2 May 2009 19:40:09 +0200 Subject: [PATCH] Workaround for broken MusicXML files (percussion clef in MuseScore) (cherry picked from commit 68a2aa1c5a1be2d4ad3f214b15480a33d48e0d28) --- python/musicexp.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/python/musicexp.py b/python/musicexp.py index 440fcbfb3f..6bf587be8f 100644 --- a/python/musicexp.py +++ b/python/musicexp.py @@ -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 ()) -- 2.39.2