mwg API
    Preparing search index...

    Interface WebMidiConnection

    a live Web MIDI connection: how many ports feed the synth, and how to stop them

    interface WebMidiConnection {
        ports: number;
        disconnect(): void;
    }
    Index
    ports: number

    how many input ports are wired to the synth

    • detaches every port; a port wired again afterwards is a new connection

      Returns void