def __init__(self, attribute=None, offset=None, voice_name=None, callbacks=None): from experimental.tools import musicexpressiontools assert attribute in self.attributes, repr(attribute) assert isinstance(voice_name, str), repr(voice_name) assert isinstance(offset, musicexpressiontools.OffsetExpression) AnchoredExpression.__init__(self, anchor=offset) IterablePayloadCallbackMixin.__init__(self, callbacks=callbacks) self._attribute = attribute self._offset = offset self._voice_name = voice_name
def __init__(self, anchor=None, voice_name=None, time_relation=None, callbacks=None): assert isinstance(voice_name, (str, type(None))) assert isinstance(time_relation, (timerelationtools.TimeRelation, type(None))) assert time_relation is None or time_relation.is_fully_unloaded AnchoredExpression.__init__(self, anchor=anchor) IterablePayloadCallbackMixin.__init__(self, callbacks=callbacks) SelectMethodMixin.__init__(self) SetMethodMixin.__init__(self) assert voice_name is not None self._voice_name = voice_name self._time_relation = time_relation
def __init__( self, attribute=None, offset=None, voice_name=None, callbacks=None, ): from experimental.tools import musicexpressiontools assert attribute in self.attributes, repr(attribute) assert isinstance(voice_name, str), repr(voice_name) assert isinstance(offset, musicexpressiontools.OffsetExpression) AnchoredExpression.__init__(self, anchor=offset) IterablePayloadCallbackMixin.__init__(self, callbacks=callbacks) self._attribute = attribute self._offset = offset self._voice_name = voice_name
def __init__( self, anchor=None, voice_name=None, time_relation=None, callbacks=None, ): assert isinstance(voice_name, (str, type(None))) prototype = (timespantools.TimeRelation, type(None)) assert isinstance(time_relation, prototype) assert time_relation is None or time_relation.is_fully_unloaded AnchoredExpression.__init__(self, anchor=anchor) IterablePayloadCallbackMixin.__init__(self, callbacks=callbacks) SelectMethodMixin.__init__(self) SetMethodMixin.__init__(self) assert voice_name is not None self._voice_name = voice_name self._time_relation = time_relation
def __init__(self, attribute=None, source_expression=None, target_timespan=None, persist=True, truncate=None, ): from experimental.tools import musicexpressiontools assert isinstance(source_expression, (musicexpressiontools.Expression)) assert isinstance(persist, bool) assert isinstance(truncate, (bool, type(None))) SetExpression.__init__( self, attribute=attribute, source_expression=source_expression, target_timespan=target_timespan, ) AnchoredExpression.__init__(self, anchor=target_timespan) self._persist = persist self._truncate = truncate
def __init__( self, attribute=None, source_expression=None, target_timespan=None, persist=True, truncate=None, ): from experimental.tools import musicexpressiontools assert isinstance(source_expression, (musicexpressiontools.Expression)) assert isinstance(persist, bool) assert isinstance(truncate, (bool, type(None))) SetExpression.__init__( self, attribute=attribute, source_expression=source_expression, target_timespan=target_timespan, ) AnchoredExpression.__init__(self, anchor=target_timespan) self._persist = persist self._truncate = truncate
def __init__(self, anchor=None, callbacks=None): from experimental.tools import musicexpressiontools AnchoredExpression.__init__(self, anchor=anchor) TimespanCallbackMixin.__init__(self, callbacks=callbacks)
def __init__(self, anchor=None, edge=None, callbacks=None): from experimental.tools import musicexpressiontools assert edge in (Left, Right, None), repr(edge) AnchoredExpression.__init__(self, anchor=anchor) OffsetCallbackMixin.__init__(self, callbacks=callbacks) self._edge = edge