mirror of
https://github.com/onyx-and-iris/xair-api-python.git
synced 2024-11-24 22:00:57 +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]
|
||||
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"
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user