def __init__(self, payload=None):
     if isinstance(payload, type(self)):
         payload = payload.payload
     assert isinstance(payload, str), repr(payload)
     PayloadExpression.__init__(self, payload=payload)
     simple_strings = self._parse_complex_transform_string(payload)
     transform_functions = [self._simple_string_to_transform_function(x) 
         for x in simple_strings]
     self._transform_functions = transform_functions
Ejemplo n.º 2
0
 def __init__(self, payload=None):
     if isinstance(payload, type(self)):
         payload = payload.payload
     assert isinstance(payload, str), repr(payload)
     PayloadExpression.__init__(self, payload=payload)
     simple_strings = self._parse_complex_transform_string(payload)
     transform_functions = [
         self._simple_string_to_transform_function(x)
         for x in simple_strings
     ]
     self._transform_functions = transform_functions
 def __init__(self, payload=None):
     from experimental.tools import musicexpressiontools
     assert not isinstance(payload, rhythmmakertools.RhythmMaker)
     assert not isinstance(payload, datastructuretools.StatalServerCursor)
     assert isinstance(payload, (
         str, tuple, list, 
         containertools.Container,
         datastructuretools.TypedList,
         musicexpressiontools.DivisionList,
         selectiontools.SliceSelection,
         ))
     if isinstance(payload, list):
         payload = tuple(payload)
     PayloadExpression.__init__(self, payload)
Ejemplo n.º 4
0
 def __init__(self, payload=None):
     from experimental.tools import musicexpressiontools
     assert not isinstance(payload, rhythmmakertools.RhythmMaker)
     assert not isinstance(payload, datastructuretools.StatalServerCursor)
     assert isinstance(payload, (
         str,
         tuple,
         list,
         scoretools.Container,
         datastructuretools.TypedList,
         musicexpressiontools.DivisionList,
         selectiontools.SliceSelection,
     )), repr(payload)
     if isinstance(payload, list):
         payload = tuple(payload)
     elif isinstance(payload, datastructuretools.TypedList):
         payload = tuple(payload)
     PayloadExpression.__init__(self, payload)
Ejemplo n.º 5
0
 def __init__(self, payload=None):
     assert isinstance(payload, rhythmmakertools.RhythmMaker)
     PayloadExpression.__init__(self, payload=payload)
Ejemplo n.º 6
0
 def __init__(self, payload=None):
     assert isinstance(payload, rhythmmakertools.RhythmMaker)
     PayloadExpression.__init__(self, payload=payload)
 def __init__(self, payload):
     from abjad.tools import datastructuretools
     assert isinstance(payload, datastructuretools.StatalServerCursor)
     PayloadExpression.__init__(self, payload)
Ejemplo n.º 8
0
 def __init__(self, payload):
     from abjad.tools import datastructuretools
     assert isinstance(payload, datastructuretools.StatalServerCursor)
     PayloadExpression.__init__(self, payload)