MIDI Sysex - MBS plugin example: PortMidiStreamMBS.WriteSysEx

Hello, I wondered if it was possible somebody could give me an example of how to use the PortMidiStreamMBS.WriteSysEx MIDI command? I’ve gotten all of my midi messages working but this.

A typical Sysex command would be something like this:
F0 43 10 6F 0A 00 01 03 F7

I have tried putting this in to a string in various ways without success (not being registered by my midi monitor, - the midi monitor will output this command and receive it fine). The documentation says ‘This message must be valid and contain the special start value and a EOX value on the end’.

You can also use this command with a memory block, but I am also unsure of how to do this.

Thanks,
Oliver…

You can use the DecodeHex method to decode a hex string into its binary form as a MemoryBlock:

Dim cmd As MemoryBlock = DecodeHex("F043106F0A000103F7")
2 Likes

Perfect, thanks Andrew, works a treat!