implement Page Change
This commit is contained in:
parent
d3c497c837
commit
345c51e6ca
|
@ -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
|
||||
}
|
||||
|
|
10
README.md
10
README.md
|
@ -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 | |
|
||||
|
|
Loading…
Reference in New Issue