You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is there a way we can listen for midi messages coming from any device connected to the computer without needing to select a midi input device to listen for. Basically if 2 midi devices are connected to the computer we can listen to both devices same time
Yes I know that WebMidi.inputs is an array of midi inputs but what I am hoping to do is add an event listen that will listen to all midi message across all midi devices. Lets say that I have 3 midi controllers I would like to console log all "note on" messages from all 3 midi controllers. Basically I don't want to monitor 1 input device but I want to monitor all i midi devices
Is there a way we can listen for midi messages coming from any device connected to the computer without needing to select a midi input device to listen for.
Currently, there is no way to automatically do what you describe. Of course, you can always add listeners to all devices like @takyano suggested.
Having said that, it might be interesting to add this functionality. Currently, in version 3.0.0-alpha.5, you can add listeners at the device level and at the channel level. I don't see why we couldn't do the same at the WebMidi.js level. I added this suggestion to the enhancements to evaluate in the wiki.
Is there a way we can listen for midi messages coming from any device connected to the computer without needing to select a midi input device to listen for. Basically if 2 midi devices are connected to the computer we can listen to both devices same time
`var input = WebMidi.getInputByName("ALL CONNECTED MIDI DEVICES");
input.addListener('pitchbend', "all", function(e) {
console.log("Pitch value: " + e.value);
});`
The text was updated successfully, but these errors were encountered: