Skip to content

MaxDevice

Represents a Max for Live device hosted on a track or rack chain. The MaxDevice class extends Device with hooks specific to M4L — patcher loading, parameter exposure, and inter-device messaging.

This class represents a Max for Live 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.

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

Const access to a list of all audio inputs of the device. From Live’s runtime docstring.

Const access to a list of all audio outputs of the device. 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 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.

Const access to a list of all midi outputs of the device. From Live’s runtime docstring.

Const access to a list of all midi outputs of the device. 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.

add_bank_parameters_changed_listener · remove_bank_parameters_changed_listener · bank_parameters_changed_has_listener

Fires when the Max for Live device’s bank-parameter mapping reconfigures — parameter rebinding to a different bank slot or a structural change to the bank set. Read the new state via get_bank_count, get_bank_name, and get_bank_parameters.

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.

Returns
int

Get the number of parameter banks. This is related to hardware control surfaces. From Live’s runtime docstring.

  • bank_index: int
Returns
str

Get the name of a parameter bank given by index. This is related to hardware control surfaces. From Live’s runtime docstring.

  • bank_index: int
Returns
list[int]Probed aslisthigh confidence
  • M4L maxdevice.md confirms list[int].
  • corpus uses parameter_indices = device.get_bank_parameters(bank_index).

Get the indices of parameters of the given bank index. Empty slots are marked as -1. Bank index -1 refers to the best-of bank. This function is related to hardware control surfaces. From Live’s runtime docstring.

Returns
list[str]Probed aslisthigh confidence
  • docstring “list of icon identifier strings”.

Get a list of icon identifier strings for a list parameter’s values.An empty string is given where no icon should be displayed.An empty list is given when no icons should be displayed.This is related to hardware control surfaces. From Live’s runtime docstring.

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.