oscclient small test program

from pythonosc.udp_client Import SimpleUDPClient     # imported from pythonosc udp_client bag 

ip_remote = ' 192.168.0.195 '      # is transmitted to the IP 
port_remote = 7008               # remote port 

ip_localhost = ' 127.0.0.1 '       # local address 
port_localhost = 5005            # native Investigation listening port 

Client = SimpleUDPClient (ip_localhost, port_localhost)    # test, the unit issued 
# client.send_message ( '/ Composition / Layers / 2 / CLIPS /. 1 / Connect', [. 1]) # Arena responds 
client.send_message ( '/ Composition / Layers / 2 / Clear ' , [. 1 ]) 
client.send_message ( ' / Volume ' , 1.0)    # floating point 
client.send_message ( ' / WakeOnLan ' , 1.0)    # floating point 


# Client = SimpleUDPClient (ip_remote, port_remote ) to the remote host # 
# # client.send_message ( '/ Composition / Layers / 2 / CLIPS /. 1 / Connect', [. 1]) responds Arena # 
# client.send_message ( '/ Composition / Layers / 2 / Clear' , [. 1]) 
# client.send_message ( '/ Volume', 1.0) floating point # 
# client.send_message ( '/ WakeOnLan', 1.0) # floating point

 

Guess you like

Origin www.cnblogs.com/ToCenTek/p/11333791.html