hammerspoon2-docs
    Preparing search index...

    Function deviceNamed

    • Creates an hs.midi object for a physical device. new/alloc/copy-prefixed method names, which have special meaning under Objective-C's ARC ownership conventions.

      Parameters

      • deviceName: string

        The name of the device, as returned by devices()

      Returns HSMIDIDevice | null

      An HSMIDIDevice object, or nil if no device has that name