improve the feedback for some of the binds:

- solo + mc will give error warning if not currently using a Strip controller.
- karaoke and mc will give error warning if the Strip controller doesn't have the correct index.
- bus assignments will give error warning if not on a Strip controller.

mono now toggles for the Strip controller but rotates through modes for the Bus controller.
This commit is contained in:
2026-03-19 05:33:16 +00:00
parent 84ee479bf1
commit 4c34028194
3 changed files with 61 additions and 17 deletions

View File

@@ -28,22 +28,22 @@ class Strategy(ABC):
self._slider_mode = val
def get_bool(self, param: str) -> bool:
return self._controller._get(f'{self.identifier}.{param}') == 1
return self._controller.get(f'{self.identifier}.{param}') == 1
def set_bool(self, param: str, val: bool):
self._controller._set(f'{self.identifier}.{param}', 1 if val else 0)
self._controller.set(f'{self.identifier}.{param}', 1 if val else 0)
def get_float(self, param: str) -> float:
return round(self._controller._get(f'{self.identifier}.{param}'), 1)
return round(self._controller.get(f'{self.identifier}.{param}'), 1)
def set_float(self, param: str, val: float):
self._controller._set(f'{self.identifier}.{param}', val)
self._controller.set(f'{self.identifier}.{param}', val)
def get_int(self, param: str) -> int:
return int(self._controller._get(f'{self.identifier}.{param}'))
return int(self._controller.get(f'{self.identifier}.{param}'))
def set_int(self, param: str, val: int):
self._controller._set(f'{self.identifier}.{param}', val)
self._controller.set(f'{self.identifier}.{param}', val)
class StripStrategy(Strategy):