osc: use the same args scheme for input and output for consistency (and strip out args' type property before sending to clients)
This commit is contained in:
parent
9136dab52b
commit
e7ec58d5e2
2 changed files with 12 additions and 3 deletions
|
|
@ -17,8 +17,13 @@ It must be of the following form:
|
|||
|
||||
// do what you want
|
||||
|
||||
// address = string
|
||||
// args = array of {value, type} objects
|
||||
// host = string
|
||||
// port = integer
|
||||
|
||||
// return data if you want the message to be processed
|
||||
return data
|
||||
return {address, args, host, port}
|
||||
|
||||
},
|
||||
oscOutFilter:function(data){
|
||||
|
|
@ -27,7 +32,7 @@ It must be of the following form:
|
|||
// same as oscInFilter
|
||||
|
||||
// return data if you want the message to be and sent
|
||||
return data
|
||||
return {address, args, host, port}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue