summaryrefslogtreecommitdiffstats
path: root/dom/midi/tests/port_ids_page_1.html
blob: 31dadad4a5617e9e4475249e68fe4ba653354a25 (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>