webmidi: noteoff events not being fired.
I have the following code;
midiDevice.addListener('noteon', (e) => {
console.log("on")
let data = normalizeMidi(e.note.number, sharp)
start(data)
});
midiDevice.addListener('noteoff', (e) => {
console.log("off")
let data = normalizeMidi(e.note.number, sharp)
stop(data)
});
When I press a note button on my midi keyboard noteon is triggered when i release the button noteoff isn’t. I know this because nothing is showing up in the console for off but on is fired twice.
About this issue
- Original URL
- State: closed
- Created 2 years ago
- Comments: 27 (14 by maintainers)
I know this feeling too well.