W3C home > Mailing lists > Public > public-audio@w3.org > October to December 2012

Re: [Bug 20254] Add code examples

From: Jussi Kalliokoski <jussi.kalliokoski@gmail.com>
Date: Mon, 10 Dec 2012 11:53:48 +0200
Message-ID: <CAJhzemUK9Crf_rDCsOJQCejtw0ws3R5NjB05u4xS5H8a+PCFYA@mail.gmail.com>
To: James Ingram <j.ingram@netcologne.de>
Cc: public-audio@w3.org, Chris Wilson <cwilso@google.com>, Florian Bomers <w3c_bugz@bome.com>
Hi James!

On Mon, Dec 10, 2012 at 12:40 AM, James Ingram <j.ingram@netcologne.de>wrote:

> I was a bit surprised that MIDIAccess is simply going to be a global
> variable. Is it really going to be that easy? No rigmarole apart from
> navigator.getMIDIAccess()? :-)
>

Wait, what, no! :D No global variables, unless you assign the MIDIAccess
instance you get from a navigator.getMIDIAccess() to a global variable,
which is what one of the code examples seems to be implying. But yes, the
API is really simple, using it should be quite simple too. Obviously
though, in real world applications things might get hairy because of things
outside the API, such as timers not firing when you want them to, etc., but
imho the API is doing the best it can to alleviate this. :) Well, at least
aside from being accessible from workers, but we'll think about that as
soon as we've got the "bigger" issues worked out.

Cheers,
Jussi
Received on Monday, 10 December 2012 09:54:20 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 21:50:03 UTC