custom module: expose messages converted from midi input to custom module (#266)

This commit is contained in:
jean-emmanuel 2018-04-06 23:09:08 +02:00
parent 711688df7f
commit c2e9232a90
2 changed files with 7 additions and 1 deletions

View file

@ -8,6 +8,8 @@
- zeroconf: unpublish when shutting down
- widgets
- modal: added `popupLeft` and `popupTop` properties
- custom module
- messages converted from midi inputs can be filtered
## 0.28.3

View file

@ -197,7 +197,11 @@ if (customModule.init) {
customModule.init()
}
if (midi) midi.init(receiveOsc)
if (midi) midi.init((data)=>{
var data = oscInFilter({address: data.address, args: data.args, host: data.host, port: data.port})
if (!data) return
receiveOsc(data)
})
module.exports = {