Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

/live/song/get/track_names doesn't return anything #131

Open
CoponatRecords opened this issue May 25, 2024 · 1 comment
Open

/live/song/get/track_names doesn't return anything #131

CoponatRecords opened this issue May 25, 2024 · 1 comment

Comments

@CoponatRecords
Copy link

/live/song/get/num_tracks works flawlessly, but I can't seem to get the similar /live/song/get/track_names working

@CoponatRecords
Copy link
Author

``def osc_handler(*args):

n = args[-2]

if args[0] == '/live/song/get/num_tracks':

    print('Number of tracks - '+str(args[1]))
    global number_of_tracks
    number_of_tracks =  int(args[1])

elif args[0] == '/live/song/get/track_names':

    print('track_names - '+str(args))


elif args[0] == '/live/track/get/output_meter_level':
    with open("Track_"+str(n)+"_status.txt", "w") as file:
        file.write(str(args[-1]))
        file.close()

else:
    print(args[0])

used with

server_thread = threading.Thread(target=server.serve_forever).start()
disp.map("/live/track/get/output_meter_level", osc_handler)

client.send_message("/live/song/get/num_tracks", 99)
disp.map("/live/song/get/num_tracks", osc_handler)

disp.map("/live/song/get/track_data", osc_handler)
```

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant