tosclib.tosc#
API for TOSC Control Elements.
Functions
|
Generates a root xml Element and adds the base GROUP node to it. |
|
Iterate through element with children and return child whose key matches |
|
Find the value.text from a known key |
|
Reads a .tosc file and returns the XML root Element |
|
If you know the name of an element but don't know its other properties. |
|
If you know the name of an element but don't know its other properties. |
|
Generic print string function, UTF-8, indented 2 spaces |
|
Encodes a root Element to .tosc |
Classes
|
Valid xml tags for a Control |
|
Valid xml attrib = {"type":ControlType} for <node> |
Contains a Node Element and its SubElements. |
|
Default Elements and Sub Elements for <osc> |
|
Default Elements for <partial> |
|
|
Struct like object to carry the property values |
|
Valid xml attrib = {"type":PropertyType} for <property> |
Default Elements for <trigger> |
|
|
Default Elements for <value>. |
|
Box(id: str = <factory>, properties: list[tosclib.elements.Property] = <factory>, values: list[tosclib.elements.Value] = <factory>, messages: list[tosclib.elements.OSC | tosclib.elements.MIDI | tosclib.elements.LOCAL] = <factory>, children: list['Control'] | None | list = None) |
|
Button(id: str = <factory>, properties: list[tosclib.elements.Property] = <factory>, values: list[tosclib.elements.Value] = <factory>, messages: list[tosclib.elements.OSC | tosclib.elements.MIDI | tosclib.elements.LOCAL] = <factory>, children: list['Control'] | None | list = None) |
|
Encoder(id: str = <factory>, properties: list[tosclib.elements.Property] = <factory>, values: list[tosclib.elements.Value] = <factory>, messages: list[tosclib.elements.OSC | tosclib.elements.MIDI | tosclib.elements.LOCAL] = <factory>, children: list['Control'] | None | list = None) |
|
Fader(id: str = <factory>, properties: list[tosclib.elements.Property] = <factory>, values: list[tosclib.elements.Value] = <factory>, messages: list[tosclib.elements.OSC | tosclib.elements.MIDI | tosclib.elements.LOCAL] = <factory>, children: list['Control'] | None | list = None) |
|
Grid(id: str = <factory>, properties: list[tosclib.elements.Property] = <factory>, values: list[tosclib.elements.Value] = <factory>, messages: list[tosclib.elements.OSC | tosclib.elements.MIDI | tosclib.elements.LOCAL] = <factory>, children: list['Control'] | None | list = None) |
|
Group(id: str = <factory>, properties: list[tosclib.elements.Property] = <factory>, values: list[tosclib.elements.Value] = <factory>, messages: list[tosclib.elements.OSC | tosclib.elements.MIDI | tosclib.elements.LOCAL] = <factory>, children: list['Control'] | None | list = None) |
|
Label(id: str = <factory>, properties: list[tosclib.elements.Property] = <factory>, values: list[tosclib.elements.Value] = <factory>, messages: list[tosclib.elements.OSC | tosclib.elements.MIDI | tosclib.elements.LOCAL] = <factory>, children: list['Control'] | None | list = None) |
|
Not a main control |
|
Pager(id: str = <factory>, properties: list[tosclib.elements.Property] = <factory>, values: list[tosclib.elements.Value] = <factory>, messages: list[tosclib.elements.OSC | tosclib.elements.MIDI | tosclib.elements.LOCAL] = <factory>, children: list['Control'] | None | list = <factory>) |
|
Radar(id: str = <factory>, properties: list[tosclib.elements.Property] = <factory>, values: list[tosclib.elements.Value] = <factory>, messages: list[tosclib.elements.OSC | tosclib.elements.MIDI | tosclib.elements.LOCAL] = <factory>, children: list['Control'] | None | list = None) |
|
Radial(id: str = <factory>, properties: list[tosclib.elements.Property] = <factory>, values: list[tosclib.elements.Value] = <factory>, messages: list[tosclib.elements.OSC | tosclib.elements.MIDI | tosclib.elements.LOCAL] = <factory>, children: list['Control'] | None | list = None) |
|
Radio(id: str = <factory>, properties: list[tosclib.elements.Property] = <factory>, values: list[tosclib.elements.Value] = <factory>, messages: list[tosclib.elements.OSC | tosclib.elements.MIDI | tosclib.elements.LOCAL] = <factory>, children: list['Control'] | None | list = None) |
|
Text(id: str = <factory>, properties: list[tosclib.elements.Property] = <factory>, values: list[tosclib.elements.Value] = <factory>, messages: list[tosclib.elements.OSC | tosclib.elements.MIDI | tosclib.elements.LOCAL] = <factory>, children: list['Control'] | None | list = None) |
|
Xy(id: str = <factory>, properties: list[tosclib.elements.Property] = <factory>, values: list[tosclib.elements.Value] = <factory>, messages: list[tosclib.elements.OSC | tosclib.elements.MIDI | tosclib.elements.LOCAL] = <factory>, children: list['Control'] | None | list = None) |