Re: [web-midi-api] Virtual MIDI ports (#45)

> but those appear to be orthogonal to having a constructor or factory

It comes down to whether we need to ask for permission or not, and if we do, the factory method has the permission model already set up (to get the MIDIAccess instance), whereas for global constructors there isn't one. That is, unless the constructor takes a MIDIAccess instance as an argument (in which case I'd argue that it doesn't make sense to detach it from the MIDIAccess) or we throw if a valid MIDIAccess instance hasn't been created during the current session.

---
Reply to this email directly or view it on GitHub:
https://github.com/WebAudio/web-midi-api/issues/45#issuecomment-23312969

Received on Thursday, 29 August 2013 03:09:06 UTC