summaryrefslogtreecommitdiffstats
path: root/dom/midi/tests/port_ids_page_2.html
blob: 8c313b04da90cc5a17b6450e9ac5bc3cd60b6e2c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
<!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>