Live.Application.Application
This class represents the Live application.
Access via:
Application.get_application
| Property | Type | Supports |
|---|---|---|
average_process_usage |
float |
get/listen |
browser |
Browser |
get |
canonical_parent |
None |
get |
control_surfaces |
Vector[object] |
get/listen |
current_dialog_button_count |
int |
get |
current_dialog_message |
str |
get |
number_of_push_apps_running |
int |
get |
open_dialog_count |
int |
get/listen |
peak_process_usage |
float |
get/listen |
unavailable_features |
UnavailableFeatureVector |
get/listen |
view |
View |
get |
- Type:
float - Settable:
no - Listenable:
yes
Reports Live's average CPU load.
- Type:
Browser - Settable:
no - Listenable:
no
Returns an interface to the browser.
- Type:
None - Settable:
no - Listenable:
no
Returns the canonical parent of the application.
- Type:
Vector[object] - Settable:
no - Listenable:
yes
Const access to a list of the control surfaces selected in preferences, in the same order. The list contains None if no control surface is active at that index.
- Type:
int - Settable:
no - Listenable:
no
Number of buttons on the current dialog.
- Type:
str - Settable:
no - Listenable:
no
Text of the last dialog that appeared; Empty if all dialogs just disappeared.
- Type:
int - Settable:
no - Listenable:
no
Returns the number of connected Push apps.
- Type:
int - Settable:
no - Listenable:
yes
The number of open dialogs in Live. 0 if not dialog is open.
- Type:
float - Settable:
no - Listenable:
yes
Reports Live's peak CPU load.
- Type:
UnavailableFeatureVector - Settable:
no - Listenable:
yes
List of features that are unavailable due to limitations of the current Live edition.
- Type:
View - Settable:
no - Listenable:
no
Returns the applications view component.
| Method | Returns |
|---|---|
get_bugfix_version() |
int |
get_build_id() |
str |
get_document() |
Song |
get_major_version() |
int |
get_minor_version() |
int |
get_variant() |
str |
get_version_string() |
str |
has_option() |
bool |
press_current_dialog_button() |
None |
show_message() |
int |
show_on_the_fly_message() |
int |
- Returns:
int
Returns an integer representing the bugfix version of Live.
- Returns:
str
Returns a string identifying the build.
- Returns:
Song
Returns the current Live Set.
- Returns:
int
Returns an integer representing the major version of Live.
- Returns:
int
Returns an integer representing the minor version of Live.
- Returns:
str
Returns one of the strings in Live.Application.Variants.
- Returns:
str
Returns the full version string of Live.
- Returns:
bool - Args:
option_name: str
Returns True if the given entry exists in Options.txt, False otherwise.
- Returns:
None - Args:
index: int
Press a button, by index, on the current message box.
show_message(text: Text, buttons: MessageButtons | int = 0, enable_markup: bool = False, show_success_icon: bool = False)
- Returns:
int - Args:
text: Textbuttons: MessageButtons | int = 0enable_markup: bool = Falseshow_success_icon: bool = False
Shows a message box, returning the position of the pressed button.
show_on_the_fly_message(message: str, buttons: MessageButtons | int = 0, enable_markup: bool = False, show_success_icon: bool = False, push_dialog_type: PushDialogType | int = 0)
- Returns:
int - Args:
message: strbuttons: MessageButtons | int = 0enable_markup: bool = Falseshow_success_icon: bool = Falsepush_dialog_type: PushDialogType | int = 0
Same as show_message, but for when there is no predefined Text object.
Live.Application.Application.View
This class represents the view aspects of the Live application.
Live Object: yes
| Property | Type | Supports |
|---|---|---|
browse_mode |
bool |
get/listen |
canonical_parent |
Application |
get |
focused_document_view |
str |
get/listen |
- Type:
bool - Settable:
no - Listenable:
yes
Return true if HotSwap mode is active for any target.
- Type:
Application - Settable:
no - Listenable:
no
Get the canonical parent of the application view.
- Type:
str - Settable:
no - Listenable:
yes
Return the name of the document view ('Session' or 'Arranger') shown in the currently selected window.
| Method | Returns |
|---|---|
available_main_views() |
StringVector |
focus_view() |
None |
hide_view() |
None |
is_view_visible() |
bool |
scroll_view() |
None |
show_view() |
None |
toggle_browse() |
None |
zoom_view() |
None |
- Returns:
StringVector
Return a list of strings with the available subcomponent views, which is to be specified, when using the rest of this classes functions. A 'subcomponent view' is a main view component of a document view, like the Session view, the Arranger or Detailview and so on...
- Returns:
None - Args:
view: str
Show and focus one through the identifier string specified view.
- Returns:
None - Args:
view_name: str
Hide one through the identifier string specified view.
- Returns:
bool - Args:
identifier: strmain_window_only: bool = True
Return true if the through the identifier string specified view is currently visible. If main_window_only is set to False, this will also check in second window. Notifications from the second window are not yet supported.
- Returns:
None - Args:
direction: intview_name: strmodifier_pressed: bool
Scroll through the identifier string specified view into the given direction, if possible. Will silently return if the specified view can not perform the requested action.
- Returns:
None - Args:
view: str
Show one through the identifier string specified view. Will throw a runtime error if this is called in Live's initialization scope.
- Returns:
None
Reveals the device chain, the browser and starts hot swap for the selected device. Calling this function again stops hot swap.
- Returns:
None - Args:
direction: intview_name: strmodifier_pressed: bool
Zoom through the identifier string specified view into the given direction, if possible. Will silently return if the specified view can not perform the requested action.
Live.Application.Application.View.NavDirection
| Value | Name |
|---|---|
0 |
up |
1 |
down |
2 |
left |
3 |
right |
Live.Application.MessageButtons
Specifies the characteristics of the message box, e.g. which buttons to show.
| Value | Name |
|---|---|
0 |
OK_BUTTON |
1 |
OK_NEW_SET_BUTTON |
2 |
OK_RETRY_BUTTON |
3 |
SAVE_DONT_SAVE_BUTTON |
4 |
OK_ACCOUNT_BUTTON |
5 |
OK_PURCHASE_BUTTON |
Live.Application.PushDialogType
Specifies the dialog type for Push.
| Value | Name |
|---|---|
0 |
MESSAGE_BOX |
5 |
OUT_OF_UNLOCKS_DIALOG |
7 |
RENT_TO_OWN_LICENSE_EXPIRED_DIALOG |
Live.Application.UnavailableFeature
| Value | Name |
|---|---|
0 |
note_velocity_ranges_and_probabilities |
Live.Application.Variants
Holds strings representing what type of Live is running.
| Value | Name |
|---|---|
Beta |
BETA |
Intro |
INTRO |
Lite |
LITE |
Standard |
STANDARD |
Suite |
SUITE |
Trial |
TRIAL |
Live.Application.ControlDescription
Describes a control present in a control surface proxy
Constructor: ControlDescription()
| Property | Type | Supports |
|---|---|---|
id |
int |
get |
name |
str |
get |
- Type:
int - Settable:
no - Listenable:
no
- Type:
str - Settable:
no - Listenable:
no
Live.Application.ControlDescriptionVector
A container for returning control descriptions.
| Method | Returns |
|---|---|
append() |
None |
extend() |
None |
- Returns:
None - Args:
value: ControlDescription
- Returns:
None - Args:
values: Iterable[ControlDescription]
Live.Application.ControlSurfaceProxy
Represents a control surface running in a different process. For use by M4L
| Property | Type | Supports |
|---|---|---|
control_descriptions |
ControlDescriptionVector |
get |
pad_layout |
str |
get/listen |
type_name |
str |
get |
- Type:
ControlDescriptionVector - Settable:
no - Listenable:
no
- Type:
str - Settable:
no - Listenable:
yes
The layout of pads on Push.
- Type:
str - Settable:
no - Listenable:
no
| Method | Returns |
|---|---|
enable_receive_midi() |
None |
fetch_received_midi_messages() |
tuple[tuple[int, Ellipsis], Ellipsis] |
fetch_received_values() |
tuple[tuple[int, Any], Ellipsis] |
grab_control() |
None |
release_control() |
None |
send_midi() |
None |
send_value() |
None |
subscribe_to_control() |
None |
unsubscribe_from_control() |
None |
- Returns:
None - Args:
enabled: bool
- Returns:
tuple[tuple[int, Ellipsis], Ellipsis]
- Returns:
tuple[tuple[int, Any], Ellipsis]
- Returns:
None - Args:
control: int
- Returns:
None - Args:
control: int
- Returns:
None - Args:
midi_event_bytes: tuple[int, Ellipsis]
- Returns:
None - Args:
value: tuple[Any, Ellipsis]
- Returns:
None - Args:
control: int
- Returns:
None - Args:
control: int
Live.Application.UnavailableFeatureVector
A container for returning unavailable features.
| Method | Returns |
|---|---|
append() |
None |
extend() |
None |
- Returns:
None - Args:
value: UnavailableFeature
- Returns:
None - Args:
values: Iterable[UnavailableFeature]
| Function | Returns |
|---|---|
combine_apcs() |
bool |
encrypt_challenge() |
tuple[int, Ellipsis] |
encrypt_challenge2() |
int |
get_application() |
Application |
get_random_int() |
int |
- Returns:
bool
Returns true if multiple APCs should be combined.
- Returns:
tuple[int, Ellipsis] - Args:
dongle1: intdongle2: intkey_index: int = 0
Returns an encrypted challenge based on the TEA algortithm
- Returns:
int - Args:
challenge: int
Returns the UMAC hash for the given challenge.
- Returns:
Application
Returns the application instance.
- Returns:
int - Args:
min_value: intmax_value: int
Returns a random integer from the given range.