Function to retrieve the MidiModule object of a MIDI module in the specified layer. For example, Available in: Controller, Processor. Returns the MidiModule object of the found MIDI module. Returns Description
this.parent
defines the parent layer of the script module as the layer to be searched in. This function does not search in sublayers. A particular MIDI module can be searched by name or position. The position is the number indexing the MIDI modules in the specified layer. If several MIDI modules share the same name, only the first match will be returned. If no argument is set, the function returns the first MIDI module it finds.Arguments
nameOrPosition The name or position of the MIDI module. Set this to nil
to deactivate the search filter.string or number, optional Return Values
nil
if no MIDI module is found.Example
-- locate the first MIDI module in the program and print its name
module = this.program:getMidiModule()
if module then
print(module.name)
else
print("Could not find a MIDI module!")
end
getMidiModule(nameOrPosition)
Overview
Content Tools
3 Comments
Sabine Pfeifer
proofread done
Matthias Klag
Please reread. Thanks!
Sabine Pfeifer
proofread done