模块 osc

osc设备

norns脚本参考 有此模块的示例。

函数

event (path, args, from) 当接收到osc事件时的静态回调。
send (to, path, args) 发送osc事件的静态方法。
cleanup () 清除处理程序。


函数

event (path, args, from)
当接收到osc事件时的静态回调。 用户脚本可以重新定义。

参数:

  • path string : osc消息路径
  • args string : osc消息参数
  • from table : 包含源地址的{host, port}表
send (to, path, args)
发送osc事件的静态方法。

参数:

  • to table : 包含目标地址的{host, port}表
  • path string : osc消息路径
  • args string : osc消息参数
cleanup ()
清除处理程序。