mirror of
https://github.com/onyx-and-iris/xair-api-python.git
synced 2024-11-22 04:40:58 +00:00
minor ver bump
added mute property to bus,fx,lr,rtn,strip
This commit is contained in:
parent
2255da4e53
commit
e7d38bb9d7
@ -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"
|
||||||
|
@ -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
|
||||||
|
@ -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
|
||||||
|
@ -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
|
||||||
|
@ -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
|
||||||
|
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user