Correct way of sending out sysex to midiout VST3

Hey everyone,

I’m creating a vst3 plugin to handle incoming midi and slider paramaters and use these to send out midi sysex messages to a synth. I succesfully created it in max4L but now i’m building my first VST in Juce.

I need to use integers, perform some simple calculations on them and send out the midi, I read somewhere that sysex was depricated in VST3 but don’t know if that’s true.

Im using const uint8 rawSysEx[10] = {0x7F, 0x7F, 0x08, 0x02, 0x00, 0x01, midiNote1, midiNote1, 0x00, 0x00};

Is there a better way? In max4L you can use sxformat and perform simple calculations in the function itself.

Also to get midiout to work do I need to create a buffer like with midiin? If anyone would have some example code of sending out midi that would be really handy. I’m not finding a lot of Juce examples on midi handling.

Tx