<!doctype html>
<html>
<head>
	<script src="../dist/humanizeMidiMessageEvent.js"></script>
	<script>
		navigator.requestMIDIAccess()
		.then(function (midiAccess) {
			midiAccess.inputs.forEach(function (port, key) {
				port.onmidimessage = function (event) {
					console.log(event.data);
					console.log(humanizeMidiMessageEvent(event));
				}
			});
		})
	</script>
</head>
<body>
</body>
</html>

<!doctype html>
<html>
<head>
	<script src="../dist/humanizeMidiMessageEvent.js"></script>
	<script>
		if (typeof navigator.requestMIDIAccess !== 'function') {
			throw new Error('Browser does not support MIDI controllers.');
		}
		navigator.requestMIDIAccess()
		.then(function (midiAccess) {
			midiAccess.inputs.forEach(function (port, key) {
				port.onmidimessage = function (event) {
					console.log(event.data);
					console.log(humanizeMidiMessageEvent(event));
				}
			});
		})
	</script>
</head>
<body>
	Open your console!
</body>
</html>

Update example to throw an error if MIDI not supported.
:zap: Update example to throw an error if MIDI not supported.
