1
0
Fork 0

implement Page Change

This commit is contained in:
Kevin Matz 2018-10-22 18:16:08 -04:00
parent d3c497c837
commit 345c51e6ca
2 changed files with 19 additions and 6 deletions

View File

@ -213,6 +213,18 @@ class HogDevice():
logger.info("Stop Macro " + str(i))
self.osc.send_message(ctx.device, "/hog/playback/release/2", i)
def _page_change(self, ctx):
if ctx.number is not None:
logger.error("ERROR: changing page by number is unsupported.")
return
dir = ctx.children[1].getText()
if dir == '+':
logger.info("Next Page")
self.osc.button_press(ctx.device, "/hog/hardware/nextpage")
elif dir == '-':
logger.info("Previous Page")
self.osc.button_press(ctx.device, "/hog/hardware/backpage")
command = {"GM": _master_go,
"HM": _master_halt,
"AM": _master_assert,
@ -229,5 +241,6 @@ class HogDevice():
"RS": _scene_release,
"GK": _macro_go,
"HK": _macro_halt,
"RK": _macro_release
"RK": _macro_release,
"CP": _page_change
}

View File

@ -65,12 +65,12 @@ 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 | Yes | on current master only |
| RM | Release Master | Yes | on current master only |
| AM | Assert Master | Partial | on current master only |
| RM | Release Master | Partial | on current master only |
| RA | Relase All | Yes | |
| RO | Release Others | no | |
| FM | Fade Master | Yes | no times, no * |
| FGM | Fade Grand Master | Yes | no times |
| FM | Fade Master | Partial | no times, no * |
| FGM | Fade Grand Master | Partial | no times |
| CM | Choose Master | Yes | |
| GL | Go List | Yes | |
| HL | Halt List | Yes | |
@ -84,7 +84,7 @@ Only features that are supported in both OSC and Comment Macros are able to be i
| HS | Halt Scene | Yes | |
| AS | Assert Scene | no | |
| RS | Release Scene | Yes | |
| CP | Change Page | no | |
| CP | Change Page | Partial | only CP+ and CP- |
| RV | Recall View | no | |
| ET | Enable Timecode | no | |
| DT | Disable Timecode | no | |