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)

This commit is contained in:
Tristan Rowley
2020-02-12 23:32:36 +00:00
parent 421e2dc6ed
commit d28d682976
2 changed files with 8 additions and 1 deletions

View File

@@ -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))

View File

@@ -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()