Skip to content

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

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

Functions

NamedTuple(typename, fields=None, /, **kwargs)

Optional(*args, **kwds)

abstractmethod(funcobj)

A decorator indicating abstract methods.

Requires that the metaclass is ABCMeta or derived from it. A class that has a metaclass derived from ABCMeta cannot be instantiated unless all of its abstract methods are overridden. The abstract methods can be called using any of the normal 'super' call mechanisms. abstractmethod() may be used to declare abstract methods for properties and descriptors.

Usage:

class C(metaclass=ABCMeta):
    @abstractmethod
    def my_abstract_method(self, arg1, arg2, argN):
        ...

create_rgb_color(values)

memoize(function)

old_hasattr(obj, attr)

Classes

class ABC

Helper class that provides a standard way to create an ABC using inheritance.

Methods

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

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

Attributes

  • _abc_impl = <_abc._abc_data object at 0x11a9eef80> - Internal state held by ABC machinery.

class Color(ABC)

Helper class that provides a standard way to create an ABC using inheritance.

Properties

  • midi_value

Methods

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

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

draw(self, interface)

Attributes

  • _abc_impl = <_abc._abc_data object at 0x13c685200> - Internal state held by ABC machinery.

class ColorPart(tuple)

ColorPart(value, channel)

Methods

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

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

_asdict(self)
_make(iterable)

Make a new ColorPart object from a sequence or iterable

_replace(self, /, **kwds)

Return a new ColorPart object replacing specified fields with new values

count(self, value, /)

Return number of occurrences of value.

index(self, value, start=0, stop=9223372036854775807, /)

Return first index of value.

Raises ValueError if the value is not present.

Attributes

  • _field_defaults = {'channel': None} - dict() -> new empty dictionary
  • _fields = ('value', 'channel') - Built-in immutable sequence.
  • channel = _tuplegetter(1, 'Alias for field number 1') - Alias for field number 1
  • value = _tuplegetter(0, 'Alias for field number 0') - Alias for field number 0

class ComplexColor(Color)

Helper class that provides a standard way to create an ABC using inheritance.

Properties

  • midi_value

Methods

__init__(self, color_parts, *a, **k)

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

draw(self, interface)

Attributes

  • _abc_impl = <_abc._abc_data object at 0x13c685380> - Internal state held by ABC machinery.

class FallbackColor(Color)

Helper class that provides a standard way to create an ABC using inheritance.

Properties

  • midi_value

Methods

__init__(self, rgb_color, fallback_color, *a, **k)

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

draw(self, interface)

Attributes

  • _abc_impl = <_abc._abc_data object at 0x13c685c40> - Internal state held by ABC machinery.

class RgbColor(Color)

Helper class that provides a standard way to create an ABC using inheritance.

Properties

  • midi_value

Methods

__init__(self, *values, **k)

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

draw(self, interface)

Attributes

  • _abc_impl = <_abc._abc_data object at 0x13c685340> - Internal state held by ABC machinery.

class SimpleColor(Color)

Helper class that provides a standard way to create an ABC using inheritance.

Properties

  • midi_value

Methods

__init__(self, value, channel=None, *a, **k)

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

draw(self, interface)

Attributes

  • _abc_impl = <_abc._abc_data object at 0x13c6852c0> - Internal state held by ABC machinery.