首页 > 微信 > 详细

oscclient测试小程序

时间:2019-08-11 09:39:21      阅读:114      评论:0      收藏:0      [点我收藏+]
from pythonosc.udp_client import SimpleUDPClient    # 从pythonosc包里导入udp_client

ip_remote = 192.168.0.195     # 被发送到的ip
port_remote = 7008              # 远程端口

ip_localhost = 127.0.0.1      # 本机地址
port_localhost = 5005           # 本机侦听端口

client = SimpleUDPClient(ip_localhost , port_localhost)   # 测试,发给本机
# client.send_message(‘/composition/layers/2/clips/1/connect‘,[1])    # Arena会响应
client.send_message(/composition/layers/2/clear,[1])
client.send_message(/volume,1.0)   # 浮点
client.send_message(/wakeonlan,1.0)   # 浮点


# client = SimpleUDPClient(ip_remote , port_remote)   # 发给远程主机
# # client.send_message(‘/composition/layers/2/clips/1/connect‘,[1])    # Arena会响应
# client.send_message(‘/composition/layers/2/clear‘,[1])
# client.send_message(‘/volume‘,1.0)   # 浮点
# client.send_message(‘/wakeonlan‘,1.0)   # 浮点

 

oscclient测试小程序

原文:https://www.cnblogs.com/ToCenTek/p/11333791.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!