LineSpan

class maelzel.core.symbols.LineSpan(kind='start', uuid='', linetype='solid', placement='', starttext='', endtext='', middletext='', verticalAlign='', starthook=False, endhook=False)[source]

Bases: Spanner

A line spanner

Parameters:
  • kind – start or end

  • uuid – the uuid, will be autogenerated if not given.

  • linetype – one of solid, dashed, dotted, wavy, zigzag

  • placement – unset to use default, otherwise above or below

  • starttext – a text to add at the begining of the line

  • endtext – a text to add at the end. If an endtext is specified an endhook is not allowed.

  • middletext – a text to add at the middle (not always supported)

  • verticalAlign – alignment of the text (one of up, down, center)

  • endhook – if true, draw a hook segment at the end of the line. Direction of the hook is opposito to placement. An endhook is mutually exclusive with an endtext

Methods Summary

applyToNotation(n[, parent])

Apply this symbol to the given notation, inplace

Methods Documentation

applyToNotation(n, parent=None)[source]

Apply this symbol to the given notation, inplace

Return type:

None