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)