fadto() fadeby() methods added to strip/bus classes

appgain(), appmute() methods added to virtualstrip class
This commit is contained in:
onyx-and-iris
2022-10-06 20:28:26 +01:00
parent 550df917fb
commit 4ee37f54c5
3 changed files with 57 additions and 1 deletions

View File

@@ -43,6 +43,14 @@ class Bus(IRemote):
def gain(self, val: float):
self.setter("gain", val)
def fadeto(self, target: float, time_: int):
self.setter("FadeTo", f"({target}, {time_})")
time.sleep(self._remote.DELAY)
def fadeby(self, change: float, time_: int):
self.setter("FadeBy", f"({change}, {time_})")
time.sleep(self._remote.DELAY)
class PhysicalBus(Bus):
def __str__(self):