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]
name = "xair-api"
version = "2.1.0"
version = "2.2.0"
description = "Remote control Behringer X-Air | Midas MR mixers through OSC"
authors = ["onyx-and-iris <code@onyxandiris.online>"]
license = "MIT"

View File

@ -60,3 +60,11 @@ class Bus(IBus):
@property
def address(self) -> str:
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
def address(self) -> str:
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
def address(self) -> str:
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):
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):
"""Concrete class for rtn"""
@ -93,3 +101,11 @@ class FxRtn(IRtn):
@property
def address(self):
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
def address(self) -> str:
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