rserota / wad

Web Audio DAW. Use the Web Audio API for dynamic sound synthesis. It's like jQuery for your ears.
MIT License
1.9k stars 160 forks source link

navigator.requestMIDIAccess() method breaks code #16

Closed bignimbus closed 10 years ago

bignimbus commented 10 years ago

The following line causes WAD to break in Chrome Version 35.0.1916.153 m (Windows 8.1):


// line 871 in WAD.js
navigator.requestMIDIAccess().then(onSuccessCallback, onErrorCallback);
bignimbus commented 10 years ago

Console returns: Uncaught TypeError: undefined is not a function.

Will try to hack a solution in the meantime.

rserota commented 10 years ago

I think I know what the issue is. For one thing, MIDI access is an experimental feature in Chrome, and it has to be enabled separately. Check this out: http://stackoverflow.com/questions/21821121/web-midi-api-not-implemented-in-chrome-canary

Also, you may need to install the Jazz plugin from http://jazz-soft.net/ to give your browser low level midi access. I've done both of these things, and MIDI works fine on my system (Chrome, MacOS 10.9).

Thank you for adding this fix. I certainly don't expect people to enable experimental features in order to do simple things with WAD.