MKtlDevice is an abstract interface to access an external device, e.g. a MIDI device such as a MIDI fader box, an HID device such as a joystick, devices or apps sending OSC, and so on.
Subclasses of MKtlDevice take care of accessing the device by its protocol.
This class is used mainly internally by MKtl, so you will not see it often.
all protocols supported in Modality
Find out which devices are attached.
protocols |
Optional argument for which protocols to look for, e.g. |
post |
flag to post results or not. |
Look for available connected hardware devices.
force |
Whether or not to look again if it was already done before. |
protocols |
which protocols to look for. |
Tries to open a device with the name (of the MKtl).
name |
The short name of the device to open. |
parentMKtl |
The instance of MKtl that will refer to this device. |
multiIndex |
when multiple identical devices are present, the index of the device to open. |
either an instance of MKtlDevice, or nil if no device was found.
Return the subclass that matches the protocol given.
protocol |
The protocol to look for, e.g. |
a subclass of MKtlDevice
The protocol of this subclass of MKtlDevice
a Symbol
The MKtl that this MKtlDevice belongs to.
an instance of MKtl.
The short name of the device.
a Symbol
The full device name of the device.
a String
Close the device and clean up anything that it used.
Print incoming data from the MKtlDevice or not.
bool |
a Boolean whether it should be on or off. |
a Boolean whether or not the MKtlDevice is currently tracing.
When opening a device that is not known yet by MKtl, you want to explore the device. See for a full tutorial: How_to_create_a_description_file
bool |
a Boolean to turn this on or off. |
a Boolean whether or not the device is currently being explored.
Create and open a description file for this MKtlDevice, after exploring it.
Initialize all elements and hook them up to the hardware elements.
Initialize all collectives and hook them up to the hardware elements.
De-initialize all elements and collectives.