Replies: 3 comments
-
No. Currently, you have to add a listener for all devices. Obviously, all those listeners can call the same function, though. By the way, when you have questions such as this one, you should post to GitHub Discussions instead of filing a new issue. |
Beta Was this translation helpful? Give feedback.
-
okay. Also can you provide an example of how to remove the listener |
Beta Was this translation helpful? Give feedback.
-
You can remove a listener from the You can also keep the listener in a variable and call its const myListener = WebMidi.addListener("noteon", doSomethingThenRemoveListener);
doSomethingThenRemoveListener() {
// do something
myListener.remove()
} |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Is there a way to receive midi messages from all connected midi devices simultaneously or do we still need to create a different listener for each midi devices.
Beta Was this translation helpful? Give feedback.
All reactions