Skip to content

Instantly share code, notes, and snippets.

@greymechanic
Created July 27, 2013 23:12
Show Gist options
  • Save greymechanic/6096659 to your computer and use it in GitHub Desktop.
Save greymechanic/6096659 to your computer and use it in GitHub Desktop.
loadedInterfaceName = "hornetNEST";
interfaceOrientation = "landscape";
pages = [[
{
"name" : "buttonGrid",
"type" : "MultiButton",
"x" : 0, "y" : 0,
"width" : .99, "height" : .8,
"rows" : 12, "columns" : 28,
"ontouchstart": "oscManager.sendOSC('/p'+this.childID, 'ii', this.childID, this.value)",
},
{
"name" : "bbb",
"type" : "Button",
"bounds": [0, .95, .1, .05],
"color" : "#727272",
"label": "chngr",
},
{
"name" : "slider1",
"type" : "Slider",
"x" : 0, "y" : .82,
"width" : .25, "height" : .06,
"min" : 0, "max" : 255,
"address" : "/filterCutoff",
"isVertical" : false,
"isXFader" : false,
"color" : "#fb0500",
"stroke" : "#fb0500",
},
{
"name" : "slider2",
"type" : "Slider",
"x" : .3, "y" : .82,
"width" : .25, "height" : .06,
"min" : 0, "max" : 255,
"address" : "/filterCutoff",
"isVertical" : false,
"isXFader" : false,
"color" : "#1efb00",
"stroke" : "#1efb00",
"onvaluechange" : "filterCutoffLabel.changeValue(this.value);"
},
{
"name" : "slider3",
"type" : "Slider",
"x" : .6, "y" : .82,
"width" : .25, "height" : .06,
"min" : 0, "max" : 255,
"address" : "/filterCutoff",
"isVertical" : false,
"isXFader" : false,
"color" : "#0008fb",
"stroke" : "#0008fb",
"onvaluechange" : "filterCutoffLabel.changeValue(this.value);"
},
{
"name": "refreshHH",
"type": "Button",
"bounds": [.8, .95, .1, .05],
"startingValue": 0,
"isLocal": true,
"mode": "contact",
"ontouchstart": "interfaceManager.refreshInterface()",
"stroke": "rgba(40, 10, 40, 1)",
"label": "R"
},
{
"name": "tabButton",
"type": "Button",
"bounds": [.9, .95, .1, .05],
"mode": "toggle",
"stroke": "#575757",
"isLocal": true,
"ontouchstart": "if(this.value == this.max) { control.showToolbar(); } else { control.hideToolbar(); }",
"label": "menu",
},
]
];
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment