Re: [Bug 20254] Add code examples

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