Skip to content

RackDevice

Represents a Rack — Instrument, Drum, Audio Effect, or MIDI Effect — as a Device whose chains and macro controls are exposed to the LOM. The RackDevice class extends Device with the chain list, macro mappings, and variation/preset state unique to racks.

This class represents a Rack device. From Live’s runtime docstring.

Inherited from LomObject

Get the canonical parent of the Device. From Live’s runtime docstring.

Inherited from Device

Returns true if the Device has the capability to AB compare. From Live’s runtime docstring.

Returns true if the device is a rack. From Live’s runtime docstring.

Returns true if the device is a drum rack. From Live’s runtime docstring.

Return const access to the name of the device’s class name as displayed in Live’s browser and device chain From Live’s runtime docstring.

Return const access to the name of the device’s class. From Live’s runtime docstring.

Returns whether the Device has loaded the preset in compare slot B. Only relevant if can_compare_ab, otherwise errors. From Live’s runtime docstring.

Return the type of the device. From Live’s runtime docstring.

return True, if this Rack contains a rack instrument device that is capable of showing its chains in session view. From Live’s runtime docstring.

Const access to the chain selector parameter. From Live’s runtime docstring.

Return const access to the list of chains in this device. Throws an exception if can_have_chains is false. From Live’s runtime docstring.

Return const access to the list of drum pads in this device. Throws an exception if can_have_drum_pads is false. From Live’s runtime docstring.

Returns true if the device is a drum rack which has drum pads. Throws an exception if can_have_drum_pads is false. From Live’s runtime docstring.

Returns true if any of the rack’s macros are mapped to a parameter. From Live’s runtime docstring.

Return const access to whether this device is active. This will be false bothwhen the device is off and when it’s inside a rack device which is off. From Live’s runtime docstring.

Returns True, if it is showing chains. From Live’s runtime docstring.

Returns the latency of the device in ms. From Live’s runtime docstring.

Returns the latency of the device in samples. From Live’s runtime docstring.

A list of booleans, one for each macro parameter, which is True iffthat macro is mapped to something From Live’s runtime docstring.

Return access to the name of the device. From Live’s runtime docstring.

Const access to the list of available automatable parameters for this device. From Live’s runtime docstring.

Return const access to the list of return chains in this device. Throws an exception if can_have_chains is false. From Live’s runtime docstring.

Access to the index of the currently selected macro variation.Throws an exception if the index is out of range. From Live’s runtime docstring.

Access to the number of macro variations currently stored. From Live’s runtime docstring.

Representing the view aspects of a device. From Live’s runtime docstring.

Return const access to the list of visible drum pads in this device. Throws an exception if can_have_drum_pads is false. From Live’s runtime docstring.

Access to the number of macros that are currently visible. From Live’s runtime docstring.

Inherited from Device

Saves the current state of the device to the compare AB slot. Only relevant if can_compare_ab, otherwise throws. From Live’s runtime docstring.

  • script_index: int
  • bank_index: int

Set the selected bank in the device for persistency. From Live’s runtime docstring.

Increases the number of visible macro controls in the rack. Throws an exception if the maximum number of macro controls is reached. From Live’s runtime docstring.

  • source_index: int
  • destination_index: int

Copies all contents of a drum pad from a source pad into a destination pad. copy_pad(source_index, destination_index) where source_index and destination_index correspond to the note number/index of the drum pad in a drum rack. Throws an exception when the source pad is empty, or when the source or destination indices are not between 0 - 127. From Live’s runtime docstring.

Deletes the currently selected macro variation.Does nothing if there is no selected variation. From Live’s runtime docstring.

  • index: int = -1
Returns
ChainProbed asLomObjecthigh confidence
  • M4L rackdevice.md names the return as Chain.
  • docstring “Insert a new empty chain at the given index”.

Inserts a new chain, either at the specified index or, if not index was specified, at the end of the chain sequence. From Live’s runtime docstring.

Randomizes the values for all macro controls not excluded from randomization. From Live’s runtime docstring.

Recalls the macro variation that was recalled most recently.Does nothing if no variation has been recalled yet. From Live’s runtime docstring.

Recalls the currently selected macro variation.Does nothing if there are no variations. From Live’s runtime docstring.

Decreases the number of visible macro controls in the rack. Throws an exception if the minimum number of macro controls is reached. From Live’s runtime docstring.

Stores a new variation of the values of all currently mapped macros From Live’s runtime docstring.

Returned by 1 member elsewhere in the LOM

Representing the view aspects of a rack device. From Live’s runtime docstring.

Inherited from LomObject

Get the canonical parent of the View. From Live’s runtime docstring.

Access to the index of the lowest visible row of pads. Throws an exception if can_have_drum_pads is false. From Live’s runtime docstring.

Get/Set/Listen if the device is shown collapsed in the device chain. From Live’s runtime docstring.

Return whether the devices in the currently selected chain are visible. Throws an exception if can_have_chains is false. From Live’s runtime docstring.

selected_chain: Chain | NoneProbed asNonehigh confidence
  • docstring “Return access to the currently selected chain.”
  • corpus Ableton’s pushbase / Push2 read and assign Chain values to this property.
Section titled “selected_chain: Chain | NoneProbed asNonehigh confidencedocstring “Return access to the currently selected chain.”corpus Ableton’s pushbase / Push2 read and assign Chain values to this property.”

Return access to the currently selected chain. From Live’s runtime docstring.

Return access to the currently selected drum pad. Throws an exception if can_have_drum_pads is false. From Live’s runtime docstring.

Returned by 1 member elsewhere in the LOM

This is an independent reference site. Not affiliated with, endorsed by, or sponsored by Ableton AG. “Ableton”, “Live”, “Push”, and related marks are trademarks of Ableton AG.