Eine aufbereitete Darstellung der Quelle

 
     
 
 
 
Anforderungen  |   Konzepte  |   Entwurf  |   Entwicklung  |   Qualitätssicherung  |   Lebenszyklus  |   Steuerung


SSL refresh_port_list.html  Interaktion und
PortierbarkeitHTML


 products/Sources/formale Sprachen/C/Firefox/dom/midi/tests/refresh_port_list.html


<!DOCTYPE html>
<html>
<head>
<title>Refresh MIDI port list test</title>
<meta http-equiv="Content-Type" content="text/html;charset=utf-8"></meta>
</head>
<body>
<script>
  var access = null;
  async function get_access() {
    access = await navigator.requestMIDIAccess({ sysex: true });
  }

  async function reset_access() {
    access = null;
  }

  async function get_num_ports() {
    return access.inputs.size + access.outputs.size;
  }

  async function add_port() {
    let addPortPromise = new Promise(resolve => {
      access.addEventListener("statechange", (event) => { dump("***** 1 event.port.name = " + event.port.name + "event.connection = " + event.port.connection + "\n"); if (event.port.connection != "open") { resolve(); } });
    });
    const outputs = access.outputs.values();
    const output = outputs.next().value;
    output.send([0x90, 0x01, 0x00]);
    await addPortPromise;
  }

  async function remove_port() {
    let removePortPromise = new Promise(resolve => {
        access.addEventListener("statechange", (event) => { dump("***** 2 event.port.name = " + event.port.name + "event.connection = " + event.port.connection + "\n"); if (event.port.connection != "open") { resolve(); } });
    });
    const outputs = access.outputs.values();
    const output = outputs.next().value;
    output.send([0x90, 0x02, 0x00]);
    await removePortPromise;
  }

  async function force_refresh() {
    const outputs = access.outputs.values();
    const output = outputs.next().value;
    output.send([0x90, 0x04, 0x00]);
  }
</script>
</body>
</html>

Messung
CHZG
8010010093

¤ Diese beiden folgenden Angebotsgruppen bietet das Unternehmen0.10Angebot  (Wie Sie bei der Firma Beratungs- und Dienstleistungen beauftragen können 2026-11-25) ¤

*Eine klare Vorstellung vom Zielzustand







                                                                                                                                                                                                                                                                                                                                                                                                     

 

Neuigkeiten

Aktuelles
Motto des Tages

Open Source Software


Gedichte
Musik
Bilder

Jenseits des Üblichen

Besucherstatistik

Besucherstatistik

Statistik
#Sources=1,189,229
#Domains=946,258