ableton.v3.control_surface.components.transport (runtime)¶
Live 12 — Live Object Model & framework reference (descriptions and signatures).
Functions¶
clamp(val, minv, maxv)¶
get_bar_length(clip=None)¶
listens(event_path, *a, **k)¶
move_current_song_time(song, delta, truncate_to_beat=True)¶
sign(value)¶
Classes¶
class ButtonControl(ButtonControlBase)¶
Properties¶
double_clickedpressedpressed_delayedreleasedreleased_delayedreleased_immediatelyvalue
Methods¶
State(color='DefaultButton.On', on_color=None, *a, **k)¶
__init__(self, *a, **k)¶
Initialize self. See help(type(self)) for accurate signature.
_clear_state(self, manager)¶
_get_state(self, manager, state_factory=None)¶
_make_control_state(self, manager)¶
Attributes¶
DELAY_TIME=0.3- Convert a string or number to a floating point number, if possible.DOUBLE_CLICK_TIME=0.5- Convert a string or number to a floating point number, if possible.REPEAT_RATE=0.1- Convert a string or number to a floating point number, if possible._extra_args=[]- Built-in mutable sequence._extra_kws={}- dict() -> new empty dictionary
class Component(ControlManager)¶
Properties¶
applicationis_rootlayerparentsong
Methods¶
__init__(self, name='', parent=None, register_component=None, song=None, layer=None, is_enabled=True, is_private=True, *a, **k)¶
Initialize self. See help(type(self)) for accurate signature.
_add_child(self, component)¶
_get_layer_iterable(self)¶
_grab_all_layers(self)¶
_internal_on_enabled_changed(self)¶
_release_all_layers(self)¶
_set_enabled_recursive(self, enable)¶
_tasks(self, parent_task_group=None)¶
_update_is_enabled(self)¶
add_any_clipboard_has_content_listener(self, slot, identify_sender=False, *a, **k)¶
add_children(self, *children)¶
add_control(self, name, control)¶
add_enabled_listener(self, slot, identify_sender=False, *a, **k)¶
any_clipboard_has_content_has_listener(self, slot)¶
any_clipboard_has_content_listener_count(self)¶
control_notifications_enabled(self)¶
disconnect(self)¶
disconnect_disconnectable(self, slot)¶
enabled_has_listener(self, slot)¶
enabled_listener_count(self)¶
find_disconnectable(self, predicate)¶
has_disconnectable(self, slot)¶
is_enabled(self, explicit=False)¶
notify_any_clipboard_has_content(self, *a, **k)¶
notify_enabled(self, *a, **k)¶
on_enabled_changed(self)¶
register_clipboard(self)¶
register_disconnectable(self, slot)¶
register_disconnectables(self, disconnectables)¶
register_slot(self, *a, **k)¶
remove_any_clipboard_has_content_listener(self, slot)¶
remove_enabled_listener(self, slot)¶
set_enabled(self, enable)¶
unregister_disconnectable(self, slot)¶
update(self)¶
Attributes¶
_clipboard_component_instances=[]- Built-in mutable sequence.any_clipboard_has_content=False- bool(x) -> boolcanonical_parent=Nonenum_layers=0- int([x]) -> integer
class OptionalSkinEntry(tuple)¶
OptionalSkinEntry(name, fallback_name)
Methods¶
__init__(self, /, *args, **kwargs)¶
Initialize self. See help(type(self)) for accurate signature.
_asdict(self)¶
_make(iterable)¶
Make a new OptionalSkinEntry object from a sequence or iterable
_replace(self, /, **kwds)¶
Return a new OptionalSkinEntry 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={'fallback_name': None}- dict() -> new empty dictionary_fields=('name', 'fallback_name')- Built-in immutable sequence.fallback_name=_tuplegetter(1, 'Alias for field number 1')- Alias for field number 1name=_tuplegetter(0, 'Alias for field number 0')- Alias for field number 0
class RecordingQuantization(enum)¶
int([x]) -> integer int(x, base=10) -> integer
Convert a number or string to an integer, or return 0 if no arguments are given. If x is a number, return x.int(). For floating point numbers, this truncates towards zero.
If x is not a number or if base is given, then x must be a string, bytes, or bytearray instance representing an integer literal in the given base. The literal can be preceded by '+' or '-' and be surrounded by whitespace. The base defaults to 10. Valid bases are 0 and 2-36. Base 0 means to interpret the base from the string as an integer literal.
int('0b100', base=0) 4
Methods¶
__init__(self, /, *args, **kwargs)¶
Initialize self. See help(type(self)) for accurate signature.
as_integer_ratio(self, /)¶
Return integer ratio.
Return a pair of integers, whose ratio is exactly equal to the original int and with a positive denominator.
(10).as_integer_ratio() (10, 1) (-10).as_integer_ratio() (-10, 1) (0).as_integer_ratio() (0, 1)
bit_count(self, /)¶
Number of ones in the binary representation of the absolute value of self.
Also known as the population count.
bin(13) '0b1101' (13).bit_count() 3
bit_length(self, /)¶
Number of bits necessary to represent self in binary.
bin(37) '0b100101' (37).bit_length() 6
conjugate(...)¶
Returns self, the complex conjugate of any int.
from_bytes(bytes, byteorder='big', *, signed=False)¶
Return the integer represented by the given array of bytes.
bytes Holds the array of bytes to convert. The argument must either support the buffer protocol or be an iterable object producing bytes. Bytes and bytearray are examples of built-in objects that support the buffer protocol. byteorder The byte order used to represent the integer. If byteorder is 'big', the most significant byte is at the beginning of the byte array. If byteorder is 'little', the most significant byte is at the end of the byte array. To request the native byte order of the host system, use `sys.byteorder' as the byte order value. Default is to use 'big'. signed Indicates whether two's complement is used to represent the integer.
to_bytes(self, /, length=1, byteorder='big', *, signed=False)¶
Return an array of bytes representing an integer.
length Length of bytes object to use. An OverflowError is raised if the integer is not representable with the given number of bytes. Default is length 1. byteorder The byte order used to represent the integer. If byteorder is 'big', the most significant byte is at the beginning of the byte array. If byteorder is 'little', the most significant byte is at the end of the byte array. To request the native byte order of the host system, use `sys.byteorder' as the byte order value. Default is to use 'big'. signed Determines whether two's complement is used to represent the integer. If signed is False and a negative integer is given, an OverflowError is raised.
Attributes¶
denominator=<attribute 'denominator' of 'int' objects>- the denominator of a rational number in lowest termsimag=<attribute 'imag' of 'int' objects>- the imaginary part of a complex numbername=<member 'name' of 'Boost.Python.enum' objects>names={'rec_q_no_q': Song.RecordingQuantization.rec_q_no_q, 'rec_q_quarter': Song.RecordingQuantization.rec_q_quarter, 'rec_q_eight': Song.RecordingQuantization.rec_q...- dict() -> new empty dictionarynumerator=<attribute 'numerator' of 'int' objects>- the numerator of a rational number in lowest termsreal=<attribute 'real' of 'int' objects>- the real part of a complex numberrec_q_eight=Song.RecordingQuantization.rec_q_eightrec_q_eight_eight_triplet=Song.RecordingQuantization.rec_q_eight_eight_tripletrec_q_eight_triplet=Song.RecordingQuantization.rec_q_eight_tripletrec_q_no_q=Song.RecordingQuantization.rec_q_no_qrec_q_quarter=Song.RecordingQuantization.rec_q_quarterrec_q_sixtenth=Song.RecordingQuantization.rec_q_sixtenthrec_q_sixtenth_sixtenth_triplet=Song.RecordingQuantization.rec_q_sixtenth_sixtenth_tripletrec_q_sixtenth_triplet=Song.RecordingQuantization.rec_q_sixtenth_tripletrec_q_thirtysecond=Song.RecordingQuantization.rec_q_thirtysecondvalues={0: Song.RecordingQuantization.rec_q_no_q, 1: Song.RecordingQuantization.rec_q_quarter, 2: Song.RecordingQuantization.rec_q_eight, 3: Song.RecordingQuantization...- dict() -> new empty dictionary
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 StepEncoderControl(StepEncoderControl)¶
Properties¶
releasedtouchedvalue
Methods¶
State(num_steps=10, *a, **k)¶
__init__(self, *a, **k)¶
Initialize self. See help(type(self)) for accurate signature.
_clear_state(self, manager)¶
_get_state(self, manager, state_factory=None)¶
_make_control_state(self, manager)¶
Attributes¶
TOUCH_TIME=0.5- Convert a string or number to a floating point number, if possible._extra_args=[]- Built-in mutable sequence._extra_kws={}- dict() -> new empty dictionary
class ToggleButtonControl(ButtonControl)¶
Properties¶
double_clickedpressedpressed_delayedreleasedreleased_delayedreleased_immediatelytoggledvalue
Methods¶
State(color='DefaultButton.On', on_color=None, *a, **k)¶
__init__(self, *a, **k)¶
Initialize self. See help(type(self)) for accurate signature.
_clear_state(self, manager)¶
_get_state(self, manager, state_factory=None)¶
_make_control_state(self, manager)¶
Attributes¶
DELAY_TIME=0.3- Convert a string or number to a floating point number, if possible.DOUBLE_CLICK_TIME=0.5- Convert a string or number to a floating point number, if possible.REPEAT_RATE=0.1- Convert a string or number to a floating point number, if possible._extra_args=[]- Built-in mutable sequence._extra_kws={}- dict() -> new empty dictionary
class TransportComponent(Component, Renderable)¶
Properties¶
applicationis_rootlayerparentsong
Methods¶
__init__(self, name='Transport', *a, **k)¶
Initialize self. See help(type(self)) for accurate signature.
_add_child(self, component)¶
_create_event_handler(self, property_name)¶
_get_layer_iterable(self)¶
_grab_all_layers(self)¶
_init_state_from_controls(self, renderable_state)¶
_init_state_from_listenable_properties(self, renderable_state)¶
_internal_on_enabled_changed(self)¶
_release_all_layers(self)¶
_set_enabled_recursive(self, enable)¶
_tasks(self, parent_task_group=None)¶
_toggle_record_quantize(self)¶
_trigger_tap_tempo(self)¶
_update_is_enabled(self)¶
add_any_clipboard_has_content_listener(self, slot, identify_sender=False, *a, **k)¶
add_children(self, *children)¶
add_control(self, name, control)¶
add_enabled_listener(self, slot, identify_sender=False, *a, **k)¶
any_clipboard_has_content_has_listener(self, slot)¶
any_clipboard_has_content_listener_count(self)¶
control_base_type(extra_args=None, extra_kws=None, *a, **k)¶
control_notifications_enabled(self)¶
disconnect(self)¶
disconnect_disconnectable(self, slot)¶
dispatch_event(self, name: 'str', value)¶
enabled_has_listener(self, slot)¶
enabled_listener_count(self)¶
find_disconnectable(self, predicate)¶
has_disconnectable(self, slot)¶
is_enabled(self, explicit=False)¶
notify(self, notification: 'Notification[Callable[[Unpack[NotificationParams]], Optional[str]]]', *a: 'Unpack[NotificationParams]')¶
notify_any_clipboard_has_content(self, *a, **k)¶
notify_enabled(self, *a, **k)¶
on_enabled_changed(self)¶
register_clipboard(self)¶
register_disconnectable(self, slot)¶
register_disconnectables(self, disconnectables)¶
register_slot(self, *a, **k)¶
remove_any_clipboard_has_content_listener(self, slot)¶
remove_enabled_listener(self, slot)¶
renderable_state(self)¶
set_enabled(self, enable)¶
set_position_encoders_use_bar_increments(self, use_bar)¶
suppress_notifications(self)¶
unregister_disconnectable(self, slot)¶
update(self)¶
Attributes¶
_TransportComponent__on_can_capture_midi_changed=None_TransportComponent__on_can_jump_to_next_cue_changed=None_TransportComponent__on_can_jump_to_prev_cue_changed=None_TransportComponent__on_is_playing_changed=None_TransportComponent__on_re_enable_automation_enabled_changed=None_TransportComponent__on_record_quantization_changed=None_clipboard_component_instances=[]- Built-in mutable sequence.any_clipboard_has_content=False- bool(x) -> boolarrangement_position_encoder=<ableton.v3.control_surface.controls.encoder.StepEncoderControl object at 0x13c984710>automation_arm_button=<ableton.v3.control_surface.controls.toggle_button.ToggleButtonControl object at 0x13c984f90>canonical_parent=Nonecapture_midi_button=<ableton.v3.control_surface.controls.button.ButtonControl object at 0x13c985110>cue_encoder=<ableton.v3.control_surface.controls.encoder.StepEncoderControl object at 0x13c984b10>fastforward_button=<ableton.v3.control_surface.controls.button.ButtonControl object at 0x13c985810>include_in_top_level_state=True- bool(x) -> boolloop_button=<ableton.v3.control_surface.controls.toggle_button.ToggleButtonControl object at 0x13c9851d0>loop_length_encoder=<ableton.v3.control_surface.controls.encoder.StepEncoderControl object at 0x13c9848d0>loop_start_encoder=<ableton.v3.control_surface.controls.encoder.StepEncoderControl object at 0x13c984810>metronome_button=<ableton.v3.control_surface.controls.toggle_button.ToggleButtonControl object at 0x13c985290>next_cue_button=<ableton.v3.control_surface.controls.button.ButtonControl object at 0x13c985990>nudge_down_button=<ableton.v3.control_surface.controls.button.ButtonControl object at 0x13c985590>nudge_up_button=<ableton.v3.control_surface.controls.button.ButtonControl object at 0x13c985650>num_layers=0- int([x]) -> integerplay_button=<ableton.v3.control_surface.controls.button.ButtonControl object at 0x13c984bd0>play_pause_button=<ableton.v3.control_surface.controls.button.ButtonControl object at 0x13c984d90>play_toggle_button=<ableton.v3.control_surface.controls.toggle_button.ToggleButtonControl object at 0x13c984cd0>prev_cue_button=<ableton.v3.control_surface.controls.button.ButtonControl object at 0x13c9858d0>punch_in_button=<ableton.v3.control_surface.controls.toggle_button.ToggleButtonControl object at 0x13c985350>punch_out_button=<ableton.v3.control_surface.controls.toggle_button.ToggleButtonControl object at 0x13c985410>re_enable_automation_button=<ableton.v3.control_surface.controls.button.ButtonControl object at 0x13c985050>record_quantize_button=<ableton.v3.control_surface.controls.button.ButtonControl object at 0x13c985b10>rewind_button=<ableton.v3.control_surface.controls.button.ButtonControl object at 0x13c985710>seek_dict={'color': 'Transport.Seek', 'pressed_color': 'Transport.SeekPressed', 'repeat': True, 'delay_time': 0}- dict() -> new empty dictionaryset_cue_button=<ableton.v3.control_surface.controls.button.ButtonControl object at 0x13c985a50>stop_button=<ableton.v3.control_surface.controls.button.ButtonControl object at 0x13c984ed0>tap_tempo_button=<ableton.v3.control_surface.controls.button.ButtonControl object at 0x13c9854d0>tempo_coarse_encoder=<ableton.v3.control_surface.controls.encoder.StepEncoderControl object at 0x13c984990>tempo_fine_encoder=<ableton.v3.control_surface.controls.encoder.StepEncoderControl object at 0x13c984a50>