X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=python%2Fmusicexp.py;h=2d6421ffab169b41df77b81bc289ce340b892816;hb=cfc4cbf34569db6a6c8968694f86e36b206a9d05;hp=0e8b212c85360c7ffb309e51244eb37db5867720;hpb=e83d4d449bbb7d775b4ef1058b963fa236ba1048;p=lilypond.git diff --git a/python/musicexp.py b/python/musicexp.py index 0e8b212c85..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 ()) @@ -1707,6 +1709,14 @@ class MultiMeasureRest(Music): return 'R%s' % self.duration.ly_expression () +class Break (Music): + def __init__ (self, tp="break"): + Music.__init__ (self) + self.type = tp + def print_ly (self, printer): + if self.type: + printer.dump ("\\%s" % self.type) + class StaffGroup: def __init__ (self, command = "StaffGroup"): self.stafftype = command