Hi there,
i'm trying to set up a widget, that sends multiple values to a module. Based on the values i want to send midi notes to a daw.
What i did so far:
- Set up a button
- Setup a custom module:
module.exports = {
oscOutFilter: function(data)
{
var {address, args, host, port} = data
if (address == '/fnord') {
// var arg1 = args[0].value
// var arg2 = args[1].value
send('midi:loopMIDI', '/note', 1, 23, 100)
return // bypass original osc message
}
return data
}
}
I can get inside the loop and access the send values, but i also get this error:
(ERROR, OSC) Malformed address: 1
So i assume the module want's to send OSC instead of MIDI. Question is: how to tell the module to send MIDI?
Thanks for any help