djipco / webmidi

Tame the Web MIDI API. Send and receive MIDI messages with ease. Control instruments with user-friendly functions (playNote, sendPitchBend, etc.). React to MIDI input with simple event listeners (noteon, pitchbend, controlchange, etc.).
Apache License 2.0
1.53k stars 115 forks source link

Receive midi messages from all connected devices simultaneously #258

Closed elmcapp closed 2 years ago

elmcapp commented 2 years ago

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.

djipco commented 2 years ago

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.