Replies: 5 comments
-
Thank you for the notice. |
Beta Was this translation helpful? Give feedback.
-
The code is a very basic note on/off setup via WebMidi
I have done some tracing, WebMidi is only calling the underlying JZZ.js library twice (once for on, once for off). |
Beta Was this translation helpful? Give feedback.
-
I am running the following code and I don't see any errors: const {WebMidi} = require('webmidi');
WebMidi
.enable({sysex: true})
.then(onEnabled)
.catch(err => console.log(err));
function onEnabled() {
let output = WebMidi.outputs[0];
let channel = output.channels[1];
console.log('sendNoteOn');
channel.sendNoteOn("C3", {attack: 1});
console.log('sendNoteOn done');
setTimeout(() => {
console.log('sendNoteOff');
channel.sendNoteOff("C3");
console.log('sendNoteOff done');
}, 1000);
} Windows 11 Home, Node v19.0.0, webmidi v3.1.4, jzz v1.5.9. |
Beta Was this translation helpful? Give feedback.
-
Thanks heaps for taking the time to look into this. That works for me as well. but helps narrow it down. My output is set to a LoopMidi port on Windows 11. I can see the LoopMidi port receive the event (via MidiView), and Reaper is playing the correct note. |
Beta Was this translation helpful? Give feedback.
-
I've been digging into this more but I can't find the issue. |
Beta Was this translation helpful? Give feedback.
-
Encountered this using the WebMIDI wrapper library.
Node keeps nagging me with a message saying:
(node:20096) [DEP0168] DeprecationWarning: Uncaught N-API callback exception detected, please run node with option --force-node-api-uncaught-exceptions-policy=trueto handle those exceptions properly.
When I use -force-node-api-uncaught-exceptions-policy=trueto I can see the exception details inside JZZ.
MIDI messages seem to be sent correctly.
The MIDI values in the error seem to correspond to the Note and Velocity being sent.
The errors appear to be triggered via a timeout, they are reported aftert the program has completed.
There are more errors than actual send events - like something is caught in a loop internally.
Beta Was this translation helpful? Give feedback.
All reactions