Created
October 3, 2022 21:03
-
-
Save misterhay/214a79ef43cdc82ae6d1be17e7449b61 to your computer and use it in GitHub Desktop.
A quick demo of X32 OSC functions
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| from pythonosc import udp_client | |
| from time import sleep | |
| client = udp_client.SimpleUDPClient('192.168.1.126', 10023) | |
| for x in range(5): | |
| for i in range(9): | |
| client.send_message('/ch/0'+str(i)+'/mix/on', 0) | |
| client.send_message('/ch/0'+str(i)+'/mix/fader', 0.1) | |
| sleep(0.5) | |
| for c in range(16): | |
| client.send_message('/ch/0'+str(i)+'/config/color', c) | |
| sleep(.2) | |
| client.send_message('/ch/0'+str(i)+'/mix/on', 1) | |
| client.send_message('/ch/0'+str(i)+'/mix/fader', 0.8) | |
| sleep(0.5) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment