MIDIExplorer:
Filter:
Modality-toolkit/Classes (extension) | Libraries > Modality

MIDIExplorer
ExtensionExtension

Explore a MIDI device

Description

The functionality of MKtl relies on descriptions of the used devices. For some Controllers, and while many descriptions are already available, your device may not yet be among them. With MIDIExplorer, it is easy to create such a file for a MIDI device. For more info on how to use it, see How_to_create_a_description_file.

Class Methods

.postSrcInfo

post info on currently available sources, mainly to access uid number.

.start

start exploration, i.e. collecting statistics on all incoming MIDI messages.

Arguments:

srcID

an optional source ID - if not nil, only messages from the identified source will be collected.

.postObs

post info on the current state of observation

.stop

stop exploration.

.deviceName

find the deviceName for the observed srcID

.instructions

return instructions string to put on top of desc file.

MIDIExplorer.instructions

.compile

compile the discovered elements as an evaluable string, which can be saved as a description file, and then read as a description dict.

Arguments:

includeSpecs

Returns:

a String containing a a dict which works as a description, and contains raw list of elements

.openDoc

opens a new document containing a description string made with MIDIExplorer.compile.

.compileDesc

compile the elementsDesc from data collected by MIDIExplorer.

.verbose

get and set flag whether to post info

.trace

set verbose flag, default flag is true

.allMsgTypes

list of midi message types to catch