gecko-dev/dom/midi/tests/port_ids_page_1.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>