I'm working on an Electron app that can send sysex (system exclusive) MIDI messages to a MIDI device and every time I try to send the sysex message, the renderer crashes. I can send non-sysex messages (noteOn, noteOff, etc..) to the device without issue.
Here's a bit of what i'm doing:
message = [240, 126, 127, 6, 1, 247]; // device ID request
outputPort = midi.outputs.get(portID);
In the web browser, Chrome only, you need to have a secure connection and request user permission to be able to send sysex messages. I'm wondering if these two Web MIDI sysex requirements are causing this crash as I'm unclear on how to satisfy these conditions in the context of an Electron app.