Page tree
Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 10 Next »



Function to remove a MIDI module from the specified layer. For example, this.parent specifies the parent layer of the script module as the layer that contains the desired MIDI module. Which MIDI module is to be removed is determined by its MidiModule object or its position. You can use getMidiModule or findMidiModules to determine the MidiModule object. The position is the number that indexes the MIDI modules in the specified layer.

Available in: Controller.


moduleOrPositionThe MidiModule object or position of the MIDI module to be removed.MidiModule or number


-- remove all MIDI modules from the program except the script module
-- find the MIDI modules in the program
modules = this.program:findMidiModules(true)
-- and remove them
for i, module in ipairs(modules) do
	if module ~= this then -- exclude script module

  • No labels