Esempio n. 1
0
 def __init__(
     self,
     name=None,
     ):
     TreeNode.__init__(
         self,
         name=name,
         )
Esempio n. 2
0
 def __init__(
     self,
     label=None,
     name=None,
     ):
     TreeNode.__init__(self, name=name)
     self._label = label
     self._edges = set([])
Esempio n. 3
0
 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
Esempio n. 4
0
 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
Esempio n. 5
0
 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)
Esempio n. 6
0
 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)
Esempio n. 7
0
 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
Esempio n. 8
0
 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)
Esempio n. 9
0
 def __init__(self, name=None, text='foo', wrap=True):
     TreeNode.__init__(self, name=name)
     self.text = text
     self.wrap = wrap
Esempio n. 10
0
 def __init__(self, name=None, text='foo', wrap=True):
     TreeNode.__init__(self, name=name)
     self.text = text
     self.wrap = wrap
Esempio n. 11
0
 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
Esempio n. 12
0
 def __init__(self, name=None, text='foo'):
     TreeNode.__init__(self, name)
     self.text = text
Esempio n. 13
0
 def __init__(self, level=0, name=None, text='foo'):
     TreeNode.__init__(self, name=name)
     self.level = level
     self.text = text
Esempio n. 14
0
 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
Esempio n. 15
0
 def __init__(self, name=None, text='foo'):
     TreeNode.__init__(self, name)
     self.text = text