hammerspoon2-docs
    Preparing search index...

    Function deviceCallback

    • Sets or removes a callback fired whenever the set of connected MIDI devices or virtual sources changes. The callback receives two arguments: the current result of devices() and the current result of virtualSources().

      Parameters

      • fn: ((devices: string[], virtualSources: string[]) => void) | null

        The function to call on any MIDI setup change, or null to remove it

      Returns void