Can someone maybe some examples for the sendmidi command?
modul8.sendMidi(endpoint,channel,message,value1,value2)
Once I have a working basis to use I think I can modify and duplicate. From what I can tell the endpoint is the midi controller you're talking to, and the channel is, well, the channel. But the message can be string or a number so if its a crossfader is this the number position of the fader (0-127) or something else? What are the 2 values meant to include.
From the manual:
It is possible to send midi messages from Modul8 to an external or virtual midi device.
The function to send midi message is:
modul8.sendMidi(endpoint,channel,message,value1,value2)
The endpoint is the name of the device that should receive the message. If you pass an integer instead of a string, it will be the index in the device list (for instance zero for the first device). You can obtain the midi device list, using the modul8.getMidiDestinationsList() function.
The message can be either directly a numerical message or a string. For string, possible values are: NOTE_OFF, NOTE_ON, POLY_AFTERTOUCH, CONTROL_CHANGE, MODE_CHANGE, AFTERTOUCH, PITCHBEND, SYSTEM.
The value1 and value2 represents the midi value. Possible values depend of the message type.