def __init__(self, delta=0, events=None, is_stop=None, **settings):
     events = events or ()
     events = tuple(events)
     is_stop = is_stop or None
     if is_stop:
         is_stop = bool(is_stop)
     Event.__init__(self, delta=delta, events=events, is_stop=is_stop)
示例#2
0
 def __init__(
     self,
     calculation_rate='AUDIO',
     channel_count=1,
     delta=0.0,
     is_stop=False,
     uuid=None,
     **settings
     ):
     if channel_count is not None:
         assert 0 < channel_count
     if calculation_rate is not None:
         calculation_rate = supriya.synthdefs.CalculationRate.from_expr(
             calculation_rate)
     is_stop = bool(is_stop)
     if is_stop:
         calculation_rate = None
         channel_count = None
     settings = {
         key: value for key, value in settings.items()
         if key.startswith('_')
         }
     Event.__init__(
         self,
         calculation_rate=calculation_rate,
         channel_count=channel_count,
         delta=delta,
         is_stop=is_stop,
         uuid=uuid,
         **settings
         )
示例#3
0
 def __init__(
     self,
     add_action=None,
     delta=0.0,
     is_stop=False,
     target_node=None,
     uuid=None,
     **settings,
 ):
     if add_action is not None:
         add_action = supriya.AddAction.from_expr(add_action)
     is_stop = bool(is_stop)
     if is_stop:
         add_action = None
         target_node = None
     settings = {
         key: value
         for key, value in settings.items() if key.startswith("_")
     }
     Event.__init__(
         self,
         add_action=add_action,
         delta=delta,
         is_stop=is_stop,
         target_node=target_node,
         uuid=uuid,
         **settings,
     )
示例#4
0
 def __init__(self, delta=0, events=None, is_stop=None, **settings):
     events = events or ()
     events = tuple(events)
     is_stop = is_stop or None
     if is_stop:
         is_stop = bool(is_stop)
     Event.__init__(self, delta=delta, events=events, is_stop=is_stop)
 def __init__(
     self,
     add_action=None,
     delta=0.0,
     is_stop=False,
     synthdef=None,
     target_node=None,
     uuid=None,
     **settings,
 ):
     if add_action is not None:
         add_action = supriya.AddAction.from_expr(add_action)
     is_stop = bool(is_stop)
     if is_stop:
         add_action = None
         synthdef = None
         target_node = None
         settings = {}
     Event.__init__(
         self,
         add_action=add_action,
         delta=delta,
         is_stop=is_stop,
         synthdef=synthdef,
         target_node=target_node,
         uuid=uuid,
         **settings,
     )
 def __init__(
     self,
     add_action=None,
     delta=0.0,
     is_stop=False,
     target_node=None,
     uuid=None,
     **settings,
 ):
     if add_action is not None:
         add_action = supriya.AddAction.from_expr(add_action)
     is_stop = bool(is_stop)
     if is_stop:
         add_action = None
         target_node = None
     settings = {
         key: value for key, value in settings.items() if key.startswith("_")
     }
     Event.__init__(
         self,
         add_action=add_action,
         delta=delta,
         is_stop=is_stop,
         target_node=target_node,
         uuid=uuid,
         **settings,
     )
示例#7
0
 def __init__(
     self,
     add_action=None,
     delta=0.0,
     is_stop=False,
     synthdef=None,
     target_node=None,
     uuid=None,
     **settings,
 ):
     if add_action is not None:
         add_action = supriya.AddAction.from_expr(add_action)
     is_stop = bool(is_stop)
     if is_stop:
         add_action = None
         synthdef = None
         target_node = None
         settings = {}
     Event.__init__(
         self,
         add_action=add_action,
         delta=delta,
         is_stop=is_stop,
         synthdef=synthdef,
         target_node=target_node,
         uuid=uuid,
         **settings,
     )
示例#8
0
 def __init__(self,
              add_action=None,
              delta=None,
              duration=None,
              is_stop=True,
              synthdef=None,
              target_node=None,
              uuid=None,
              **settings):
     if add_action is not None:
         add_action = supriya.realtime.AddAction.from_expr(add_action)
     Event.__init__(self,
                    add_action=add_action,
                    delta=delta,
                    duration=duration,
                    is_stop=bool(is_stop),
                    synthdef=synthdef,
                    target_node=target_node,
                    uuid=uuid,
                    **settings)
 def __init__(
     self,
     add_action=None,
     delta=None,
     duration=None,
     is_stop=True,
     synthdef=None,
     target_node=None,
     uuid=None,
     **settings,
 ):
     if add_action is not None:
         add_action = supriya.AddAction.from_expr(add_action)
     Event.__init__(
         self,
         add_action=add_action,
         delta=delta,
         duration=duration,
         is_stop=bool(is_stop),
         synthdef=synthdef,
         target_node=target_node,
         uuid=uuid,
         **settings,
     )
示例#10
0
 def __init__(self, delta=0, uuid=None, **settings):
     settings = {
         key: value
         for key, value in settings.items() if key.startswith("_")
     }
     Event.__init__(self, delta=delta, uuid=None, **settings)
 def __init__(self, delta=0, uuid=None, **settings):
     settings = {
         key: value for key, value in settings.items() if key.startswith("_")
     }
     Event.__init__(self, delta=delta, uuid=None, **settings)