当前位置: 动力学知识库 > 问答 > 编程问答 >

javascript - Electron - Sending Sysex message via the Web MIDI API crashes renderer

问题描述:

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);

outputPort.send(message);

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.

分享给朋友:
您可能感兴趣的文章:
随机阅读: