From: Carl Sorensen Date: Sun, 6 Jul 2008 22:07:59 +0000 (-0600) Subject: Update musicexp.py with new \sustain* and \arpeggio* syntax X-Git-Tag: release/2.11.51-1~1^2~5^2 X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=c1922825f7419f28127cd4987da66dcb58b10265;p=lilypond.git Update musicexp.py with new \sustain* and \arpeggio* syntax --- diff --git a/python/musicexp.py b/python/musicexp.py index e73f78b1a4..940683aa11 100644 --- a/python/musicexp.py +++ b/python/musicexp.py @@ -863,9 +863,9 @@ class BeamEvent (SpanEvent): class PedalEvent (SpanEvent): def ly_expression (self): - return {-1: '\\sustainDown', - 0:'\\sustainUp\\sustainDown', - 1:'\\sustainUp'}.get (self.span_direction, '') + return {-1: '\\sustainOn', + 0:'\\sustainOff\\sustainOn', + 1:'\\sustainOff'}.get (self.span_direction, '') class TextSpannerEvent (SpanEvent): def ly_expression (self): @@ -937,12 +937,12 @@ class ArpeggioEvent(Event): if self.non_arpeggiate: printer.dump ("\\arpeggioBracket") else: - dir = { -1: "\\arpeggioDown", 1: "\\arpeggioUp" }.get (self.direction, '') + dir = { -1: "\\arpeggioArrowDown", 1: "\\arpeggioArrowUp" }.get (self.direction, '') if dir: printer.dump (dir) def print_after_note (self, printer): if self.non_arpeggiate or self.direction: - printer.dump ("\\arpeggioNeutral") + printer.dump ("\\arpeggioNormal") def ly_expression (self): return ('\\arpeggio')