sc3nb.sc_objects.bus
Python representation of the scsynth Bus.
Module Contents
Class List
OSC Commands for Control Buses |
|
Calculation rate of Buses |
|
Represenation of Control or Audio Bus(es) on the SuperCollider Server |
Content
- class sc3nb.sc_objects.bus.ControlBusCommand[source]
-
OSC Commands for Control Buses
Initialize self. See help(type(self)) for accurate signature.
- class sc3nb.sc_objects.bus.BusRate[source]
-
Calculation rate of Buses
Initialize self. See help(type(self)) for accurate signature.
- class sc3nb.sc_objects.bus.Bus(rate: Union[BusRate, str], num_channels: int = 1, index: Optional[int] = None, server: Optional[sc3nb.sc_objects.server.SCServer] = None)[source]
Represenation of Control or Audio Bus(es) on the SuperCollider Server
If num_channels > 1 this will be represent muliple Buses in a row.
- Parameters:
- rateUnion[BusRate, str]
Rate of the Bus, either control or audio
- num_channelsint, optional
How many channels to allocate, by default 1
- indexint, optional
Starting Bus index this Bus, by default this will be handled by the servers Bus allocator.
- serverSCServer, optional
Server instance for this Bus, by default the default SC server instance.
Overview:
Rate check
Rate check
Set ranges of bus values.
Fill bus(es) to one value.
Get bus value(s).
Mark this Buses ids as free again
Return repr(self).
- set(*values: Sequence[Union[int, float]], return_msg=False) Union[Bus, sc3nb.osc.osc_communication.OSCMessage][source]
Set ranges of bus values.
- Parameters:
- valuessequence of int or float
Values that should be set
- return_msgbool, optional
If True return msg else send it directly, by default False
- Raises:
- RuntimeError
If trying to setn an Audio Bus
- fill(value: Union[int, float], return_msg=False) Union[Bus, sc3nb.osc.osc_communication.OSCMessage][source]
Fill bus(es) to one value.
- Parameters:
- valueUnion[int, float]
value for the buses
- return_msgbool, optional
If True return msg else send it directly, by default False
- Raises:
- RuntimeError
If fill is used on a Audio Bus
- get() Union[Union[int, float], Sequence[Union[int, float]]][source]
Get bus value(s).
- Returns:
- bus value or sequence of bus values
The current value of this bus Multiple values if this bus has num_channels > 1
- Raises:
- RuntimeError
If get is used on an Audio Bus