I am trying to use the WebMidi.js library to read inputs from my midi controller.
When I try to log the inputs or outputs, it comes up as an empty array. Here is my code:
WebMidi.enable(function (err) {
if (err) {
console.log("WebMidi could not be enabled.", err);
} else {
console.log("WebMidi enabled!");
console.log(WebMidi.inputs);
console.log(WebMidi.outputs);
}
});
The log I get is 2 empty arrays for input and output.
And here are pictures of my Midi Studio setup in Mac. I'm not sure if I'm supposed to do some extra configuration here to make my Roland A-PRO show up as an input/output. I see that it is grayed out which makes me think it must need some extra configuration.
The controller works when I run it through Ableton, however.


example for vanilla JS
run example in browser https://surikov.github.io/webaudiofont/examples/midikey.html