8000 run-console.py: Updated AbletonOSCClient syntax · steeltrack/AbletonOSC@d18f447 · GitHub
[go: up one dir, main page]

Skip to content

Commit

Permalink
run-console.py: Updated AbletonOSCClient syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
ideoforms committed Jan 2, 2024
1 parent ba0822f commit d18f447
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions run-console.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,14 +33,14 @@ def complete(self, text, state):
completer = LiveAPICompleter(words)
readline.set_completer(completer.complete)

def print_error(args):
def print_error(address, args):
print("Received error from Live: %s" % args)

def main(args):
client = AbletonOSCClient(args.hostname, args.port)
if args.verbose:
client.verbose = True
client.add_handler("/live/error", print_error)
client.set_handler("/live/error", print_error)
client.send_message("/live/api/reload")

readline.parse_and_bind('tab: complete')
Expand Down

0 comments on commit d18f447

Please sign in to comment.
0