W3C home > Mailing lists > Public > public-audio@w3.org > April to June 2012

Re: Comments on draft MIDI API

From: Dominique Hazael-Massieux <dom@w3.org>
Date: Wed, 27 Jun 2012 08:18:36 +0200
Message-ID: <1340777916.3007.3.camel@cumulustier>
To: Jussi Kalliokoski <jussi.kalliokoski@gmail.com>
Cc: Adam Goode <agoode@google.com>, public-audio@w3.org
Le mardi 26 juin 2012 à 21:43 +0300, Jussi Kalliokoski a écrit :
> I'm also thinking about changing the MIDIMessage into a dictionary as
> Dom originally suggested. Dom, wouldn't it actually mean that for
> example with sendMIDIMessage(MIDIMessage msg); you could use an
> EcmaScript Object that would have those properties instead of it
> having to be an actual instance of a MIDIMessage?


>  I can see added ease of use in this, but then again, it's used in the
> MIDIEvent as well, so it's a bit problematic.

I guess you could define the attribute for MIDIEvent to be object[], and
then define in the prose that the said objects have a structure that
matches the MIDIMessage dictionary. 

It might be worth checking with public-script-coord@w3.org (where WebIDL
is defined) whether there is a better way.


> [1] https://dvcs.w3.org/hg/audio/rev/563ce3b94a68
Received on Wednesday, 27 June 2012 06:19:09 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 19:03:05 UTC