Example #1
0
 def __init__(
     self,
     bus_count=1,
     calculation_rate=None,
     bus_id=None,
     ):
     from supriya.tools import servertools
     from supriya.tools import synthdeftools
     BindingTarget.__init__(self)
     ServerObjectProxy.__init__(self)
     calculation_rate = synthdeftools.CalculationRate.from_expr(
         calculation_rate)
     assert calculation_rate in (
         synthdeftools.CalculationRate.AUDIO,
         synthdeftools.CalculationRate.CONTROL,
         )
     self._calculation_rate = calculation_rate
     bus_count = int(bus_count)
     assert 0 < bus_count
     self._buses = tuple(
         servertools.Bus(
             bus_group_or_index=self,
             calculation_rate=self.calculation_rate,
             )
         for _ in range(bus_count)
         )
     assert isinstance(bus_id, (type(None), int))
     self._bus_id = bus_id
Example #2
0
 def __init__(
     self,
     client=None,
     index=None,
     name=None,
     range_=None,
     calculation_rate=None,
     unit=None,
     value=None,
     ):
     from supriya.tools import servertools
     from supriya.tools import synthdeftools
     BindingTarget.__init__(self)
     self._client = client
     self._name = str(name)
     if isinstance(range_, synthdeftools.Range):
         self._range = range_
     else:
         self._range = None
     self._calculation_rate = synthdeftools.CalculationRate.from_expr(calculation_rate)
     self._unit = unit
     self._value = value
     self._default_value = value
     if not isinstance(value, servertools.Bus):
         self._last_unmapped_value = self._value
     else:
         self._last_unmapped_value = self._default_value
     if index is not None:
         index = int(index)
     self._index = index
Example #3
0
 def __init__(
     self,
     client=None,
     name=None,
     ):
     BindingTarget.__init__(self)
     self._client = client
     self._name = str(name)
Example #4
0
 def __init__(
     self,
     bus_group_or_index=None,
     calculation_rate=None,
     ):
     from supriya.tools import servertools
     from supriya.tools import synthdeftools
     BindingTarget.__init__(self)
     ServerObjectProxy.__init__(self)
     bus_group = None
     bus_id = None
     self._bus_id_was_set_manually = False
     if bus_group_or_index is not None:
         self._bus_id_was_set_manually = True
         if isinstance(bus_group_or_index, servertools.BusGroup):
             bus_group = bus_group_or_index
         elif isinstance(bus_group_or_index, int):
             bus_id = int(bus_group_or_index)
     self._bus_group = bus_group
     self._bus_id = bus_id
     assert calculation_rate is not None
     calculation_rate = synthdeftools.CalculationRate.from_expr(calculation_rate)
     self._calculation_rate = calculation_rate
Example #5
0
 def __init__(self):
     BindingTarget.__init__(self)