Skip to content

Commit

Permalink
sysex fix
Browse files Browse the repository at this point in the history
  • Loading branch information
josephdadams committed Sep 9, 2023
1 parent 434b75c commit da649c2
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
7 changes: 6 additions & 1 deletion midi.js
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,12 @@ function sendMIDI(midiObj, callback) {
msg = BuildMSC(midiObj.deviceid, midiObj.commandformat, midiObj.command, midiObj.cue, midiObj.cuelist, midiObj.cuepath);
break;
case 'sysex':
msg = midiObj.message;
try {
msg = midiObj.message.split(',');
}
catch(error) {
//some error converting the message into an array, like maybe missing commas
}
break;
default:
break;
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "midi-relay",
"productName": "midi-relay",
"version": "3.1.1",
"version": "3.1.2",
"description": "Listens for HTTP requests with JSON payload and relays MIDI/MSC commands on local ports.",
"license": "MIT",
"repository": "josephdadams/midi-relay",
Expand Down

0 comments on commit da649c2

Please sign in to comment.