Element Enumerations#
- class tosclib.elements.ControlElements[source]#
Valid xml tags for a Control
- CHILDREN = 'children'#
<children>
- GAMEPAD = 'gamepad'#
<gamepad>
- LOCAL = 'local'#
<local>
- MESSAGES = 'messages'#
<messages>
- MIDI = 'midi'#
<midi>
- NODE = 'node'#
<node type =>
- OSC = 'osc'#
<osc>
- PROPERTIES = 'properties'#
<properties>
- PROPERTY = 'property'#
<property type=>
- VALUE = 'value'#
<value>
- VALUES = 'values'#
<values>
- class tosclib.elements.ControlType[source]#
Valid xml attrib = {“type”:ControlType} for <node>
- BOX = 'BOX'#
<node type = “BOX”>
- BUTTON = 'BUTTON'#
<node type = “BUTTON”>
- ENCODER = 'ENCODER'#
<node type = “ENCODER”>
- FADER = 'FADER'#
<node type = “FADER”>
- GRID = 'GRID'#
<node type = “GRID”>
- GROUP = 'GROUP'#
<node type = “GROUP”>
- LABEL = 'LABEL'#
<node type = “LABEL”>
- PAGER = 'PAGER'#
<node type = “PAGER”>
- RADAR = 'RADAR'#
<node type = “RADAR”>
- RADIAL = 'RADIAL'#
<node type = “RADIAL”>
- RADIO = 'RADIO'#
<node type = “RADIO”>
- TEXT = 'TEXT'#
<node type = “TEXT”>
- XY = 'XY'#
<node type = “XY”>
- class tosclib.elements.PropertyType[source]#
Valid xml attrib = {“type”:PropertyType} for <property>
- BOOLEAN = 'b'#
<property type=”b”>
- COLOR = 'c'#
<property type=”c”>
- FLOAT = 'f'#
<property type=”f”>
- FRAME = 'r'#
<property type=”r”>
- INTEGER = 'i'#
<property type=”i”>
- STRING = 's'#
<property type=”s”>
- class tosclib.elements.OSC[source]#
Default Elements and Sub Elements for <osc>
- Parameters
enabled (str, optional) – Boolean. Defaults to “1”.
send (str, optional) – Boolean. Defaults to “1”.
receive (str, optional) – Boolean. Defaults to “1”.
feedback (str, optional) – Boolean. Defaults to “0”.
connections (str, optional) – Binary.
"00001" (Defaults to) –
triggers (List[Trigger], optional) – [Trigger].
[Trigger()]. (Defaults to) –
path (List[Partial], optional) – [Partial].
[Partial (Defaults to) –
arguments (List[Partial], optional) – [Partial].
[Partial –
- __init__(enabled='1', send='1', receive='1', feedback='0', connections='00001', triggers=[<tosclib.elements.Trigger object>], path=[<tosclib.elements.Partial object>, <tosclib.elements.Partial object>], arguments=[<tosclib.elements.Partial object>])[source]#
- Parameters
enabled (str) –
send (str) –
receive (str) –
feedback (str) –
connections (str) –
triggers (list[tosclib.elements.Trigger]) –
path (list[tosclib.elements.Partial]) –
arguments (list[tosclib.elements.Partial]) –
- class tosclib.elements.MIDI[source]#
- __init__(enabled='1', send='1', receive='1', feedback='0', connections='00001', triggers=[<tosclib.elements.Trigger object>], message=<tosclib.elements.MidiMessage object>, values=[<tosclib.elements.MidiValue object>, <tosclib.elements.MidiValue object>, <tosclib.elements.MidiValue object>])[source]#
- class tosclib.elements.LOCAL[source]#
Default elements for <midi> :param enabled: bool :param triggers: Trigger x or touch. :param type: BOOL, INT, FLOAT, STRING. The Type of Trigger.x :param conversion: BOOL, INT, FLOAT, STRING. :param value: The value sent to the other local Control. :param scaleMin: 0 :param scaleMax: 1 :param dstType: BOOL, INT, FLOAT, STRING of the target. :param dstVar: The value you want to change in the target. :param dstID: The node {ID} of the target.