I have devices that requires OSC message:
/$index/set/color min max val
For example:
/5/set/color 0 100 0
/5/set/color 0 100 50
/5/set/color 0 100 100
In supercollider this works:
b.sendMsg("/"++15.rrand(0)++"/set/color",0,100,100.rrand(0));
In O-S-C can a button send this type of message?
Not sure how to send multiple values.
Did try to send the button on
field to:
"on": "0 100 50"
Any example would be very greatly appreciated. Thanks.
Here is my test (I cannot upload files due to being a new user):
{
"createdWith": "Open Stage Control",
"version": "1.25.0",
"type": "session",
"content": {
"type": "root",
"lock": false,
"id": "root",
"visible": true,
"interaction": true,
"comments": "",
"width": "auto",
"height": "auto",
"colorText": "auto",
"colorWidget": "auto",
"alphaFillOn": "auto",
"borderRadius": "auto",
"padding": "auto",
"html": "",
"css": "",
"colorBg": "auto",
"layout": "default",
"justify": "start",
"gridTemplate": "",
"contain": true,
"scroll": true,
"innerPadding": true,
"tabsPosition": "top",
"hideMenu": false,
"variables": "@{parent.variables}",
"traversing": false,
"value": "",
"default": "",
"linkId": "",
"address": "auto",
"preArgs": "",
"typeTags": "",
"decimals": 2,
"target": "",
"ignoreDefaults": false,
"bypass": false,
"onCreate": "",
"onValue": "",
"widgets": [
{
"type": "button",
"top": 100,
"left": 100,
"lock": false,
"id": "button_1",
"visible": true,
"interaction": true,
"comments": "",
"width": "auto",
"height": "auto",
"expand": "false",
"colorText": "auto",
"colorWidget": "auto",
"colorStroke": "auto",
"colorFill": "auto",
"alphaStroke": "auto",
"alphaFillOff": "auto",
"alphaFillOn": "auto",
"lineWidth": "auto",
"borderRadius": "auto",
"padding": "auto",
"html": "",
"css": "",
"colorTextOn": "auto",
"label": "auto",
"vertical": false,
"wrap": false,
"on": "0 100 50",
"off": null,
"mode": "tap",
"doubleTap": false,
"decoupled": false,
"value": "",
"default": "",
"linkId": "qqq",
"address": "/5",
"preArgs": "/set/color",
"typeTags": "",
"decimals": 2,
"target": "",
"ignoreDefaults": false,
"bypass": false,
"onCreate": "",
"onValue": ""
},
{
"type": "text",
"top": 150,
"left": 220,
"lock": false,
"id": "textarea_1",
"visible": true,
"comments": "",
"width": "auto",
"height": "auto",
"expand": "false",
"colorText": "auto",
"colorWidget": "auto",
"colorStroke": "auto",
"colorFill": "auto",
"alphaStroke": "auto",
"alphaFillOff": "auto",
"alphaFillOn": "auto",
"lineWidth": "auto",
"borderRadius": "auto",
"padding": "auto",
"html": "",
"css": "",
"value": "",
"default": "",
"linkId": "qqq",
"address": "/string1",
"preArgs": "",
"decimals": 2,
"target": "",
"onCreate": "",
"onValue": "",
"vertical": false,
"wrap": false,
"align": "center"
},
{
"type": "button",
"top": 180,
"left": 100,
"lock": false,
"id": "button_2",
"visible": true,
"interaction": true,
"comments": "",
"width": "auto",
"height": "auto",
"expand": "false",
"colorText": "auto",
"colorWidget": "auto",
"colorStroke": "auto",
"colorFill": "auto",
"alphaStroke": "auto",
"alphaFillOff": "auto",
"alphaFillOn": "auto",
"lineWidth": "auto",
"borderRadius": "auto",
"padding": "auto",
"html": "",
"css": "",
"colorTextOn": "auto",
"label": "auto",
"vertical": false,
"wrap": false,
"on": "0 100 100",
"off": null,
"mode": "tap",
"doubleTap": false,
"decoupled": false,
"value": "",
"default": "",
"linkId": "qqq",
"address": "/5",
"preArgs": "/set/color",
"typeTags": "",
"decimals": 2,
"target": "",
"ignoreDefaults": false,
"bypass": false,
"onCreate": "",
"onValue": ""
}
],
"tabs": []
}
}