The thread you linked to shows how to get MIDI access, but doesn't show you how to handle MIDI messages once you get access. What's missing from that example is something like this:
midiAccess.inputs()[0].onmidimessage = function(event){
console.log(event.receivedTime, event.data)
// do cool stuff with midi data here
}
I wrote a library, Wad.js, which I think would be perfect for you in this case. https://github.com/rserota/wad#midi-input
Basically, when Wad.js initializes, it will automatically detect all connected MIDI devices, and then log to the console all MIDI messages that they send. Once you're familiar with what your device's data look like, you can write MIDI event handler functions to handle those messages, e.g.
Wad.midiInputs[0].onmidimessage = function(event){
console.log(event.receivedTime, event.data);
};
Wad.midiInputs[1].onmidimessage = anotherMidiHandlerFunction // If you have multiple MIDI devices that you would like to use simultaneously, you will need multiple MIDI handler functions.
As of writing this, I think that MIDI is only available in Chrome as an 'experimental feature', so you'll have to enable it manually. Also, you'll need to install the jazz-plugin ( http://jazz-soft.net/doc/Jazz-Plugin/ ) to give your browser low-level MIDI access. If you still have trouble detecting MIDI