hammerspoon2-docs
    Preparing search index...

    Function virtualSourceNamed

    • Creates an hs.midi object for a single MIDI source, such as one port of a multi-port device. Messages sent with sendCommand(), sendSysex() and identityRequest() go to the destination with the same name, if there is one.

      the same ARC-related reason as deviceNamed().

      Parameters

      • virtualSourceName: string

        The name of the virtual source, as returned by virtualSources()

      Returns HSMIDIDevice | null

      An HSMIDIDevice object, or nil if no virtual source has that name