Skip to content

sendsysex vs. send #350

Answered by djipco
schoko11 asked this question in Q&A
Mar 18, 2023 · 2 comments · 1 reply
Discussion options

You must be logged in to vote

The first parameter of the sendSysex() method is the MIDI manufacturer's identification number. Those are either 1 or 3 bytes long. WEBMIDI.js does not verify the length of the first parameter and simply merges it with the data to be sent (second parameter).

So, if it works, it is probably because what you needed is this:

midiOutput.sendSysex( [0, 32, 51], [0, 127, 66, 0, 50, 0] );

The [0, 32, 51] array identifies the manufacturer (e.g. Access Music Electronics) and the second array is the actual device-specific data to send (this varies from one manufacturer to another).

any ideas why i can't use midiOutput.sendSysex( 127,[127, 66, 0, 50, 0] );

Despite their name, Universal System Excl…

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@schoko11
Comment options

Answer selected by schoko11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants