示例#1
0
 def __init__(
     self,
     name=None,
     ):
     TreeNode.__init__(
         self,
         name=name,
         )
示例#2
0
 def __init__(
     self,
     label=None,
     name=None,
     ):
     TreeNode.__init__(self, name=name)
     self._label = label
     self._edges = set([])
示例#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
示例#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
示例#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)
示例#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)
示例#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
示例#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)
示例#9
0
 def __init__(self, name=None, text='foo', wrap=True):
     TreeNode.__init__(self, name=name)
     self.text = text
     self.wrap = wrap
示例#10
0
 def __init__(self, name=None, text='foo', wrap=True):
     TreeNode.__init__(self, name=name)
     self.text = text
     self.wrap = wrap
示例#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
示例#12
0
 def __init__(self, name=None, text='foo'):
     TreeNode.__init__(self, name)
     self.text = text
示例#13
0
 def __init__(self, level=0, name=None, text='foo'):
     TreeNode.__init__(self, name=name)
     self.level = level
     self.text = text
示例#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
示例#15
0
 def __init__(self, name=None, text='foo'):
     TreeNode.__init__(self, name)
     self.text = text