Module osc

osc

Functions

event (path, args, from) callback executed when seamstress receives OSC overwrite in user scripts
send ([to], path[, args]) send OSC message
register (path, fn[, typespec]) registers OSC handler an alternative to complex osc.event functions; register a lua function that will respond to only the given path (and, optionally, args matching the typespec)


Functions

event (path, args, from)
callback executed when seamstress receives OSC overwrite in user scripts

Parameters:

  • path string an osc path /like/this
  • args table arguments from the OSC message
  • from {host,port} table containing sender information
send ([to], path[, args])
send OSC message

Parameters:

  • to {host,port} address (both strings) (optional)
  • path string an osc path /like/this
  • args table an array of arguments to the OSC message (optional)
register (path, fn[, typespec])
registers OSC handler an alternative to complex osc.event functions; register a lua function that will respond to only the given path (and, optionally, args matching the typespec)

Parameters:

  • path string an osc path /like/this
  • fn function a lua function that handles messages matching the path
  • typespec string a list of characters specifying the types expected by fn eg. "iifs" for two integers, a floating point number and a string (optional)
generated by LDoc 1.5.0 Last updated 2024-01-13 13:12:10