buses

class AudioInputBusGroup(session)

Bases: supriya.nonrealtime.buses.BusGroup

A non-realtime audio input bus group.

class AudioOutputBusGroup(session)

Bases: supriya.nonrealtime.buses.BusGroup

A non-realtime audio output bus group.

class Bus(session, bus_group=None, calculation_rate=None, session_id=None)

Bases: supriya.nonrealtime.bases.SessionObject

A non-realtime bus.

>>> import supriya.nonrealtime
>>> session = supriya.nonrealtime.Session()
>>> bus = session.add_bus("control")
>>> print(repr(bus))
<Bus(<Session>, calculation_rate=CalculationRate.CONTROL, session_id=0)>
>>> with session.at(1):
...     bus.set_(0.5)
... 
>>> with session.at(3):
...     bus.set_(0.75)
... 
>>> for offset in range(5):
...     with session.at(offset):
...         value = bus.get()
...         print(offset, value)
... 
0 0.0
1 0.5
2 0.5
3 0.75
4 0.75
__float__()
__int__()
property bus_group
property calculation_rate
get(offset=None)
get_map_symbol(bus_id)
property session_id
set_(value, offset=None)
property start_offset
property stop_offset
class BusGroup(session, bus_count=1, calculation_rate=None, session_id=None)

Bases: supriya.nonrealtime.bases.SessionObject

A non-realtime bus group.

>>> import supriya.nonrealtime
>>> session = supriya.nonrealtime.Session()
>>> bus_group = session.add_bus_group(3)
>>> print(repr(bus_group))
<BusGroup(<Session>, bus_count=3, calculation_rate=CalculationRate.CONTROL, session_id=0)>
>>> with session.at(1):
...     bus_group[0].set_(0.333)
... 
>>> with session.at(3):
...     bus_group.fill(0.5)
... 
>>> with session.at(5):
...     bus_group[1].set_(0.666)
...     bus_group[2].set_(0.75)
... 
>>> for offset in range(7):
...     with session.at(offset):
...         values = bus_group.get()
...         print(offset, values)
... 
0 [0.0, 0.0, 0.0]
1 [0.333, 0.0, 0.0]
2 [0.333, 0.0, 0.0]
3 [0.5, 0.5, 0.5]
4 [0.5, 0.5, 0.5]
5 [0.5, 0.666, 0.75]
6 [0.5, 0.666, 0.75]
__contains__(item)
__float__()
__getitem__(item)
__int__()
__iter__()
__len__()
property bus_count
property buses
property calculation_rate
fill(value)
get()
get_map_symbol(bus_id)
index(item)
property session_id