Hi,
The best way to handle this is using a custom module which you separate the arguments and send them to the interface:
module.exports = {
oscInFilter: function(data) {
var {address, args, host, port} = data
// filter incoming message with specific address
if (address === '/accelerometer/address') {
// get values
var pitch = args[0].value // first argument
var roll = args[1].value // second argument
var yaw = args[2].value // etc
// send values to OSC client
receive('/pitch', pitch)
receive('/roll', roll)
receive('/yaw', yaw)
return // bypass original message
}
return {address, args, host, port}
}
}
Reference: