Skip to content
This repository has been archived by the owner on Jun 9, 2023. It is now read-only.

Latest commit

 

History

History
182 lines (153 loc) · 14.4 KB

plugins.core.midi.manager.md

File metadata and controls

182 lines (153 loc) · 14.4 KB

docs » plugins.core.midi.manager


MIDI Manager Plugin.

Submodules

API Overview

API Documentation

Variables

Signature plugins.core.midi.manager.defaultLayout -> table
Type Variable
Description Default MIDI Layout
Signature plugins.core.midi.manager.defaultLoupedeckLayout -> table
Type Variable
Description Default Loupedeck Layout
Signature plugins.core.midi.manager.defaultLoupedeckPlusLayout -> table
Type Variable
Description Default Loupedeck+ Layout
Signature plugins.core.midi.manager.lastActiveBundleID -> string
Type Variable
Description The last Active Bundle ID. Used for AudioSwift workaround.
Signature plugins.core.midi.manager.learningMode -> boolean
Type Variable
Description Whether or not the MIDI Manager is in learning mode.
Signature plugins.core.midi.manager.maxItems -> number
Type Variable
Description The maximum number of MIDI items per bank.

Functions

Signature plugins.core.midi.manager.devices() -> table
Type Function
Description Gets a table of Physical MIDI Device Names.
Parameters
  • None
Returns
  • A table of Physical MIDI Device Names.

| Signature | plugins.core.midi.manager.getDevice(deviceName, virtual) -> hs.midi object | nil | | -----------------------------------------------------|---------------------------------------------------------------------------------------------------------| | Type | Function | | Description | Gets a MIDI Device. | | Parameters |

  • deviceName - The device name.
  • virtual - A boolean that defines whether or not the device is virtual.
| | Returns |
  • A hs.midi object or nil if no MIDI device by that name exists.
|

Signature plugins.core.midi.manager.getItem(item, button, group) -> table
Type Function
Description Gets a MIDI item from Preferences.
Parameters
  • item - The item you want to get.
  • button - Button ID as string
  • group - Group ID as string
Returns
  • A table otherwise nil
Signature plugins.core.midi.manager.start() -> boolean
Type Function
Description Starts the MIDI Plugin
Parameters
  • None
Returns
  • None
Signature plugins.core.midi.manager.stop() -> boolean
Type Function
Description Stops the MIDI Plugin
Parameters
  • None
Returns
  • None
Signature plugins.core.midi.manager.update() -> none
Type Function
Description Updates the MIDI Watchers.
Parameters
  • None
Returns
  • None
Signature plugins.core.midi.manager.virtualDevices() -> table
Type Function
Description Gets a table of Virtual MIDI Source Names.
Parameters
  • None
Returns
  • A table of Virtual MIDI Source Names.

Fields

Signature plugins.core.midi.manager.activeBanks <cp.prop: table>
Type Field
Description Table of active banks for each application.
Signature plugins.core.midi.manager.activeLoupedeckBanks <cp.prop: table>
Type Field
Description Table of active banks for each application.
Signature plugins.core.midi.manager.activeLoupedeckPlusBanks <cp.prop: table>
Type Field
Description Table of active banks for each application.
Signature plugins.core.midi.manager.displayMessageWhenChangingBanks <cp.prop: boolean>
Type Field
Description Display message when changing banks?
Signature plugins.core.midi.manager.enabled <cp.prop: boolean>
Type Field
Description Enable or disable MIDI Support.
Signature plugins.core.midi.manager.enabledLoupedeck <cp.prop: boolean>
Type Field
Description Enable or disable MIDI Loupedeck Support.
Signature plugins.core.midi.manager.enabledLoupedeckPlus <cp.prop: boolean>
Type Field
Description Enable or disable MIDI Loupedeck+ Support.
Signature plugins.core.midi.manager.numberOfMidiDevices -> <cp.prop: number>
Type Field
Description Total number of MIDI Devices detected (including both physical and virtual).