def print_before_note (self, printer):
if self.span_direction == -1:
printer.dump ('\[')
- # the the bracket after the last note
+ # the bracket after the last note
def print_after_note (self, printer):
if self.span_direction == 1:
printer.dump ('\]')
"wavy" : "zigzag"
}. get (self.line_type, None)
if style:
- printer.dump ("\once \override Glissando #'style = #'%s" % style)
+ printer.dump ("\\once \\override Glissando #'style = #'%s" % style)
def ly_expression (self):
return {-1: '\\glissando',
1:''}.get (self.span_direction, '')
else:
return ''
+class SetEvent (Music):
+ def __init__ (self, contextprop, value):
+ Music.__init__ (self)
+ self.context_prop = contextprop
+ self.value = value
+ def ly_expression (self):
+ if self.value:
+ return "\\set %s = %s" % (self.context_prop, self.value)
+ else:
+ return ''
class TempoMark (Music):
def __init__ (self):