docs: custom module infos
This commit is contained in:
parent
5cdbf53f6a
commit
be3b5bca4a
1 changed files with 11 additions and 4 deletions
|
|
@ -11,16 +11,23 @@ It must be of the following form:
|
|||
|
||||
return {
|
||||
oscInFilter:function(data){
|
||||
// Filter incomming osc messages
|
||||
|
||||
var {address, args, host, port} = data
|
||||
|
||||
// do what you want
|
||||
|
||||
// return data if you want the message to be processed (and sent)
|
||||
// return data if you want the message to be processed
|
||||
return data
|
||||
|
||||
},
|
||||
oscOutFilter:function(data){
|
||||
// Filter outgoing osc messages
|
||||
|
||||
// same as oscInFilter
|
||||
|
||||
// return data if you want the message to be and sent
|
||||
return data
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -30,6 +37,6 @@ It must be of the following form:
|
|||
|
||||
The module is executed in a restricted context, only a few globals are available :
|
||||
|
||||
- `console` object
|
||||
- `sendOsc` function
|
||||
- `receiveOsc` function
|
||||
- `console`: `object`
|
||||
- `sendOsc`: `function({address, args, host, port})`
|
||||
- `receiveOsc`: `function({address, args, host, port})`
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue