Replies: 3 comments 5 replies
-
I have never tried it but I don't see any reason why that wouldn't possible. The names will be the same but the IDs will be different.
I guess you mean "pair the inputs with the outputs"? If that's the case, the Web MIDI API currently falls short. There is a proposal to add a Do you have two devices of the same kind? I would be curious to know how they are reported at the system level and at the Web MIDI API level. If you do, could you use the code below to print out the info and post it in this thread? console.log(WebMidi.getOutputByName("name here")._midiOutput);
console.log(WebMidi.getInputByName("name here")._midiInput);
Currently, the name match method is the way to go. Until an eventual update of the Web MIDI API spec is released, maybe this is something that could be integrated within WEBMIDI.js itself (using the name match approach). Basically, the |
Beta Was this translation helpful? Give feedback.
-
I added the idea of including a |
Beta Was this translation helpful? Give feedback.
-
Two Keith McMillen BopPads simultaneously USB connected (Mac OS 10.15.7, Electron 12.0.5): It seems that this code only prints the information for one of the devices: console.log(WebMidi.getOutputByName("BopPad")._midiOutput); If instead I listen for all WebMidi.addListener("connected", midiDevice => {
if (midiDevice.port.name == "BopPad") {
if (midiDevice.port.type == "output") {
console.log(midiDevice.port._midiOutput);
}
}
}); Let me know if you want me to check any other duplicated device behavior. |
Beta Was this translation helpful? Give feedback.
-
Hello !
I'm currently developing an application where a user can select a MIDI device and do things with it
and I have multiple questions about it...
Currently I was neutralizing the IN and OUT of the names and pairing them using the names of the inputs/outputs.
But I was asking myself if at some point, two devices have the exact same name, how it would it work ?
Is there an official way for pairing inputs/outputs or the name match method is the only way to go ?
Thanks you !
Beta Was this translation helpful? Give feedback.
All reactions