Buttons¶
Buttons are exactly what you think they are.
Toggle¶
{ type:'toggle', // etc }
doubleTap¶
- type:
boolean - default:
false - usage: set to
trueto make the button require a double tap to be toggled instead of a single tap
led¶
- type:
boolean - default:
false - usage: set to
trueto display the toggle's state with a led
on¶
- type:
string|number|object - default:
1 - usage: defines which value is sent on
onposition- set to
nullto send send no argument in the osc message - can be an
objectif the type needs to be specified (see preArgs)
- set to
off¶
- type:
string|number|object - default:
0 - usage: defines which value is sent on
offposition- set to
nullto send send no argument in the osc message - can be an
objectif the type needs to be specified (see preArgs)
- set to
Push¶
{ type:'push', // etc }
on¶
- type:
string|number|object - default:
1 - usage: defines which value is sent when pushing the button
- set to
nullto send send no argument in the osc message - can be an
objectif the type needs to be specified (see preArgs)
- set to
off¶
- type:
string|number|object - default:
0 - usage: defines which value is sent when releasing the button
- set to
nullto send send no argument in the osc message - can be an
objectif the type needs to be specified (see preArgs)
- set to
norelease¶
- type:
bool - default:
false - usage: set to true to prevent sending any osc message when releasing the button
Setting the push's value externally (via osc) will toggle it's inner light.
Switch¶
{ type:'switch', // etc }
values¶
- type:
array|object - default:
{"Value 1":1,"Value 2":2} - usage:
arrayof possible values to switch between :[1,2,3]objectof"label":valuepairs
Dropdown¶
{ type:'dropdown', // etc }
values¶
- type:
array|object - default:
{"Value 1":1,"Value 2":2} - usage:
arrayof possible values to switch between :[1,2,3]objectof"label":valuepairs