X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=python%2Fmusicexp.py;h=2ae8a6784f3ea480f3343d6539323fd79ec706d0;hb=8190076d2ab3fcb8b0eac2cdbf3057232cd35e11;hp=862b5d8c4f70f5148c0a5b1899588b1859014c59;hpb=024e51d1cb0e21d211baf91ad0774bc766dff687;p=lilypond.git diff --git a/python/musicexp.py b/python/musicexp.py index 862b5d8c4f..2ae8a6784f 100644 --- a/python/musicexp.py +++ b/python/musicexp.py @@ -859,9 +859,17 @@ class TextSpannerEvent (SpanEvent): 1:'\\stopTextSpan'}.get (self.span_direction, '') class BracketSpannerEvent (SpanEvent): + # Ligature brackets use prefix-notation!!! + def print_before_note (self, printer): + if self.span_direction == -1: + printer.dump ('\[') + # the the bracket after the last note + def print_after_note (self, printer): + if self.span_direction == 1: + printer.dump ('\]') + # we're printing everything in print_(before|after)_note... def ly_expression (self): - return {-1: '\\startGroup', - 1:'\\stopGroup'}.get (self.span_direction, '') + return ''; class OctaveShiftEvent (SpanEvent):