Nonstandard Web MIDI APIs

58 views
Skip to first unread message

Si Robertson

unread,
Apr 11, 2014, 2:16:13 PM4/11/14
to blin...@chromium.org
Hi guys,

Why are some of the Web MIDI APIs nonstandard in Chrome?

Here's a snippet of the specification ...

interface MIDIAccess : EventTarget {
  readonly attribute MIDIInputMap  inputs;
  readonly attribute MIDIOutputMap outputs;
};

In Chrome, inputs and ouputs are functions() and they return arrays. Has this been done intentionally or are the specifications changing too quickly for the guys implementing these APIs?

Adam Barth

unread,
Apr 11, 2014, 2:19:00 PM4/11/14
to Si Robertson, blin...@chromium.org
WebMIDI is in development and not yet shipping.  We're tracking the specification in our implementation, but not everything is perfectly up to date.  I wouldn't worry too much about it until we get closing to shipping the feature.

Adam

Chris Wilson

unread,
Apr 11, 2014, 2:19:52 PM4/11/14
to Adam Barth, Takashi Toyoshima, Si Robertson, blink-dev
+toyoshim

The spec has been changing, and the implementation is catching up.  The work is scheduled, but the Web MIDI eng effort is largely 20%.

The Map-like design was an early exploration of Maplike classes - so on the eng side, it's an interesting challenge to catch up with.  But the goal to do so is definitely there.  As Adam said, before sending intent to ship this will definitely be fully resolved.

Si Robertson

unread,
Apr 11, 2014, 3:24:04 PM4/11/14
to Chris Wilson, Adam Barth, Takashi Toyoshima, blink-dev
Awesome. Thanks for the feedback, guys.

Takashi Toyoshima

unread,
Apr 13, 2014, 9:32:51 PM4/13/14
to Si Robertson, Chris Wilson, Adam Barth, blink-dev
Hi, thank you for being interested in Web MIDI.

I'm preparing API updates to follow the latest spec, but it causes a compatibility break and also depends on coming new JS spec partially. So, I'm carefully taking it not to cause unnecessary compatibility breaks in the future, as I did on Promise before.

FYI, here is a revision of Web MIDI spec which Chrome implements now.

And you can check working in progress issues here.


--
Takashi Toyoshima
Software Engineer, Google
Reply all
Reply to author
Forward
0 new messages