ableton.v3.control_surface.elements.button (runtime)¶
Live 12 — Live Object Model & framework reference (descriptions and signatures).
Module constants¶
MIDI_CC_TYPE = 1SYSEX_END = 247
Functions¶
depends(**dependencies)¶
Classes¶
class ButtonElement(ButtonElement, Renderable)¶
Properties¶
_last_sent_valueis_feedback_enabledis_momentaryis_pressedmapping_sensitivityresourcescript_forwardingsend_depends_on_forwardingsuppress_script_forwarding
Methods¶
Colors()¶
ProxiedInterface(outer=None, *a, **k)¶
__init__(self, identifier, channel=0, msg_type=1, is_momentary=True, led_channel=None, *a, **k)¶
Initialize self. See help(type(self)) for accurate signature.
_create_event_handler(self, property_name)¶
_disconnect_color_listener(self)¶
_do_draw(self, color)¶
_do_send_value(self, value, channel=None)¶
_init_state_from_controls(self, renderable_state)¶
_init_state_from_listenable_properties(self, renderable_state)¶
_mapping_feedback_values(self)¶
_on_resource_lost(self, client)¶
_on_resource_received(self, client, *a, **k)¶
_report_value(self, value, is_input)¶
_request_rebuild_and_release(self)¶
_resource(self)¶
_resource_type(on_received_callback=None, on_lost_callback=None, *a, **k)¶
_send_delayed_messages(self)¶
_set_skin_light(self, value)¶
_status_byte(self, channel)¶
_tasks(self, parent_task_group=None)¶
_verify_value(self, value)¶
add_is_pressed_listener(self, slot, identify_sender=False, *a, **k)¶
add_value_listener(self, slot, identify_sender=False, *a, **k)¶
begin_gesture(self)¶
clear_send_cache(self)¶
connect_to(self, parameter)¶
control_base_type(extra_args=None, extra_kws=None, *a, **k)¶
disconnect(self)¶
disconnect_disconnectable(self, slot)¶
dispatch_event(self, name: 'str', value)¶
end_gesture(self)¶
find_disconnectable(self, predicate)¶
force_next_send(self)¶
has_disconnectable(self, slot)¶
identifier_bytes(self)¶
install_connections(self, install_translation, install_mapping, install_forwarding)¶
is_pressed_has_listener(self, slot)¶
is_pressed_listener_count(self)¶
mapped_parameter(self)¶
max_value(self)¶
message_channel(self)¶
message_identifier(self)¶
message_map_mode(self)¶
message_sysex_identifier(self)¶
message_type(self)¶
needs_takeover(self)¶
notify(self, notification: 'Notification[Callable[[Unpack[NotificationParams]], Optional[str]]]', *a: 'Unpack[NotificationParams]')¶
notify_is_pressed(self, *a, **k)¶
notify_ownership_change(self, client, grabbed, element_ownership_handler=None)¶
notify_value(self, *a, **k)¶
original_channel(self)¶
original_identifier(self)¶
proxied_interface(self)¶
receive_chunk(self, chunk)¶
receive_value(self, value)¶
register_disconnectable(self, slot)¶
register_disconnectables(self, disconnectables)¶
register_slot(self, *a, **k)¶
release_parameter(self)¶
remove_is_pressed_listener(self, slot)¶
remove_value_listener(self, slot)¶
renderable_state(self)¶
reset(self)¶
reset_state(self)¶
script_wants_forwarding(self)¶
send_midi(self, message)¶
send_value(self, value, force=False, channel=None)¶
set_channel(self, channel)¶
set_feedback_delay(self, delay)¶
set_identifier(self, identifier)¶
set_light(self, value)¶
set_needs_takeover(self, needs_takeover)¶
set_report_values(self, report_input, report_output)¶
suppress_notifications(self)¶
unregister_disconnectable(self, slot)¶
use_default_message(self)¶
value_has_listener(self, slot)¶
value_listener_count(self)¶
Attributes¶
_ButtonElement__on_midi_value_changed=None_has_resource=False- bool(x) -> bool_has_task_group=False- bool(x) -> bool_input_signal_listener_count=0- int([x]) -> integerallow_receiving_chunks=False- bool(x) -> boolcanonical_parent=Noneinclude_in_top_level_state=True- bool(x) -> boolname=''- str(object='') -> strnum_delayed_messages=2- int([x]) -> integeroptimized_send_midi=True- bool(x) -> bool
class ButtonElementBase(InputControlElement, ButtonElementMixin)¶
Properties¶
_last_sent_valueis_feedback_enabledmapping_sensitivityresourcescript_forwardingsend_depends_on_forwardingsuppress_script_forwarding
Methods¶
Colors()¶
ProxiedInterface(outer=None, *a, **k)¶
__init__(self, is_momentary, msg_type, channel, identifier, is_rgb=False, skin=<ableton.v2.control_surface.skin.Skin object at 0x13c13b410>, undo_step_handler=<ableton.v2.control_surface.elements.button.DummyUndoStepHandler object at 0x13c13b5d0>, send_should_depend_on_forwarding=False, *a, **k)¶
Initialize self. See help(type(self)) for accurate signature.
_disconnect_color_listener(self)¶
_do_draw(self, color)¶
_do_send_value(self, value, channel=None)¶
_mapping_feedback_values(self)¶
_on_resource_lost(self, client)¶
_on_resource_received(self, client, *a, **k)¶
_report_value(self, value, is_input)¶
_resource(self)¶
_resource_type(on_received_callback=None, on_lost_callback=None, *a, **k)¶
_send_delayed_messages(self)¶
_set_skin_light(self, value)¶
_status_byte(self, channel)¶
_tasks(self, parent_task_group=None)¶
_verify_value(self, value)¶
add_value_listener(self, slot, identify_sender=False, *a, **k)¶
begin_gesture(self)¶
clear_send_cache(self)¶
connect_to(self, parameter)¶
disconnect(self)¶
disconnect_disconnectable(self, slot)¶
end_gesture(self)¶
find_disconnectable(self, predicate)¶
force_next_send(self)¶
has_disconnectable(self, slot)¶
identifier_bytes(self)¶
install_connections(self, install_translation, install_mapping, install_forwarding)¶
is_momentary(self)¶
is_pressed(self)¶
mapped_parameter(self)¶
max_value(self)¶
message_channel(self)¶
message_identifier(self)¶
message_map_mode(self)¶
message_sysex_identifier(self)¶
message_type(self)¶
needs_takeover(self)¶
notify_ownership_change(self, client, grabbed, element_ownership_handler=None)¶
notify_value(self, *a, **k)¶
original_channel(self)¶
original_identifier(self)¶
proxied_interface(self)¶
receive_chunk(self, chunk)¶
receive_value(self, value)¶
register_disconnectable(self, slot)¶
register_disconnectables(self, disconnectables)¶
register_slot(self, *a, **k)¶
release_parameter(self)¶
remove_value_listener(self, slot)¶
reset(self)¶
reset_state(self)¶
script_wants_forwarding(self)¶
send_midi(self, message)¶
send_value(self, value, force=False, channel=None)¶
set_channel(self, channel)¶
set_feedback_delay(self, delay)¶
set_identifier(self, identifier)¶
set_light(self, value)¶
set_needs_takeover(self, needs_takeover)¶
set_report_values(self, report_input, report_output)¶
unregister_disconnectable(self, slot)¶
use_default_message(self)¶
value_has_listener(self, slot)¶
value_listener_count(self)¶
Attributes¶
_ButtonElement__on_midi_value_changed=None_has_resource=False- bool(x) -> bool_has_task_group=False- bool(x) -> bool_input_signal_listener_count=0- int([x]) -> integerallow_receiving_chunks=False- bool(x) -> boolcanonical_parent=Nonename=''- str(object='') -> strnum_delayed_messages=2- int([x]) -> integeroptimized_send_midi=True- bool(x) -> bool
class CallableBool¶
Methods¶
__call__(self)¶
Call self as a function.
__init__(self, value: bool)¶
Initialize self. See help(type(self)) for accurate signature.
class Renderable(CompoundDisconnectable)¶
Methods¶
__init__(self, react=None, notifications: 'Optional[Type[Notifications]]' = None, suppress_notifications: 'Optional[Callable]' = None, *a, **k)¶
Initialize self. See help(type(self)) for accurate signature.
_create_event_handler(self, property_name)¶
_init_state_from_controls(self, renderable_state)¶
_init_state_from_listenable_properties(self, renderable_state)¶
control_base_type(extra_args=None, extra_kws=None, *a, **k)¶
disconnect(self)¶
disconnect_disconnectable(self, slot)¶
dispatch_event(self, name: 'str', value)¶
find_disconnectable(self, predicate)¶
has_disconnectable(self, slot)¶
notify(self, notification: 'Notification[Callable[[Unpack[NotificationParams]], Optional[str]]]', *a: 'Unpack[NotificationParams]')¶
register_disconnectable(self, slot)¶
register_disconnectables(self, disconnectables)¶
renderable_state(self)¶
suppress_notifications(self)¶
unregister_disconnectable(self, slot)¶
Attributes¶
include_in_top_level_state=True- bool(x) -> bool
class SysexSendingButtonElement(ButtonElement)¶
Properties¶
_last_sent_valueis_feedback_enabledis_momentaryis_pressedmapping_sensitivityresourcescript_forwardingsend_depends_on_forwardingsuppress_script_forwarding
Methods¶
Colors()¶
ProxiedInterface(outer=None, *a, **k)¶
__init__(self, identifier, sysex_identifier, optimized=True, tail=(247,), *a, **k)¶
Initialize self. See help(type(self)) for accurate signature.
_create_event_handler(self, property_name)¶
_disconnect_color_listener(self)¶
_do_draw(self, color)¶
_do_send_value(self, value, channel=None)¶
_init_state_from_controls(self, renderable_state)¶
_init_state_from_listenable_properties(self, renderable_state)¶
_mapping_feedback_values(self)¶
_on_resource_lost(self, client)¶
_on_resource_received(self, client, *a, **k)¶
_report_value(self, value, is_input)¶
_request_rebuild_and_release(self)¶
_resource(self)¶
_resource_type(on_received_callback=None, on_lost_callback=None, *a, **k)¶
_send_delayed_messages(self)¶
_set_skin_light(self, value)¶
_status_byte(self, channel)¶
_tasks(self, parent_task_group=None)¶
_verify_value(self, value)¶
add_is_pressed_listener(self, slot, identify_sender=False, *a, **k)¶
add_value_listener(self, slot, identify_sender=False, *a, **k)¶
begin_gesture(self)¶
clear_send_cache(self)¶
connect_to(self, parameter)¶
control_base_type(extra_args=None, extra_kws=None, *a, **k)¶
disconnect(self)¶
disconnect_disconnectable(self, slot)¶
dispatch_event(self, name: 'str', value)¶
end_gesture(self)¶
find_disconnectable(self, predicate)¶
force_next_send(self)¶
has_disconnectable(self, slot)¶
identifier_bytes(self)¶
install_connections(self, install_translation, install_mapping, install_forwarding)¶
is_pressed_has_listener(self, slot)¶
is_pressed_listener_count(self)¶
mapped_parameter(self)¶
max_value(self)¶
message_channel(self)¶
message_identifier(self)¶
message_map_mode(self)¶
message_sysex_identifier(self)¶
message_type(self)¶
needs_takeover(self)¶
notify(self, notification: 'Notification[Callable[[Unpack[NotificationParams]], Optional[str]]]', *a: 'Unpack[NotificationParams]')¶
notify_is_pressed(self, *a, **k)¶
notify_ownership_change(self, client, grabbed, element_ownership_handler=None)¶
notify_value(self, *a, **k)¶
original_channel(self)¶
original_identifier(self)¶
proxied_interface(self)¶
receive_chunk(self, chunk)¶
receive_value(self, value)¶
register_disconnectable(self, slot)¶
register_disconnectables(self, disconnectables)¶
register_slot(self, *a, **k)¶
release_parameter(self)¶
remove_is_pressed_listener(self, slot)¶
remove_value_listener(self, slot)¶
renderable_state(self)¶
reset(self)¶
reset_state(self)¶
script_wants_forwarding(self)¶
send_midi(self, message)¶
send_value(self, *value, **_)¶
set_channel(self, channel)¶
set_feedback_delay(self, delay)¶
set_identifier(self, identifier)¶
set_light(self, value)¶
set_needs_takeover(self, needs_takeover)¶
set_report_values(self, report_input, report_output)¶
suppress_notifications(self)¶
unregister_disconnectable(self, slot)¶
use_default_message(self)¶
value_has_listener(self, slot)¶
value_listener_count(self)¶
Attributes¶
_ButtonElement__on_midi_value_changed=None_has_resource=False- bool(x) -> bool_has_task_group=False- bool(x) -> bool_input_signal_listener_count=0- int([x]) -> integerallow_receiving_chunks=False- bool(x) -> boolcanonical_parent=Noneinclude_in_top_level_state=True- bool(x) -> boolname=''- str(object='') -> strnum_delayed_messages=2- int([x]) -> integeroptimized_send_midi=True- bool(x) -> bool
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 obtain a copy of the property with a different deleter.
getter(...)¶
Descriptor to obtain a copy of the property with a different getter.
managed(default_value)¶
set_property_name(self, name)¶
setter(...)¶
Descriptor to obtain a copy of the property with a different setter.
Attributes¶
fdel=<member 'fdel' of 'property' objects>fget=<member 'fget' of 'property' objects>fset=<member 'fset' of 'property' objects>