AbletonComponent

class pyableton.AbletonComponent.AbletonComponent(root: Element)

AbletonComponent Class

Base class for representing components in an Ableton Live project.

Methods

__init__(root: ElementTree.Element)

Initializes an AbletonComponent instance.

init_python_object_from_annotation(

root: ElementTree.Element, annotation_param_name: str, annotation_param_type: type ) Initializes a Python object from an annotation in the XML.

snake_to_camel(input_string: str)

Converts a snake_case string to camelCase.

init_python_object_from_annotation(root: Element, annotation_param_name: str, annotation_param_type: type)

Initializes a Python object from an annotation in the XML.

Parameters

rootElementTree.Element

The root element of the XML representation of the Ableton component.

annotation_param_namestr

The name of the annotation parameter.

annotation_param_typetype

The type of the annotation parameter.

Returns

The initialized Python object.

snake_to_camel(input_string)

Converts a snake_case string to camelCase.

Parameters

input_stringstr

The input string in snake_case.

Returns

str

The input string converted to camelCase.