diff --git a/OscMacroDefinitions.py b/OscMacroDefinitions.py index bd1f7cd..f6fb8fa 100644 --- a/OscMacroDefinitions.py +++ b/OscMacroDefinitions.py @@ -100,6 +100,13 @@ class HogDevice(): self.osc.button_press(ctx.device, "/hog/hardware/pause/" + master) + def _master_assert(self, ctx): + if (len(ctx.master.targets) != 0): + logger.error("ERROR: limited to asserting current master only.") + return + logger.info("ASSERT on current master.") + self.osc.button_press(ctx.device, "/hog/hardware/assert") + def _master_fade(self, ctx): if (ctx.number) is None: logger.error("ERROR: Missing required argument for LEVEL") @@ -186,6 +193,7 @@ class HogDevice(): command = {"GM": _master_go, "HM": _master_halt, + "AM": _master_assert, "FM": _master_fade, "FGM": _master_fade_grand, "CM": _master_choose, diff --git a/README.md b/README.md index ba2887d..bdddfe1 100644 --- a/README.md +++ b/README.md @@ -65,7 +65,7 @@ Only features that are supported in both OSC and Comment Macros are able to be i |-------|----------|-----------|-------| | GM | Go Master | Yes | | | HM | Halt Master | Yes | | -| AM | Assert Master | no | | +| AM | Assert Master | Yes | on current master only | | RM | Release Master | no | | | RA | Relase All | Yes | | | RO | Release Others | no | |