From e7d38bb9d7fd6604b216965a06d4af82844996da Mon Sep 17 00:00:00 2001 From: onyx-and-iris <75868496+onyx-and-iris@users.noreply.github.com> Date: Tue, 8 Nov 2022 22:10:36 +0000 Subject: [PATCH] minor ver bump added mute property to bus,fx,lr,rtn,strip --- pyproject.toml | 2 +- xair_api/bus.py | 8 ++++++++ xair_api/fx.py | 8 ++++++++ xair_api/lr.py | 8 ++++++++ xair_api/rtn.py | 16 ++++++++++++++++ xair_api/strip.py | 8 ++++++++ 6 files changed, 49 insertions(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index 488424f..4ff7376 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -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 "] license = "MIT" diff --git a/xair_api/bus.py b/xair_api/bus.py index d9db513..cba558d 100644 --- a/xair_api/bus.py +++ b/xair_api/bus.py @@ -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 diff --git a/xair_api/fx.py b/xair_api/fx.py index 99360c8..9271f0b 100644 --- a/xair_api/fx.py +++ b/xair_api/fx.py @@ -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 diff --git a/xair_api/lr.py b/xair_api/lr.py index a8b7607..69d299f 100644 --- a/xair_api/lr.py +++ b/xair_api/lr.py @@ -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 diff --git a/xair_api/rtn.py b/xair_api/rtn.py index 040d086..60c2273 100644 --- a/xair_api/rtn.py +++ b/xair_api/rtn.py @@ -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 diff --git a/xair_api/strip.py b/xair_api/strip.py index 33f11b5..04bb0a1 100644 --- a/xair_api/strip.py +++ b/xair_api/strip.py @@ -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