mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-13 18:27:35 +00:00
604c324521
Differential Revision: https://phabricator.services.mozilla.com/D146564
18 lines
421 B
HTML
18 lines
421 B
HTML
<!DOCTYPE html>
|
|
<html>
|
|
<head>
|
|
<title>Stable MIDI port id test</title>
|
|
<meta http-equiv="Content-Type" content="text/html;charset=utf-8"></meta>
|
|
</head>
|
|
<body>
|
|
<script>
|
|
async function get_first_input_id() {
|
|
let access = await navigator.requestMIDIAccess({ sysex: false });
|
|
const inputs = access.inputs.values();
|
|
const input = inputs.next();
|
|
return input.value.id;
|
|
}
|
|
</script>
|
|
</body>
|
|
</html>
|