X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=python%2Fmusicexp.py;h=01cd446f481fc0b83c33fed9e5783aea3d78c00f;hb=68073533b273a289c0189415ee1ce640daaf8611;hp=c653c5cb7944e664c9130caebc66a5e280f199a0;hpb=591e45611cc88fd5948d2c73a87db6800154ea1a;p=lilypond.git diff --git a/python/musicexp.py b/python/musicexp.py index c653c5cb79..01cd446f48 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): @@ -901,10 +901,10 @@ class OctaveShiftEvent (SpanEvent): dir = self.ly_octave_shift_indicator () value = '' if dir: - value = '#(set-octavation %s)' % dir + value = '\ottava #%s' % dir return { -1: value, - 1: '#(set-octavation 0)'}.get (self.span_direction, '') + 1: '\ottava #0'}.get (self.span_direction, '') class TrillSpanEvent (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') @@ -1371,9 +1371,7 @@ class TempoMark (Music): return res if self.beats: if self.parentheses: - dm = self.duration_to_markup (self.baseduration) - contents = "\"(\" %s = %s \")\"" % (dm, self.beats) - res += self.tempo_markup_template() % contents + res += "\\tempo \"\" %s=%s" % (self.baseduration.ly_expression(), self.beats) else: res += "\\tempo %s=%s" % (self.baseduration.ly_expression(), self.beats) elif self.newduration: