diff --git a/OscMacroDefinitions.py b/OscMacroDefinitions.py index d1217b9..00c7fd4 100644 --- a/OscMacroDefinitions.py +++ b/OscMacroDefinitions.py @@ -198,6 +198,21 @@ class HogDevice(): logger.info("Release Scene " + str(i)) self.osc.send_message(ctx.device, "/hog/playback/release/1", i) + def _macro_go(self, ctx): + i = ctx.number.value + logger.info("Go on Macro " + str(i)) + self.osc.send_message(ctx.device, "/hog/playback/go/2", i) + + def _macro_halt(self, ctx): + i = ctx.number.value + logger.info("Pause Macro " + str(i)) + self.osc.send_message(ctx.device, "/hog/playback/halt/2", i) + + def _macro_release(self, ctx): + i = ctx.number.value + logger.info("Stop Macro " + str(i)) + self.osc.send_message(ctx.device, "/hog/playback/release/2", i) + command = {"GM": _master_go, "HM": _master_halt, "AM": _master_assert, @@ -211,5 +226,8 @@ class HogDevice(): "RL": _list_release, "GS": _scene_go, "HS": _scene_halt, - "RS": _scene_release + "RS": _scene_release, + "GK": _macro_go, + "HK": _macro_halt, + "RK": _macro_release } diff --git a/README.md b/README.md index bcda93e..c7aab45 100644 --- a/README.md +++ b/README.md @@ -92,9 +92,9 @@ Only features that are supported in both OSC and Comment Macros are able to be i | MS | Midi String | no | possible? | | MN | Midi Note | no | | | RN | Reset Node | no | | -| GK | Go Keystroke Macro | no | | -| HK | Pause Keystroke Macro | no | | -| RK | Stop Keystroke Macro | no | . | +| GK | Go Keystroke Macro | Yes | | +| HK | Pause Keystroke Macro | Yes | | +| RK | Stop Keystroke Macro | Yes | . | ## Future Work