implement Release All
This commit is contained in:
parent
3eab5b9626
commit
1d7612e57c
|
@ -145,6 +145,12 @@ class HogDevice():
|
||||||
logger.info("Choose Master " + master)
|
logger.info("Choose Master " + master)
|
||||||
self.osc.button_press(ctx.device, "/hog/hardware/choose/" + master)
|
self.osc.button_press(ctx.device, "/hog/hardware/choose/" + master)
|
||||||
|
|
||||||
|
def _release_all(self, ctx):
|
||||||
|
logger.info("Release All")
|
||||||
|
self.osc.send_message(ctx.device, "/hog/hardware/pig", buttonDOWN)
|
||||||
|
self.osc.button_press(ctx.device, "/hog/hardware/release")
|
||||||
|
self.osc.send_message(ctx.device, "/hog/hardware/pig", buttonUP)
|
||||||
|
|
||||||
def _list_go(self, ctx):
|
def _list_go(self, ctx):
|
||||||
for i in ctx.targets:
|
for i in ctx.targets:
|
||||||
list = str(i)
|
list = str(i)
|
||||||
|
@ -183,6 +189,7 @@ class HogDevice():
|
||||||
"FM": _master_fade,
|
"FM": _master_fade,
|
||||||
"FGM": _master_fade_grand,
|
"FGM": _master_fade_grand,
|
||||||
"CM": _master_choose,
|
"CM": _master_choose,
|
||||||
|
"RA": _release_all,
|
||||||
"GL": _list_go,
|
"GL": _list_go,
|
||||||
"HL": _list_halt,
|
"HL": _list_halt,
|
||||||
"RL": _list_release,
|
"RL": _list_release,
|
||||||
|
|
|
@ -67,7 +67,7 @@ Only features that are supported in both OSC and Comment Macros are able to be i
|
||||||
| HM | Halt Master | Yes | |
|
| HM | Halt Master | Yes | |
|
||||||
| AM | Assert Master | no | |
|
| AM | Assert Master | no | |
|
||||||
| RM | Release Master | no | |
|
| RM | Release Master | no | |
|
||||||
| RA | Relase All | no | |
|
| RA | Relase All | Yes | |
|
||||||
| RO | Release Others | no | |
|
| RO | Release Others | no | |
|
||||||
| FM | Fade Master | Yes | no times, no *
|
| FM | Fade Master | Yes | no times, no *
|
||||||
| FGM | Fade Grand Master | Yes | no times
|
| FGM | Fade Grand Master | Yes | no times
|
||||||
|
|
Loading…
Reference in New Issue