Skip to content

ableton.v2.control_surface.elements.color (runtime)

Live 11 — Live Object Model & framework reference (descriptions and signatures).

Functions

is_dynamic_color_factory(skin_element)

listens(event_path, *a, **k)

liveobj_valid(obj)

nop(*a, **k)

old_hasattr(obj, attr)

to_midi_value(int_or_color)

Classes

class AnimatedColor(Color)

Methods

__init__(self, color1=None, color2=None, *a, **k)

Initialize self. See help(type(self)) for accurate signature.

draw(self, interface)

Attributes

  • _channel = None
  • midi_value = 0 - int([x]) -> integer

class Color

Methods

__init__(self, midi_value=None, *a, **k)

Initialize self. See help(type(self)) for accurate signature.

draw(self, interface)

Attributes

  • midi_value = 0 - int([x]) -> integer

class DynamicColorBase(Color, EventObject)

Methods

__init__(self, transformation=<function nop at 0x14def8bf8>, *a, **k)

Initialize self. See help(type(self)) for accurate signature.

_update_midi_value(self, colored_object)
add_midi_value_listener(self, slot, identify_sender=False, *a, **k)
disconnect(self)
disconnect_disconnectable(self, slot)
draw(self, interface)
find_disconnectable(self, predicate)
has_disconnectable(self, slot)
midi_value_has_listener(self, slot)
midi_value_listener_count(self)
notify_midi_value(self, *a, **k)
register_disconnectable(self, slot)
register_disconnectables(self, disconnectables)
register_slot(self, *a, **k)
remove_midi_value_listener(self, slot)
unregister_disconnectable(self, slot)

Attributes

  • midi_value = 0 - int([x]) -> integer

class DynamicColorFactory

Methods

__init__(self, transformation=<function nop at 0x14def8bf8>, *a, **k)

Initialize self. See help(type(self)) for accurate signature.

instantiate(self, song)

class EventObject(CompoundDisconnectable)

Methods

__init__(self, *a, **k)

Initialize self. See help(type(self)) for accurate signature.

disconnect(self)
disconnect_disconnectable(self, slot)
find_disconnectable(self, predicate)
has_disconnectable(self, slot)
register_disconnectable(self, slot)
register_disconnectables(self, disconnectables)
register_slot(self, *a, **k)
unregister_disconnectable(self, slot)

class SelectedClipColor(DynamicColorBase)

Methods

__init__(self, song_view=None, *a, **k)

Initialize self. See help(type(self)) for accurate signature.

_update_midi_value(self, colored_object)
add_midi_value_listener(self, slot, identify_sender=False, *a, **k)
disconnect(self)
disconnect_disconnectable(self, slot)
draw(self, interface)
find_disconnectable(self, predicate)
has_disconnectable(self, slot)
midi_value_has_listener(self, slot)
midi_value_listener_count(self)
notify_midi_value(self, *a, **k)
register_disconnectable(self, slot)
register_disconnectables(self, disconnectables)
register_slot(self, *a, **k)
remove_midi_value_listener(self, slot)
unregister_disconnectable(self, slot)

Attributes

  • _SelectedClipColor__on_color_changed = None
  • midi_value = 0 - int([x]) -> integer

class SelectedClipColorFactory(DynamicColorFactory)

Methods

__init__(self, transformation=<function nop at 0x14def8bf8>, *a, **k)

Initialize self. See help(type(self)) for accurate signature.

instantiate(self, song)

class SelectedTrackColor(DynamicColorBase)

Methods

__init__(self, song_view=None, *a, **k)

Initialize self. See help(type(self)) for accurate signature.

_update_midi_value(self, colored_object)
add_midi_value_listener(self, slot, identify_sender=False, *a, **k)
disconnect(self)
disconnect_disconnectable(self, slot)
draw(self, interface)
find_disconnectable(self, predicate)
has_disconnectable(self, slot)
midi_value_has_listener(self, slot)
midi_value_listener_count(self)
notify_midi_value(self, *a, **k)
register_disconnectable(self, slot)
register_disconnectables(self, disconnectables)
register_slot(self, *a, **k)
remove_midi_value_listener(self, slot)
unregister_disconnectable(self, slot)

Attributes

  • _SelectedTrackColor__on_color_changed = None
  • midi_value = 0 - int([x]) -> integer

class SelectedTrackColorFactory(DynamicColorFactory)

Methods

__init__(self, transformation=<function nop at 0x14def8bf8>, *a, **k)

Initialize self. See help(type(self)) for accurate signature.

instantiate(self, song)

class SysexRGBColor(Color)

Methods

__init__(self, midi_value=None, *a, **k)

Initialize self. See help(type(self)) for accurate signature.

draw(self, interface)

Attributes

  • midi_value = 0 - int([x]) -> integer

class listenable_property(listenable_property_base, property)

Property attribute.

fget function to be used for getting an attribute value fset function to be used for setting an attribute value fdel function to be used for del'ing an attribute doc docstring

Typical use is to define a managed attribute x:

class C(object): def getx(self): return self._x def setx(self, value): self._x = value def delx(self): del self._x x = property(getx, setx, delx, "I'm the 'x' property.")

Decorators make defining new properties or modifying existing ones easy:

class C(object): @property def x(self): "I am the 'x' property." return self._x @x.setter def x(self, value): self._x = value @x.deleter def x(self): del self._x

Methods

__init__(self, /, *args, **kwargs)

Initialize self. See help(type(self)) for accurate signature.

deleter(...)

Descriptor to change the deleter on a property.

getter(...)

Descriptor to change the getter on a property.

managed(default_value)
set_property_name(self, name)
setter(...)

Descriptor to change the setter on a property.

Attributes

  • fdel = <member 'fdel' of 'property' objects>
  • fget = <member 'fget' of 'property' objects>
  • fset = <member 'fset' of 'property' objects>