From d28d682976b5cf61193a88aac48c3fa9f6f59df8 Mon Sep 17 00:00:00 2001 From: Tristan Rowley Date: Wed, 12 Feb 2020 23:32:36 +0000 Subject: [PATCH] Fix osc input so it listens to the network again, commented-out stub for showing clip progress in leds (doesnt work too well so not enabled) --- plugins/MidiFeedbackAPCKey25Plugin.py | 7 +++++++ user_input/osc_input.py | 2 +- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/plugins/MidiFeedbackAPCKey25Plugin.py b/plugins/MidiFeedbackAPCKey25Plugin.py index cb28bf4..48c4616 100644 --- a/plugins/MidiFeedbackAPCKey25Plugin.py +++ b/plugins/MidiFeedbackAPCKey25Plugin.py @@ -133,6 +133,13 @@ class MidiFeedbackAPCKey25Plugin(MidiFeedbackPlugin): else: colour = self.COLOUR_OFF self.set_status(command='note_on', note=self.NOTE_CLIP_STATUS_ROW+i, velocity=colour) + + """ # doesnt really work well, but shows progress of clip in leds + if plugin.is_playing() and not plugin.is_paused(): + for i in range(0,plugin.MAX_CLIPS): + if i==int(plugin.position*plugin.MAX_CLIPS): + self.set_status(command='note_on', note=self.NOTE_CLIP_STATUS_ROW+i, velocity=self.COLOUR_GREEN) + """ except Exception as e: pass #print ("Warning: Failed when running plugin feedback for ShaderLoopRecordPlugin:\t%s" % str(e)) diff --git a/user_input/osc_input.py b/user_input/osc_input.py index bc379c8..7edbfc6 100644 --- a/user_input/osc_input.py +++ b/user_input/osc_input.py @@ -21,7 +21,7 @@ class OscInput(object): def setup_osc_server(self): server_parser = argparse.ArgumentParser() - server_parser.add_argument("--ip", default="127.0.0.1", help="the ip") + server_parser.add_argument("--ip", default="0.0.0.0", help="the ip") server_parser.add_argument("--port", type=int, default=5433, help="the port") server_args = server_parser.parse_args()