def __init__( self, name=None, ): TreeNode.__init__( self, name=name, )
def __init__( self, label=None, name=None, ): TreeNode.__init__(self, name=name) self._label = label self._edges = set([])
def __init__( self, preprolated_duration=1, is_pitched=True, name=None, ): TreeNode.__init__(self, name=name) RhythmTreeMixin.__init__(self, preprolated_duration=preprolated_duration) self.is_pitched = is_pitched
def __init__(self, children=None, name=None): TreeNode.__init__(self, name=name) self._children = [] self._named_children = {} if children is None: pass elif isinstance(children, (list, tuple)): self.extend(children) else: message = 'can not instantiate {} with {!r}.' message = message.format(type(self), children) raise ValueError(message)
def __init__( self, label=None, name=None, attributes=None, ): TreeNode.__init__( self, name=name, ) self._label = label if attributes is not None: attributes = dict(attributes) self._attributes = attributes
def __init__( self, preprolated_duration=1, q_event_proxies=None, is_divisible=True, ): from abjad.tools import quantizationtools TreeNode.__init__(self) RhythmTreeMixin.__init__(self, preprolated_duration) if q_event_proxies is None: self._q_event_proxies = [] else: assert all(isinstance(x, quantizationtools.QEventProxy) for x in q_event_proxies) self._q_event_proxies = list(q_event_proxies) self._is_divisible = bool(is_divisible)
def __init__(self, name=None, text='foo', wrap=True): TreeNode.__init__(self, name=name) self.text = text self.wrap = wrap
def __init__(self, preprolated_duration=1, name=None): TreeNode.__init__(self, name=name) self._duration = 0 self._offset = durationtools.Offset(0) self._offsets_are_current = False self.preprolated_duration = preprolated_duration
def __init__(self, name=None, text='foo'): TreeNode.__init__(self, name) self.text = text
def __init__(self, level=0, name=None, text='foo'): TreeNode.__init__(self, name=name) self.level = level self.text = text