From 3b48186a79c6b21012400362dc7abda09360cf55 Mon Sep 17 00:00:00 2001 From: Kevin Matz Date: Fri, 26 Oct 2018 16:29:43 -0400 Subject: [PATCH] ListGo and ListGoto get implemented separately --- OscCommentMacroListener.py | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/OscCommentMacroListener.py b/OscCommentMacroListener.py index 10ec1da..2259688 100644 --- a/OscCommentMacroListener.py +++ b/OscCommentMacroListener.py @@ -220,10 +220,12 @@ class OscCommentMacroListener(CommentMacroListener): def exitListGo(self, ctx: CommentMacroParser.ListGoContext): for i in ctx.t.targets: - if ctx.n is not None: - list = str(i) + "." + str(ctx.n.value) - else: - list = i + logger.info("Go on List " + str(i)) + self.osc.send_message(ctx.dev, "/hog/playback/go/0", i) + + def exitListGoto(self, ctx: CommentMacroParser.ListGotoContext): + for i in ctx.t.targets: + list = str(i) + "." + str(ctx.n.value) logger.info("Go on List " + str(list)) self.osc.send_message(ctx.dev, "/hog/playback/go/0", list)