How to open midi keyboard in web midi api?

Link: Browsers in 2013 with the Web MIDI API?

I am currently running Chrome 34.0.1847.116 on OS 10.9.2 and experimenting with the Web Midi API. After enabling chrome: // flags / # enable-web-midi, I can get the midiAccess object by pasting the following code from http://www.w3.org/TR/webmidi/ in the DevTools console.

var midi = null;  // global MIDIAccess object

function onMIDISuccess( midiAccess ) {
  console.log( "MIDI ready!" );
  midi = midiAccess;  // store in the global (in real usage, would probably keep in an object instance)
}
function onMIDIFailure(msg) {
console.log( "Failed to get MIDI access - " + msg );
}
navigator.requestMIDIAccess().then( onMIDISuccess, onMIDIFailure );

When I request midi.inputs () and midi.outputs (), the returned list contains only IAC bus devices. My MIDI keyboard (connected to the Turtle Beach USB adapter adapter) does not appear. While trying to diagnose the problem, I still found the following:

, Chrome -IAC MIDI-?

+1
1

( ) cwilso . ( -midi ).

, MIDI API -.

+1

All Articles