recieve Sysex messages

Status
Not open for further replies.

Salgado

New member
Hello!
Hope you can help me, probably is easy the answer but I am totally struggling with Sysex.
I am sending via Webmidi, SysEx message to Teensy

for example

Code:
WebMidi.getOutputByName('Teensy MIDI').sendSysex(66, [10, 23, 31, 48, 52, 100]);

I am trying to get in Teensy the array [10, 23, 31, 48, 52, 100] to assign these values to different variables.

I know that this function receives Sysex, but how can I get this array?

Code:
void mySystemExclusive(byte *data, unsigned int length) {

  
}

Thanks so much in advance!
 
Hi,
Take a look at the example
EXAMPLES|TEENSY|USB_MIDI|InputFunctionsComplete
It should help you,
All the best,
Alan
 
Hello AlanK,
thanks for the reply.
yes, I started with this example. I think it is used a function calls "printBytes" to transform the income values to HEX (hexadecimal) values.

I wondering if there is a simple way without this conversion. But now I found another example calls "InputRead" that uses usbMIDI.getSysExArray(). I think that is what I am looking for.

Thanks!
 
Status
Not open for further replies.
Back
Top