2022-11-07 11:08:56 +00:00
|
|
|
from .bus import Bus as IBus
|
2025-01-03 10:19:06 +00:00
|
|
|
from .headamp import HeadAmp as IHeadAmp
|
2022-11-07 11:08:56 +00:00
|
|
|
from .lr import LR as ILR
|
|
|
|
from .rtn import AuxRtn as IAuxRtn
|
|
|
|
from .rtn import FxRtn as IFxRtn
|
|
|
|
|
|
|
|
|
|
|
|
class Bus(IBus):
|
|
|
|
@property
|
|
|
|
def address(self):
|
2025-01-15 10:54:52 +00:00
|
|
|
return f'/bus/{str(self.index).zfill(2)}'
|
2022-11-07 11:08:56 +00:00
|
|
|
|
|
|
|
|
|
|
|
class AuxRtn(IAuxRtn):
|
|
|
|
@property
|
|
|
|
def address(self):
|
2025-01-15 10:54:52 +00:00
|
|
|
return f'/auxin/{str(self.index).zfill(2)}'
|
2022-11-07 11:08:56 +00:00
|
|
|
|
|
|
|
|
|
|
|
class FxRtn(IFxRtn):
|
|
|
|
@property
|
|
|
|
def address(self):
|
2025-01-15 10:54:52 +00:00
|
|
|
return f'/fxrtn/{str(self.index).zfill(2)}'
|
2022-11-07 11:08:56 +00:00
|
|
|
|
|
|
|
|
|
|
|
class MainStereo(ILR):
|
|
|
|
@property
|
|
|
|
def address(self) -> str:
|
2025-01-15 10:54:52 +00:00
|
|
|
return '/main/st'
|
2022-11-07 11:08:56 +00:00
|
|
|
|
|
|
|
|
|
|
|
class MainMono(ILR):
|
|
|
|
@property
|
|
|
|
def address(self) -> str:
|
2025-01-15 10:54:52 +00:00
|
|
|
return '/main/m'
|
2022-11-07 11:08:56 +00:00
|
|
|
|
|
|
|
|
|
|
|
class Matrix(ILR):
|
|
|
|
@property
|
|
|
|
def address(self) -> str:
|
2025-01-15 10:54:52 +00:00
|
|
|
return f'/mtx/{str(self.index).zfill(2)}'
|
2025-01-03 10:19:06 +00:00
|
|
|
|
|
|
|
|
|
|
|
class HeadAmp(IHeadAmp):
|
|
|
|
@property
|
|
|
|
def address(self):
|
2025-01-15 10:54:52 +00:00
|
|
|
return f'/headamp/{str(self.index).zfill(3)}'
|