minor ver bump

added mute property to bus,fx,lr,rtn,strip
This commit is contained in:
onyx-and-iris 2022-11-08 22:10:36 +00:00
parent 2255da4e53
commit e7d38bb9d7
6 changed files with 49 additions and 1 deletions

View File

@ -1,6 +1,6 @@
[tool.poetry] [tool.poetry]
name = "xair-api" name = "xair-api"
version = "2.1.0" version = "2.2.0"
description = "Remote control Behringer X-Air | Midas MR mixers through OSC" description = "Remote control Behringer X-Air | Midas MR mixers through OSC"
authors = ["onyx-and-iris <code@onyxandiris.online>"] authors = ["onyx-and-iris <code@onyxandiris.online>"]
license = "MIT" license = "MIT"

View File

@ -60,3 +60,11 @@ class Bus(IBus):
@property @property
def address(self) -> str: def address(self) -> str:
return f"/bus/{self.index}" return f"/bus/{self.index}"
@property
def mute(self) -> bool:
return not self.mix.on
@mute.setter
def mute(self, val: bool):
self.mix.on = not val

View File

@ -68,3 +68,11 @@ class FXSend(IFX):
@property @property
def address(self) -> str: def address(self) -> str:
return f"/fxsend/{self.index}" return f"/fxsend/{self.index}"
@property
def mute(self) -> bool:
return not self.mix.on
@mute.setter
def mute(self, val: bool):
self.mix.on = not val

View File

@ -61,3 +61,11 @@ class LR(ILR):
@property @property
def address(self) -> str: def address(self) -> str:
return f"/lr" return f"/lr"
@property
def mute(self) -> bool:
return not self.mix.on
@mute.setter
def mute(self, val: bool):
self.mix.on = not val

View File

@ -59,6 +59,14 @@ class AuxRtn(IRtn):
def address(self): def address(self):
return "/rtn/aux" return "/rtn/aux"
@property
def mute(self) -> bool:
return not self.mix.on
@mute.setter
def mute(self, val: bool):
self.mix.on = not val
class FxRtn(IRtn): class FxRtn(IRtn):
"""Concrete class for rtn""" """Concrete class for rtn"""
@ -93,3 +101,11 @@ class FxRtn(IRtn):
@property @property
def address(self): def address(self):
return f"/rtn/{self.index}" return f"/rtn/{self.index}"
@property
def mute(self) -> bool:
return not self.mix.on
@mute.setter
def mute(self, val: bool):
self.mix.on = not val

View File

@ -62,3 +62,11 @@ class Strip(IStrip):
@property @property
def address(self) -> str: def address(self) -> str:
return f"/ch/{str(self.index).zfill(2)}" return f"/ch/{str(self.index).zfill(2)}"
@property
def mute(self) -> bool:
return not self.mix.on
@mute.setter
def mute(self, val: bool):
self.mix.on = not val