Control Enumerations#

class tosclib.controls.Control[source]#

Protocol type of Control

controlT#

Control Type

Type

ClassVar[Literal[<ControlType.BOX: ‘BOX’>, <ControlType.BUTTON: ‘BUTTON’>, <ControlType.ENCODER: ‘ENCODER’>, <ControlType.FADER: ‘FADER’>, <ControlType.GRID: ‘GRID’>, <ControlType.GROUP: ‘GROUP’>, <ControlType.LABEL: ‘LABEL’>, <ControlType.PAGER: ‘PAGER’>, <ControlType.RADAR: ‘RADAR’>, <ControlType.RADIAL: ‘RADIAL’>, <ControlType.RADIO: ‘RADIO’>, <ControlType.TEXT: ‘TEXT’>, <ControlType.XY: ‘XY’>]]

properties#

List of Property

Type

list[tosclib.elements.Property]

values#

List of Value

Type

list[tosclib.elements.Value]

messages#

List of Message

Type

list[tosclib.elements.OSC | tosclib.elements.MIDI | tosclib.elements.LOCAL]

__init__(*args, **kwargs)#
class tosclib.controls.ControlConverter[source]#

Convert from Control to XML

classmethod build(control)[source]#

Generate the XML Element and its SubElements

Parameters

control (Control) – Control

Returns

XML

Return type

ET.Element

class tosclib.controls.XmlFactory[source]#

Generate specific XML structures

classmethod buildProperties(e, props)[source]#

Create many <property> XML

Parameters
  • props (Properties) – List of Properties

  • e (ET.Element) – Element to append the properties to

Returns

bool

Return type

bool

classmethod modifyProperty(e, value, params)[source]#

Modify an existing property XML

Parameters
Returns

bool

Return type

bool