cwilso / WebMIDIAPIShim

Polyfill using the Jazz NPAPI MIDI plugin to implement the Web MIDI API on Mac and Windows.
380 stars 53 forks source link

Make available on Github pages! #8

Closed marcoscaceres closed 11 years ago

marcoscaceres commented 11 years ago

It would be great if you could make this available on GH pages... having to clone it, etc. is a slight pain.

cwilso commented 11 years ago

An excellent idea!

http://cwilso.github.com/WebMIDIAPIShim/

notator commented 11 years ago

When I hit the button on the above link, I get the "Starting up MIDI..." message but an exception is thrown at WebMIDIAPI.js line 51: the performance.now() method does not exist. I think it would work if you could fall back on performance.webkitNow(). Elsewhere too? I'm on Windows Vista Ultimate 64bit, Browser: Chrome Version 23.0.1271.97 m

cwilso commented 11 years ago

Refresh, should be fixed now.

notator commented 11 years ago
Am 12.12.2012 22:48, schrieb Chris
  Wilson:

  Refresh, should be fixed now.

    —
    Reply to this email directly or view
      it on GitHub. 

I've been doing "Hard reload"s sporadically for the past 15 minutes.
The code hasn't changed...
best,
j-- 

www.james-ingram-act-two.de

cwilso commented 11 years ago

Whoops! Sorry, only updated the master repo. Try again now.

notator commented 11 years ago

I can see where you changed the code (line 7) but I still get an exception (now at line 54). Simple windows.performance.webkitNow() works for me.

Talk to you again tomorrow. And so to bed. :-) j

cwilso commented 11 years ago

Grr. Try one more time.

notator commented 11 years ago

Its now working. Thanks!

notator commented 11 years ago

I've just tried clicking the button again, and now get an exception at line 64 of (program): "Uncaught TypeError: Object # has no method 'getMIDIAccess'".

Windows Vista Ultimate 64bit, Browser: Chrome Version 23.0.1271.97 m

cwilso commented 11 years ago

Yup - the spec changed. It's now called "requestMIDIAccess".

I just polyfilled the old name too, though, so it should work again now.

notator commented 11 years ago

Great, thanks. Its working again.